The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / kismet / 0003-fix-curses-libs-ordering.patch
1 configure: fix ordering of ncurses libraries
2
3 Says Vicente:
4     [T]he order is very important when doing static builds.
5     Otherwise we will see errors like this one:
6
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'
10
11 Fix the order configure adds libraries: new libraries should be added
12 at the *front* of the list, not at the end.
13
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>
17
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)
23         fi
24  
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.))
32  
33         AC_CHECK_HEADER([panel.h], [foundhpanel=yes])
34 @@ -450,7 +447,7 @@
35  
36         LIBS="$OLIBS"
37  
38 -       CLIENTCLIBS="$CLIENTCLIBS $curseaux"
39 +       CLIENTCLIBS="$curseaux $CLIENTCLIBS"
40  fi
41  
42  AC_SUBST(CLIBS)