[perl-DBI] Fix shell bangs in prep section

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 512c6d3b5174cf3809f6a490539ec99e96d5cf10
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Fri Dec 12 12:35:34 2014 +0100

    Fix shell bangs in prep section
    
    The dbixs_rev.pl should not be installed probably. It looks like
    an upstream mistake because EU::MM installs everything with .pl
    extension.
    
    The correct shell bang in dbixs_rev.pl triggers rpmlint error, but the
    correct bang is needed becuse it is run during %build phase from the
    Makefile.

 perl-DBI.spec |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/perl-DBI.spec b/perl-DBI.spec
index 6bd70b2..2172c04 100644
--- a/perl-DBI.spec
+++ b/perl-DBI.spec
@@ -105,7 +105,10 @@ iconv -f iso8859-1 -t utf-8 lib/DBD/Gofer.pm >lib/DBD/Gofer.pm.new &&
   mv lib/DBD/Gofer.pm{.new,}
 chmod 644 ex/*
 chmod 744 dbixs_rev.pl
-sed -i 's?#!perl?#!%{__perl}?' ex/corogofer.pl
+# Fix shell bangs
+for F in dbixs_rev.pl ex/corogofer.pl; do
+    perl -MExtUtils::MakeMaker -e "ExtUtils::MM_Unix->fixin(q{$F})"
+done
 %if %{without coro}
 rm lib/DBD/Gofer/Transport/corostream.pm
 sed -i -e '/^lib\/DBD\/Gofer\/Transport\/corostream.pm$/d' MANIFEST
@@ -133,8 +136,6 @@ make pure_install DESTDIR=%{buildroot}
 find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
 find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
 chmod -R u+w %{buildroot}/*
-perl -pi -e 's"#!perl -w"#!/usr/bin/perl -w"' \
-    %{buildroot}%{perl_vendorarch}/{goferperf,dbixs_rev}.pl
 
 %check
 make test
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux