View | Details | Raw Unified | Return to bug 35523
Collapse All | Expand All

(-)a/perl.spec (-15 / +19 lines)
Lines 1-14 Link Here
1
Name: perl
1
Name: perl
2
Version: 5.28.2
2
Version: 5.28.2
3
Release: alt1
3
Release: alt2
4
Epoch: 1
4
Epoch: 1
5
5
6
Summary: Practical Extraction and Report Language
6
Summary: Practical Extraction and Report Language
7
License: GPL or Artistic
7
License: GPL or Artistic
8
Group: Development/Perl
8
Group: Development/Perl
9
URL: http://www.perl.org
10
Packager: Perl Maintainers Team <cpan@packages.altlinux.org>
11
9
10
Url: http://www.perl.org
11
Packager: Perl Maintainers Team <cpan@packages.altlinux.org>
12
Source: perl-%version.tar
12
Source: perl-%version.tar
13
13
14
Patch01: perl-5.28.0-alt-644-at-ExtUtils-Install.patch
14
Patch01: perl-5.28.0-alt-644-at-ExtUtils-Install.patch
Lines 414-424 find -name '*.orig' -delete Link Here
414
%define site_privlib %site_prefix/share/perl/%ver
414
%define site_privlib %site_prefix/share/perl/%ver
415
%define site_archlib %site_prefix/%_lib/perl/%ver
415
%define site_archlib %site_prefix/%_lib/perl/%ver
416
416
417
%ifarch %e2k
418
# mcst#2279
419
%add_optflags -D_FORTIFY_SOURCE=0
420
%endif
421
422
sh Configure -ders \
417
sh Configure -ders \
423
	-Duse64bitint \
418
	-Duse64bitint \
424
	-Dusethreads -Duseithreads -Duselargefiles \
419
	-Dusethreads -Duseithreads -Duselargefiles \
Lines 434-444 sh Configure -ders \ Link Here
434
	-Dcf_by='%vendor' -Dcf_email='%packager' \
429
	-Dcf_by='%vendor' -Dcf_email='%packager' \
435
	-Dmyhostname=localhost -Dperladmin=root@localhost
430
	-Dmyhostname=localhost -Dperladmin=root@localhost
436
431
437
%ifarch %e2k
438
# before lcc-1.23
439
cc --version | grep -q '^lcc:1.21' && echo '-lcxa' >> ./ext.libs
440
%endif
441
442
# kill rpath
432
# kill rpath
443
sed -i 's@ -Wl,-rpath,%archlib/CORE@@g' config.sh [Mm]akefile myconfig
433
sed -i 's@ -Wl,-rpath,%archlib/CORE@@g' config.sh [Mm]akefile myconfig
444
434
Lines 449-457 sed -i '/man3ext/{s/0/3pm/}' config.sh [Mm]akefile Link Here
449
# make -lperl symlink
439
# make -lperl symlink
450
ln -snf libperl-%ver.so libperl.so
440
ln -snf libperl-%ver.so libperl.so
451
441
452
# build the rest (SMP incompatible)
442
# build the rest (SMP incompatible on: sparc64 %%arm, according to fedora)
453
make
443
make
454
444
445
%ifarch %e2k
446
# http://bugzilla.altlinux.org/35523 workaround
447
rm -f regexec.o libperl-%ver.so ext/re/re_exec.o
448
make OPTIMIZE+='%optflags -O1' regexec.o
449
make libperl-%ver.so
450
make -C ext/re OPTIMIZE+='%optflags -O1' re_exec.o
451
make -C ext/re all
452
%endif
453
455
%check
454
%check
456
export LD_LIBRARY_PATH=$PWD LD_BIND_NOW=1 PERL_DL_NONLAZY=1
455
export LD_LIBRARY_PATH=$PWD LD_BIND_NOW=1 PERL_DL_NONLAZY=1
457
# for perl 5.26.2; hack around t/porting/regen.t
456
# for perl 5.26.2; hack around t/porting/regen.t
Lines 1069-1074 echo perl >%buildroot%_sysconfdir/buildreqs/packages/substitute.d/perl-base Link Here
1069
	%autolib/Unicode
1068
	%autolib/Unicode
1070
1069
1071
%changelog
1070
%changelog
1071
* Fri Jun 14 2019 Michael Shigorin <mike@altlinux.org> 1:5.28.2-alt2
1072
- E2K:
1073
  + ALT #35523 workaround (-O1 for regexec, re_exec)
1074
  + drop obsolete kludges instead
1075
- added note regarding "SMP-incompatible" build
1076
1072
* Sat May 25 2019 Igor Vlasenko <viy@altlinux.ru> 1:5.28.2-alt1
1077
* Sat May 25 2019 Igor Vlasenko <viy@altlinux.ru> 1:5.28.2-alt1
1073
- 5.28.1 -> 5.28.2
1078
- 5.28.1 -> 5.28.2
1074
1079
1075
- 

Return to bug 35523