From cd2fe787cf93eaa7e82564b901993447273e8367 Mon Sep 17 00:00:00 2001 From: Matthew White Date: Mon, 10 May 2021 00:05:49 +0000 Subject: net-wireless/wavemon-0.9.3: fix ncurses(w) libs Fixes a segmentation fault due to linking with libncursesw and libtinfo, rather than libtinfow. See also https://github.com/uoaerg/wavemon/issues/88 about the segmentation fault error. If libncursesw is available uses ncursesw_LIBS, otherwise uses ncurses_LIBS if libncurses remains the only option. Closes: https://bugs.gentoo.org/785562 Signed-off-by: Matteo Bianco Closes: https://github.com/gentoo/gentoo/pull/20749 Signed-off-by: Joonas Niilola --- net-wireless/wavemon/files/wavemon-0.9.3-build.patch | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'net-wireless/wavemon') diff --git a/net-wireless/wavemon/files/wavemon-0.9.3-build.patch b/net-wireless/wavemon/files/wavemon-0.9.3-build.patch index 74b09271a0f2..7cc054efefa4 100644 --- a/net-wireless/wavemon/files/wavemon-0.9.3-build.patch +++ b/net-wireless/wavemon/files/wavemon-0.9.3-build.patch @@ -1,5 +1,5 @@ --- a/configure.ac 2020-12-26 17:44:01.616731241 +0100 -+++ b/configure.ac 2020-12-26 17:45:02.447292151 +0100 ++++ b/configure.ac 2021-05-09 21:57:37.000000000 +0000 @@ -8,8 +8,6 @@ AC_CONFIG_AUX_DIR([config]) AC_CONFIG_FILES([Makefile]) @@ -18,14 +18,17 @@ # Checks for header files. AC_HEADER_STDC AC_HEADER_TIME -@@ -29,6 +31,7 @@ - net/if_arp.h netinet/ether.h net/ethernet.h pthread.h], - [], [AC_MSG_ERROR($ac_header not found)]) - AC_CHECK_HEADERS([ncursesw/curses.h]) -+PKG_CHECK_MODULES(ncurses,ncurses,LIBS="$LIBS $ncurses_LIBS",) +@@ -54,8 +54,8 @@ + # Tests involving libraries + AC_CHECK_LIB([m], [pow], [], [AC_MSG_ERROR(math library not found)]) + AC_CHECK_LIB([ncursesw], [waddstr], +- [], +- [AC_CHECK_LIB([ncurses], [waddstr], [], [AC_MSG_ERROR(ncurses library not found)])]) ++ [PKG_CHECK_MODULES([ncursesw], [ncursesw], [LIBS="$LIBS $ncursesw_LIBS"], [])], ++ [AC_CHECK_LIB([ncurses], [waddstr], [PKG_CHECK_MODULES([ncurses], [ncurses], [LIBS="$LIBS $ncurses_LIBS"], [])], [AC_MSG_ERROR(ncurses library not found)])]) + AC_CHECK_LIB([pthread], [pthread_create], [CFLAGS="$CFLAGS -pthread"], + [AC_MSG_ERROR(pthread library not found)]) - # linux/if.h needs 'struct sockaddr' - # linux/wireless.h in turn depends on linux/if.h --- a/Makefile.in 2017-07-14 21:35:18.154423280 +0300 +++ b/Makefile.in 2017-07-14 21:35:34.613402738 +0300 @@ -9,7 +9,7 @@ -- cgit v1.2.3-65-gdbad