From 5bcc789275ed515fcf7cedb0f4c43dd2623ae1d04e38f6123194b36a47d684c9 Mon Sep 17 00:00:00 2001 From: Dirk Stoecker Date: Mon, 22 Jan 2018 21:01:20 +0000 Subject: [PATCH] Accepting request 568081 from home:Andreas_Schwab:Factory - posix-sigaction.patch: make sure Perl_sighandler is always installed with SA_SIGINFO (bsc#1064697) OBS-URL: https://build.opensuse.org/request/show/568081 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl?expand=0&rev=160 --- perl.changes | 6 ++++++ perl.spec | 2 ++ posix-sigaction.patch | 15 +++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 posix-sigaction.patch diff --git a/perl.changes b/perl.changes index e63ecce..52e0401 100644 --- a/perl.changes +++ b/perl.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jan 22 10:25:12 UTC 2018 - schwab@suse.de + +- posix-sigaction.patch: make sure Perl_sighandler is always installed + with SA_SIGINFO (bsc#1064697) + ------------------------------------------------------------------- Wed Jan 10 11:57:01 UTC 2018 - normand@linux.vnet.ibm.com diff --git a/perl.spec b/perl.spec index 5003d68..13d41ec 100644 --- a/perl.spec +++ b/perl.spec @@ -49,6 +49,7 @@ Patch11: perl-5.18.2-overflow.diff # PATCH-FIX-OPENSUSE Patch12: perl-reproducible.patch Patch13: perl_skip_flaky_tests_powerpc.patch +Patch14: posix-sigaction.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: perl-base = %version #PreReq: %fillup_prereq @@ -192,6 +193,7 @@ cp -p %{S:3} . %patch9 %patch11 %patch12 -p1 +%patch14 -p1 %build cp -a lib savelib diff --git a/posix-sigaction.patch b/posix-sigaction.patch new file mode 100644 index 0000000..c5fcffe --- /dev/null +++ b/posix-sigaction.patch @@ -0,0 +1,15 @@ +Index: perl-5.26.1/ext/POSIX/POSIX.xs +=================================================================== +--- perl-5.26.1.orig/ext/POSIX/POSIX.xs ++++ perl-5.26.1/ext/POSIX/POSIX.xs +@@ -3158,6 +3158,10 @@ sigaction(sig, optaction, oldaction = 0) + /* Set up any desired flags. */ + svp = hv_fetchs(action, "FLAGS", FALSE); + act.sa_flags = svp ? SvIV(*svp) : 0; ++#ifdef SA_SIGINFO ++ /* Perl_sighandler depends on the extra arguments. */ ++ act.sa_flags |= SA_SIGINFO; ++#endif + + /* Don't worry about cleaning up *sigsvp if this fails, + * because that means we tried to disposition a