]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/commitdiff
perl: Force perl to build with -fstack-protector-all
authorStefan Schantl <stefan.schantl@ipfire.org>
Thu, 9 Mar 2023 12:45:32 +0000 (12:45 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 13 Mar 2023 14:43:56 +0000 (14:43 +0000)
Forcing perl to build with -fstack-protector-all and not with
-fstack-protector-strong.

More details could be found here:
https://git.ipfire.org/?p=pakfire.git;a=commit;h=f1153a857affb461de71d0c7e62cbf39de0c802b

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
perl/perl.nm

index ab4d12ef5c203144b410c949db537a0a3e9e3eac..3a7bad52535bb119e02bc27e321a5baa33b05762 100644 (file)
@@ -10,7 +10,7 @@ ver_plevel = 0
 version    = %{ver_major}.%{ver_minor}.%{ver_plevel}
 
 # Never reset release in this package, just increase.
-release    = 2.2
+release    = 3
 
 thisver    = %{version}-%{_release}
 
@@ -126,6 +126,10 @@ build
                rm -rf cpan/Compress-Raw-Bzip2/bzip2-src
                sed -i '/\(bzip2\|zlib\)-src/d' MANIFEST
 
+               # Force the configure script to check if -fstack-protector-all is supported
+               # and set this afterwards. (Otherwise -fstack-protector-strong would be used)
+               sed -i "s/stack-protector-strong/stack-protector-all/g" Configure
+
                sh ./Configure %{configure_options}
 
                make %{PARALLELISMFLAGS}