From 724df1cb5a6365d0207ce8b0518e3b1e42583279 Mon Sep 17 00:00:00 2001
From: Petr Písař <ppi...@redhat.com>
Date: Aug 09 2017 14:18:34 +0000
Subject: Fix GCC version detection for -D_FORTIFY_SOURCE override


---

diff --git a/perl-5.27.2-Configure-check-for-GCC-6-and-7.patch 
b/perl-5.27.2-Configure-check-for-GCC-6-and-7.patch
new file mode 100644
index 0000000..5c870d6
--- /dev/null
+++ b/perl-5.27.2-Configure-check-for-GCC-6-and-7.patch
@@ -0,0 +1,29 @@
+From b9486474d36974b83d0b00fdcbfd1530299a0f7c Mon Sep 17 00:00:00 2001
+From: Ken Brown <kbr...@cornell.edu>
+Date: Thu, 27 Jul 2017 11:57:44 -0400
+Subject: [PATCH] Configure: check for GCC 6 and 7
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Petr Písař <ppi...@redhat.com>
+---
+ Configure | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Configure b/Configure
+index 3259249..bdcfaf1 100755
+--- a/Configure
++++ b/Configure
+@@ -23612,7 +23612,7 @@ fi
+ 
+ : add -D_FORTIFY_SOURCE if feasible and not already there
+ case "$gccversion" in
+-[45].*)       case "$optimize$ccflags" in
++[4567].*)     case "$optimize$ccflags" in
+       *-O*)   case "$ccflags$cppsymbols" in
+               *_FORTIFY_SOURCE=*) # Don't add it again.
+                       echo "You seem to have -D_FORTIFY_SOURCE already, not 
adding it." >&4
+-- 
+2.9.4
+
diff --git a/perl.spec b/perl.spec
index 954398a..94b042d 100644
--- a/perl.spec
+++ b/perl.spec
@@ -224,6 +224,10 @@ Patch55:        
perl-5.27.2-Avoid-compiler-warnings-due-to-mismatched-types-in-p
 # in upstream after 5.27.2
 Patch56:        perl-5.27.2-EU-Constant-avoid-uninit-warning.patch
 
+# Fix GCC version detection for -D_FORTIFY_SOURCE override, RT#131809,
+# in upstream after 5.27.2
+Patch57:        perl-5.27.2-Configure-check-for-GCC-6-and-7.patch
+
 # Link XS modules to libperl.so with EU::CBuilder on Linux, bug #960048
 Patch200:       
perl-5.16.3-Link-XS-modules-to-libperl.so-with-EU-CBuilder-on-Li.patch
 
@@ -2810,6 +2814,7 @@ Perl extension for Version Objects
 %patch54 -p1
 %patch55 -p1
 %patch56 -p1
+%patch57 -p1
 %patch200 -p1
 %patch201 -p1
 
@@ -2851,6 +2856,7 @@ perl -x patchlevel.h \
     'Fedora Patch54: Fix splitting non-ASCII strings if unicode_strings 
feature is enabled (RT#130907)' \
     'Fedora Patch55: Fix compiler warnings in code generated by 
ExtUtils::Constant (CPAN RT#63832)' \
     'Fedora Patch56: Fix compiler warnings in code generated by 
ExtUtils::Constant (CPAN RT#101487)' \
+    'Fedora Patch57: Fix GCC version detection for -D_FORTIFY_SOURCE override 
(RT#131809)' \
     'Fedora Patch200: Link XS modules to libperl.so with EU::CBuilder on 
Linux' \
     'Fedora Patch201: Link XS modules to libperl.so with EU::MM on Linux' \
     %{nil}
@@ -5148,6 +5154,7 @@ popd
 - Fix splitting non-ASCII strings if unicode_strings feature is enabled 
(RT#130907)
 - Fix compiler warnings in code generated by ExtUtils::Constant
   (CPAN RT#63832, CPAN RT#101487)
+- Fix GCC version detection for -D_FORTIFY_SOURCE override (RT#131809)
 
 * Sat Jul 29 2017 Igor Gnatenko <ignatenkobr...@fedoraproject.org> - 
4:5.26.0-397
 - Enable separate debuginfo back


        
https://src.fedoraproject.org/rpms/perl/c/724df1cb5a6365d0207ce8b0518e3b1e42583279?branch=master
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to