From 88ec6b85339b788271f67048027fe07b78c484e9 Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Fri, 14 Jun 2019 15:21:38 +0300 Subject: [PATCH] 1:5.28.2-alt2 - E2K: + ALT #35523 workaround (-O1 for regexec, re_exec) + drop obsolete kludges instead - added note regarding "SMP-incompatible" build --- perl.spec | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/perl.spec b/perl.spec index 47697b1fad..b93354c96e 100644 --- a/perl.spec +++ b/perl.spec @@ -1,14 +1,14 @@ Name: perl Version: 5.28.2 -Release: alt1 +Release: alt2 Epoch: 1 Summary: Practical Extraction and Report Language License: GPL or Artistic Group: Development/Perl -URL: http://www.perl.org -Packager: Perl Maintainers Team +Url: http://www.perl.org +Packager: Perl Maintainers Team Source: perl-%version.tar Patch01: perl-5.28.0-alt-644-at-ExtUtils-Install.patch @@ -414,11 +414,6 @@ find -name '*.orig' -delete %define site_privlib %site_prefix/share/perl/%ver %define site_archlib %site_prefix/%_lib/perl/%ver -%ifarch %e2k -# mcst#2279 -%add_optflags -D_FORTIFY_SOURCE=0 -%endif - sh Configure -ders \ -Duse64bitint \ -Dusethreads -Duseithreads -Duselargefiles \ @@ -434,11 +429,6 @@ sh Configure -ders \ -Dcf_by='%vendor' -Dcf_email='%packager' \ -Dmyhostname=localhost -Dperladmin=root@localhost -%ifarch %e2k -# before lcc-1.23 -cc --version | grep -q '^lcc:1.21' && echo '-lcxa' >> ./ext.libs -%endif - # kill rpath sed -i 's@ -Wl,-rpath,%archlib/CORE@@g' config.sh [Mm]akefile myconfig @@ -449,9 +439,18 @@ sed -i '/man3ext/{s/0/3pm/}' config.sh [Mm]akefile # make -lperl symlink ln -snf libperl-%ver.so libperl.so -# build the rest (SMP incompatible) +# build the rest (SMP incompatible on: sparc64 %%arm, according to fedora) make +%ifarch %e2k +# http://bugzilla.altlinux.org/35523 workaround +rm -f regexec.o libperl-%ver.so ext/re/re_exec.o +make OPTIMIZE+='%optflags -O1' regexec.o +make libperl-%ver.so +make -C ext/re OPTIMIZE+='%optflags -O1' re_exec.o +make -C ext/re all +%endif + %check export LD_LIBRARY_PATH=$PWD LD_BIND_NOW=1 PERL_DL_NONLAZY=1 # for perl 5.26.2; hack around t/porting/regen.t @@ -1069,6 +1068,12 @@ echo perl >%buildroot%_sysconfdir/buildreqs/packages/substitute.d/perl-base %autolib/Unicode %changelog +* Fri Jun 14 2019 Michael Shigorin 1:5.28.2-alt2 +- E2K: + + ALT #35523 workaround (-O1 for regexec, re_exec) + + drop obsolete kludges instead +- added note regarding "SMP-incompatible" build + * Sat May 25 2019 Igor Vlasenko 1:5.28.2-alt1 - 5.28.1 -> 5.28.2 -- 2.21.0