From 43a7eb2791cbd417a154f8670bf5d6430e06657b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 1 Feb 2018 09:22:09 +0100 Subject: [PATCH] Correct shell bangs in tests Again we cannot do it in prep because the tests would execute perl from the system during check phase. --- perl.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/perl.spec b/perl.spec index d504e58..884f044 100644 --- a/perl.spec +++ b/perl.spec @@ -79,7 +79,7 @@ License: GPL+ or Artistic Epoch: %{perl_epoch} Version: %{perl_version} # 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 Url: http://www.perl.org/ 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 - ) 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} # Systemtap tapset install mkdir -p %{buildroot}%{tapsetdir} @@ -5192,6 +5198,9 @@ popd # Old changelog entries are preserved in CVS. %changelog +* Thu Feb 01 2018 Petr Pisar - 4:5.26.1-406 +- Correct shell bangs in tests + * Mon Jan 29 2018 Petr Pisar - 4:5.26.1-405 - Link XS modules to pthread library to fix linking with -z defs