2
1

psmisc-no-__progname.patch 1.6 KB

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