From: Jakub Bogusz Date: Sat, 6 Apr 2013 19:56:24 +0000 (+0200) Subject: - added nosetproctitle patch (disable setproctitle as internal function or external... X-Git-Tag: auto/th/rpm-5.4.10-47~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Frpm.git;a=commitdiff_plain;h=c0fe6b0981b623cf08e911c72c26eacb137b9f13;hp=7cf857f2dab39731c52fbe7a0e8a6277bdd07535 - added nosetproctitle patch (disable setproctitle as internal function or external library - nowhere used now --- diff --git a/rpm-nosetproctitle.patch b/rpm-nosetproctitle.patch new file mode 100644 index 0000000..1dd0f55 --- /dev/null +++ b/rpm-nosetproctitle.patch @@ -0,0 +1,47 @@ +--- rpm-5.4.10/misc/librpmmisc.c.orig 2009-05-29 21:04:21.000000000 +0200 ++++ rpm-5.4.10/misc/librpmmisc.c 2013-04-06 21:52:32.825238309 +0200 +@@ -33,7 +33,7 @@ + #endif + + /* XXX limit the fiddle up to linux for now. */ +-#if !defined(HAVE_SETPROCTITLE) && defined(__linux__) ++#if 0 && !defined(HAVE_SETPROCTITLE) && defined(__linux__) + #include "setproctitle.c" + #endif + +--- rpm-5.4.10/configure.ac.orig 2013-04-06 15:51:42.965689560 +0200 ++++ rpm-5.4.10/configure.ac 2013-04-06 21:52:57.755237789 +0200 +@@ -945,13 +945,6 @@ if test $ac_cv_func_syslog = no; then + done + fi + +-AC_CHECK_FUNCS(setproctitle) +-if test $ac_cv_func_setproctitle = no; then +- # setproctitle is not in the default libraries. See if it's in some other. +- AC_CHECK_LIB(setproctitle, setproctitle, [AC_DEFINE(HAVE_SETPROCTITLE) +- LIBS="$LIBS -lsetproctitle"]) +-fi +- + dnl # Check how to find out the amount of physical memory in the system. The + dnl # xz command line tool uses this to automatically limit its memory usage. + dnl # - sysconf() gives all the needed info on GNU+Linux and Solaris. +--- rpm-5.4.10/rpmqv.c.orig 2012-07-06 17:39:16.000000000 +0200 ++++ rpm-5.4.10/rpmqv.c 2013-04-06 21:52:12.351905402 +0200 +@@ -450,7 +450,7 @@ int main(int argc, const char ** argv) + environ = envp; + #else + /* XXX limit the fiddle up to linux for now. */ +-#if !defined(HAVE_SETPROCTITLE) && defined(__linux__) ++#if 0 && !defined(HAVE_SETPROCTITLE) && defined(__linux__) + (void) initproctitle(argc, (char **)argv, environ); + #endif + #endif +@@ -1117,7 +1117,7 @@ exit: + optCon = rpmcliFini(optCon); + + /* XXX limit the fiddle up to linux for now. */ +-#if !defined(HAVE_SETPROCTITLE) && defined(__linux__) ++#if 0 && !defined(HAVE_SETPROCTITLE) && defined(__linux__) + (void) finiproctitle(); + #endif + diff --git a/rpm.spec b/rpm.spec index 23ff1dd..f110832 100644 --- a/rpm.spec +++ b/rpm.spec @@ -94,6 +94,7 @@ Source29: dbupgrade.sh Patch0: %{name}-branch.patch Patch1: %{name}-man_pl.patch Patch2: %{name}-popt-aliases.patch +Patch3: %{name}-nosetproctitle.patch Patch4: %{name}-perl-macros.patch Patch5: %{name}-perl-req-perlfile.patch Patch6: %{name}-scripts-closefds.patch @@ -813,6 +814,7 @@ Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze #patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1