Correct shell bangs in tests
Again we cannot do it in prep because the tests would execute perl from the system during check phase.
This commit is contained in:
parent
b96bb0d875
commit
43a7eb2791
11
perl.spec
11
perl.spec
|
@ -79,7 +79,7 @@ License: GPL+ or Artistic
|
||||||
Epoch: %{perl_epoch}
|
Epoch: %{perl_epoch}
|
||||||
Version: %{perl_version}
|
Version: %{perl_version}
|
||||||
# release number must be even higher, because dual-lived modules will be broken otherwise
|
# release number must be even higher, because dual-lived modules will be broken otherwise
|
||||||
Release: 405%{?dist}
|
Release: 406%{?dist}
|
||||||
Summary: Practical Extraction and Report Language
|
Summary: Practical Extraction and Report Language
|
||||||
Url: http://www.perl.org/
|
Url: http://www.perl.org/
|
||||||
Source0: http://www.cpan.org/src/5.0/perl-%{perl_version}.tar.bz2
|
Source0: http://www.cpan.org/src/5.0/perl-%{perl_version}.tar.bz2
|
||||||
|
@ -3154,6 +3154,12 @@ for dir in `find ext/ -type d -name t -maxdepth 2` ; do
|
||||||
tar -cf - $dir | ( cd %{buildroot}%{perl5_testdir}/perl-tests/t && tar -xf - )
|
tar -cf - $dir | ( cd %{buildroot}%{perl5_testdir}/perl-tests/t && tar -xf - )
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Normalize shell bangs in tests.
|
||||||
|
# brp-mangle-shebangs executed by rpm-build chokes on t/TEST.
|
||||||
|
%{new_perl} -MConfig -i -pn \
|
||||||
|
-e 's"\A#!(?:perl|\./perl|/usr/bin/perl|/usr/bin/env perl)\b"$Config{startperl}"' \
|
||||||
|
$(find %{buildroot}%{perl5_testdir}/perl-tests -type f)
|
||||||
|
|
||||||
%if %{with perl_enables_systemtap}
|
%if %{with perl_enables_systemtap}
|
||||||
# Systemtap tapset install
|
# Systemtap tapset install
|
||||||
mkdir -p %{buildroot}%{tapsetdir}
|
mkdir -p %{buildroot}%{tapsetdir}
|
||||||
|
@ -5192,6 +5198,9 @@ popd
|
||||||
|
|
||||||
# Old changelog entries are preserved in CVS.
|
# Old changelog entries are preserved in CVS.
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 01 2018 Petr Pisar <ppisar@redhat.com> - 4:5.26.1-406
|
||||||
|
- Correct shell bangs in tests
|
||||||
|
|
||||||
* Mon Jan 29 2018 Petr Pisar <ppisar@redhat.com> - 4:5.26.1-405
|
* Mon Jan 29 2018 Petr Pisar <ppisar@redhat.com> - 4:5.26.1-405
|
||||||
- Link XS modules to pthread library to fix linking with -z defs
|
- Link XS modules to pthread library to fix linking with -z defs
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue