python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / psmisc / 0002-no-__progname.patch
blob51096571cb620244cbde69e88b164dbb3a3d2658
1 [PATCH]: pstree: don't use glibc-specific __progname
3 uclibc (per default) doesn't implement __progname, and the pstree.x11
4 stuff isn't that critical, so just disable it.
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>
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 */
18 -extern const char *__progname;
20 #define PROC_BASE "/proc"
22 /* UTF-8 defines by Johan Myreen, updated by Ben Winslow */
23 @@ -854,9 +852,6 @@
24 textdomain(PACKAGE);
25 #endif
27 - if (!strcmp(__progname, "pstree.x11"))
28 - wait_end = 1;
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; }
41 -install-exec-hook:
42 - cd $(DESTDIR)$(bindir) && \
43 - ( [ -h pstree.x11 ] || $(LN_S) pstree pstree.x11)
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: