aboutsummaryrefslogtreecommitdiff
path: root/package/psmisc/0002-no-__progname.patch
diff options
context:
space:
mode:
authorGravatar Peter Korsgaard <peter@korsgaard.com>2015-02-03 14:52:07 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2015-02-03 14:52:56 +0100
commit298cd8eaa21a21eee85f9551a26ad294347b1d5a (patch)
tree249fa33b66f65e6daffdbfc8ca2e5399e8d89e61 /package/psmisc/0002-no-__progname.patch
parentdd798a45c571063595c45278e28ed4f614f2cf32 (diff)
downloadbuildroot-298cd8eaa21a21eee85f9551a26ad294347b1d5a.tar.gz
buildroot-298cd8eaa21a21eee85f9551a26ad294347b1d5a.tar.bz2
package/*: rename patches according to the new policy
Autogenerated from rename-patch.py (http://patchwork.ozlabs.org/patch/403345) Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/psmisc/0002-no-__progname.patch')
-rw-r--r--package/psmisc/0002-no-__progname.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/package/psmisc/0002-no-__progname.patch b/package/psmisc/0002-no-__progname.patch
new file mode 100644
index 0000000000..51096571cb
--- /dev/null
+++ b/package/psmisc/0002-no-__progname.patch
@@ -0,0 +1,47 @@
+[PATCH]: pstree: don't use glibc-specific __progname
+
+uclibc (per default) doesn't implement __progname, and the pstree.x11
+stuff isn't that critical, so just disable it.
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: psmisc-22.13/src/pstree.c
+===================================================================
+--- psmisc-22.13.orig/src/pstree.c 2010-07-12 13:10:03.000000000 +0200
++++ psmisc-22.13/src/pstree.c 2011-05-21 16:33:37.456530775 +0200
+@@ -49,8 +49,6 @@
+ #include <selinux/selinux.h>
+ #endif /*WITH_SELINUX */
+
+-extern const char *__progname;
+-
+ #define PROC_BASE "/proc"
+
+ /* UTF-8 defines by Johan Myreen, updated by Ben Winslow */
+@@ -854,9 +852,6 @@
+ textdomain(PACKAGE);
+ #endif
+
+- if (!strcmp(__progname, "pstree.x11"))
+- wait_end = 1;
+-
+ /*
+ * Attempt to figure out a good default symbol set. Will be overriden by
+ * command-line options, if given.
+Index: psmisc-22.13/src/Makefile.in
+===================================================================
+--- psmisc-22.13.orig/src/Makefile.in 2011-05-21 16:33:42.748530777 +0200
++++ psmisc-22.13/src/Makefile.in 2011-05-21 16:33:47.360530782 +0200
+@@ -557,10 +557,6 @@
+ grep '^{ 1,"HUP" },$$' signames.h >/dev/null || \
+ { rm -f signames.h; exit 1; }
+
+-install-exec-hook:
+- cd $(DESTDIR)$(bindir) && \
+- ( [ -h pstree.x11 ] || $(LN_S) pstree pstree.x11)
+-
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT: