python-cryptography: bump to version 1.7.2
[buildroot-gz.git] / package / kismet / 0003-fix-curses-libs-ordering.patch
blobb579c96d4692cd77a2966e61388d1660c34bbea6
1 configure: fix ordering of ncurses libraries
3 Says Vicente:
4 [T]he order is very important when doing static builds.
5 Otherwise we will see errors like this one:
7 [...]/sysroot/usr/lib/libpanel.a(p_delete.o):
8 In function `del_panel':
9 p_delete.c:(.text+0x68): undefined reference to `_nc_panelhook'
11 Fix the order configure adds libraries: new libraries should be added
12 at the *front* of the list, not at the end.
14 Reported-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
15 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
16 Cc: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
18 diff -durN kismet-Kismet-2014-02-R1.orig/configure.in kismet-Kismet-2014-02-R1/configure.in
19 --- kismet-Kismet-2014-02-R1.orig/configure.in 2014-02-19 05:37:43.000000000 +0100
20 +++ kismet-Kismet-2014-02-R1/configure.in 2014-12-26 16:46:55.770692349 +0100
21 @@ -437,10 +434,10 @@
22 AC_MSG_ERROR(Failed to find curses.h or ncurses.h. You probably need to install the curses-devel package from your distribution)
25 - LIBS="$LIBS $curseaux"
26 + LIBS="$curseaux $LIBS"
27 AC_CHECK_LIB([panel], [new_panel],
28 AC_DEFINE(HAVE_LIBPANEL, 1, Panel terminal lib)
29 - curseaux="$curseaux -lpanel",
30 + curseaux="-lpanel $curseaux",
31 AC_MSG_ERROR(Failed to find libpanel extension to curses/ncurses. Install it, or disable building the Kismet client with --disable-client. Disabling the client is probably not something you want to do normally.))
33 AC_CHECK_HEADER([panel.h], [foundhpanel=yes])
34 @@ -450,7 +447,7 @@
36 LIBS="$OLIBS"
38 - CLIENTCLIBS="$CLIENTCLIBS $curseaux"
39 + CLIENTCLIBS="$curseaux $CLIENTCLIBS"
42 AC_SUBST(CLIBS)