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 / psmisc / 0002-no-__progname.patch
1 [PATCH]: pstree: don't use glibc-specific __progname
2
3 uclibc (per default) doesn't implement __progname, and the pstree.x11
4 stuff isn't that critical, so just disable it.
5
6 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
7 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
8 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9
10 Index: psmisc-22.13/src/pstree.c
11 ===================================================================
12 --- psmisc-22.13.orig/src/pstree.c      2010-07-12 13:10:03.000000000 +0200
13 +++ psmisc-22.13/src/pstree.c   2011-05-21 16:33:37.456530775 +0200
14 @@ -49,8 +49,6 @@
15  #include <selinux/selinux.h>
16  #endif                                /*WITH_SELINUX */
17  
18 -extern const char *__progname;
19 -
20  #define PROC_BASE    "/proc"
21  
22  /* UTF-8 defines by Johan Myreen, updated by Ben Winslow */
23 @@ -854,9 +852,6 @@
24      textdomain(PACKAGE);
25  #endif
26  
27 -    if (!strcmp(__progname, "pstree.x11"))
28 -        wait_end = 1;
29 -
30      /*
31       * Attempt to figure out a good default symbol set.  Will be overriden by
32       * command-line options, if given.
33 Index: psmisc-22.13/src/Makefile.in
34 ===================================================================
35 --- psmisc-22.13.orig/src/Makefile.in   2011-05-21 16:33:42.748530777 +0200
36 +++ psmisc-22.13/src/Makefile.in        2011-05-21 16:33:47.360530782 +0200
37 @@ -557,10 +557,6 @@
38                 grep '^{ 1,"HUP" },$$' signames.h >/dev/null || \
39                   { rm -f signames.h; exit 1; }
40  
41 -install-exec-hook:
42 -               cd $(DESTDIR)$(bindir) && \
43 -                       ( [ -h pstree.x11 ]  || $(LN_S) pstree pstree.x11)
44 -
45  # Tell versions [3.59,3.63) of GNU make to not export all variables.
46  # Otherwise a system limit (for SysV at least) may be exceeded.
47  .NOEXPORT: