Compare commits

...

No commits in common. 'c9' and 'i8c-stream-5.32' have entirely different histories.

@ -66,7 +66,7 @@ Provides: perl(B) = 1.80 \
Provides: perl(B::Concise) = 1.004 \
Provides: perl(B::Deparse) = 1.54 \
Provides: perl(B::OBJECT) \
Provides: perl(B::Op_private) = 5.032001 \
Provides: perl(B::Op_private) = 5.032000 \
Provides: perl(B::Showlex) = 1.05 \
Provides: perl(B::Terse) = 1.09 \
Provides: perl(B::Xref) = 1.07 \
@ -951,7 +951,7 @@ Provides: perl(IO::Seekable) = 1.41 \
Provides: perl(IO::Select) = 1.42 \
Provides: perl(IO::Socket) = 1.43 \
Provides: perl(IO::Socket::INET) = 1.41 \
Provides: perl(IO::Socket::UNIX) = 1.42 \
Provides: perl(IO::Socket::UNIX) = 1.41 \
%{nil}
%global gendep_perl_IO_Compress \
Requires: perl(:VERSION) >= 5.6.0 \
@ -1209,8 +1209,8 @@ Requires: perl(Module::CoreList) \
Requires: perl(strict) \
Requires: perl(version) \
Requires: perl(warnings) \
Provides: perl(Module::CoreList) = 5.20210123 \
Provides: perl(Module::CoreList::Utils) = 5.20210123 \
Provides: perl(Module::CoreList) = 5.20200620 \
Provides: perl(Module::CoreList::Utils) = 5.20200620 \
%{nil}
%global gendep_perl_Module_CoreList_tools \
Requires: perl(Getopt::Long) \
@ -1320,7 +1320,7 @@ Requires: perl(Opcode) \
Requires: perl(XSLoader) \
Requires: perl(strict) \
Requires: perl(subs) \
Provides: perl(Opcode) = 1.48 \
Provides: perl(Opcode) = 1.47 \
Provides: perl(ops) = 1.02 \
%{nil}
%global gendep_perl_Opcode_debuginfo \
@ -2156,7 +2156,7 @@ Provides: perl(constant) = 1.33 \
%global gendep_perl_debugger \
Requires: perl(strict) \
Provides: perl(DB) = 1.08 \
Provides: perl(dumpvar.pl) = 5.32.1 \
Provides: perl(dumpvar.pl) = 5.32.0 \
Provides: perl(perl5db.pl) = 1.56 \
%{nil}
%global gendep_perl_debuginfo \
@ -2298,15 +2298,14 @@ Requires: perl(unicore::Name) \
Requires: perl(warnings) \
Requires: perl(warnings::register) \
Provides: perl(:MODULE_COMPAT_5.32.0) \
Provides: perl(:MODULE_COMPAT_5.32.1) \
Provides: perl(:VERSION) = 5.32.1 \
Provides: perl(:VERSION) = 5.32.0 \
Provides: perl(:WITH_64BIT) \
Provides: perl(:WITH_ITHREADS) \
Provides: perl(:WITH_LARGEFILES) \
Provides: perl(:WITH_PERLIO) \
Provides: perl(:WITH_THREADS) \
Provides: perl(AnyDBM_File) = 1.01 \
Provides: perl(Config) = 5.032001 \
Provides: perl(Config) = 5.032000 \
Provides: perl(File::Glob) = 1.33 \
Provides: perl(PerlIO) = 1.11 \
Provides: perl(PerlIO::encoding) = 0.28 \
@ -2346,7 +2345,7 @@ Provides: perl(locale) = 1.09 \
%global gendep_perl_meta_notation \
Requires: perl(strict) \
Requires: perl(warnings) \
Provides: perl(meta_notation) = 5.32.1 \
Provides: perl(meta_notation) = 5.32.0 \
%{nil}
%global gendep_perl_mro \
Requires: perl(XSLoader) \
@ -2381,9 +2380,9 @@ Requires: perl(warnings) \
Provides: perl(perlfaq) = 5.20200523 \
%{nil}
%global gendep_perl_ph \
Provides: perl(sys/ioctl.ph) = 5.32.1 \
Provides: perl(sys/syscall.ph) = 5.32.1 \
Provides: perl(syscall.ph) = 5.32.1 \
Provides: perl(sys/ioctl.ph) = 5.32.0 \
Provides: perl(sys/syscall.ph) = 5.32.0 \
Provides: perl(syscall.ph) = 5.32.0 \
%{nil}
%global gendep_perl_podlators \
Requires: perl(:VERSION) >= 5.6.0 \

@ -1,39 +0,0 @@
From 6d9d949fb4962e32636aee48a948081d8936d318 Mon Sep 17 00:00:00 2001
From: Jitka Plesnikova <jplesnik@redhat.com>
Date: Wed, 11 Jan 2023 09:12:18 +0100
Subject: [PATCH] Add definition of OPTIMIZE to .ph files
The fortify.h header includes a test to ensure that -O is used when
compiling with _FORTIFY_SOURCE, and the header looks for OPTIMIZE, which
is set by the compiler whenever -O is used. Perl translates this test
to the .ph file, but nothing ever sets OPTIMIZE. This causes a warning
for anything that uses features.ph.
_FORTIFY_SOURCE is defined in /usr/lib64/perl5/_h2ph_pre.ph which is
generated by h2ph. It uses value of @Config{'ccsymbols', 'cppsymbols',
'cppccsymbols'} which does not contain definition for OPTIMIZE.
The patch updated h2ph to add OPTIMIZE if -O is used.
---
utils/h2ph.PL | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/utils/h2ph.PL b/utils/h2ph.PL
index afa53c2..3950d11 100644
--- a/utils/h2ph.PL
+++ b/utils/h2ph.PL
@@ -865,6 +865,11 @@ sub _extract_cc_defines
my $allsymbols = join " ",
@Config{'ccsymbols', 'cppsymbols', 'cppccsymbols'};
+ # If optimizing -O2 is used, add the definition
+ if ($Config{'ccflags'} =~ /(?:\s+|^)-O([\d]+)(?:\s+|$)/) {
+ $allsymbols .= " __OPTIMIZE__=$1";
+ }
+
# Split compiler pre-definitions into 'key=value' pairs:
while ($allsymbols =~ /([^\s]+)=((\\\s|[^\s])+)/g) {
$define{$1} = $2;
--
2.39.0

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save