- ignore SIGPIPE when writing to dependency helpers

OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=121
This commit is contained in:
Michael Schröder 2011-06-06 11:32:31 +00:00 committed by Git OBS Bridge
parent 0386365901
commit 106e0b1ebc
3 changed files with 25 additions and 1 deletions

17
buildpipe.diff Normal file
View File

@ -0,0 +1,17 @@
--- build/rpmfc.c.orig 2011-06-06 11:27:32.000000000 +0000
+++ build/rpmfc.c 2011-06-06 11:28:47.000000000 +0000
@@ -165,12 +165,14 @@ static int sigpipe_init(void)
fcntl(_sigpipe[1], F_SETFD, (fcntl(_sigpipe[1], F_GETFD)|FD_CLOEXEC));
/* XXX SIGPIPE too, but NSPR disables it already, dont mess with it */
signal(SIGCHLD, sigpipe_handler);
+ signal(SIGPIPE, SIG_IGN);
return _sigpipe[0];
}
static void sigpipe_finish(void)
{
signal(SIGCHLD, SIG_DFL);
+ signal(SIGPIPE, SIG_DFL);
close(_sigpipe[0]);
close(_sigpipe[1]);
_sigpipe[0] = -1;

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jun 6 13:30:05 CEST 2011 - mls@suse.de
- ignore SIGPIPE when writing to dependency helpers, so that
builds don't randomly abort when a helper is missing
-------------------------------------------------------------------
Fri Jun 3 15:19:02 CEST 2011 - mls@suse.de

View File

@ -118,6 +118,7 @@ Patch80: magic_and_path.diff
Patch81: safemacro.diff
Patch82: emptychangelog.diff
Patch83: assumeexec.diff
Patch84: buildpipe.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#
# avoid bootstrapping problem
@ -181,7 +182,7 @@ rm -f rpmdb/db.h
%patch -P 50 -P 51 -P 52 -P 53 -P 54 -P 55 -P 56 -P 57 -P 58 -P 59
%patch -P 60 -P 61 -P 62 -P 63 -P 64 -P 65 -P 66 -P 67 -P 68 -P 69
%patch -P 70 -P 71 -P 72 -P 73 -P 74 -P 75 -P 76 -P 77 -P 78 -P 79
%patch -P 80 -P 81 -P 82 -P 83
%patch -P 80 -P 81 -P 82 -P 83 -P 84
#chmod 755 scripts/find-supplements{,.ksyms}
#chmod 755 scripts/find-provides.ksyms scripts/find-requires.ksyms
#chmod 755 scripts/firmware.prov