SHA256
3
0
forked from pool/perl

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
This commit is contained in:
Dirk Stoecker 2018-01-22 21:01:20 +00:00 committed by Git OBS Bridge
parent d91f56861a
commit 017f182939
3 changed files with 23 additions and 0 deletions

View File

@ -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

View File

@ -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

15
posix-sigaction.patch Normal file
View File

@ -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