Bug 199728

Summary: Perl scripts in /usr/ports/Tools/scripts/ broken since r358817
Product: Ports & Packages Reporter: Ashish SHUKLA <ashish>
Component: Ports FrameworkAssignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed Overcome By Events    
Severity: Affects Some People CC: miwi
Priority: --- Keywords: easy, needs-patch, regression
Version: Latest   
Hardware: Any   
OS: Any   

Description Ashish SHUKLA freebsd_committer freebsd_triage 2015-04-27 09:21:15 UTC
Since r358817[1] is committed to ports tree, the affected perl scripts are broken. e.g.,

#v+
% /usr/ports/Tools/scripts/bump_revision.pl      
env: perl -w: No such file or directory
#v-

Probably should add "use warnings;" to the files, instead of "-w" switch in
shebang line.

References:
[1]  https://svnweb.freebsd.org/ports?view=revision&revision=358817

HTH
Comment 1 Mathieu Arnold freebsd_committer freebsd_triage 2015-06-12 20:27:21 UTC
anyone can fix that.
Comment 2 Jan Beich freebsd_committer freebsd_triage 2015-06-12 22:55:44 UTC
Also, env(1) can do word splitting since FreeBSD 5.5R. And ports r358817 job isn't even finished yet.

  #!/usr/bin/env -S perl -w

$ fgrep -r 'env perl -' $PORTSDIR/Tools/scripts/
/p/Tools/scripts/distinfochecker:#!/usr/bin/env perl -w
/p/Tools/scripts/bump_revision.pl:#!/usr/bin/env perl -w
/p/Tools/scripts/mark_safe.pl:#!/usr/bin/env perl -w
/p/Tools/scripts/chkversion.pl:#!/usr/bin/env perl -w

$ fgrep -r /usr/bin/perl $PORTSDIR/Tools/
/p/Tools/scripts/splitpatch.pl:#! /usr/bin/perl -w
/p/Tools/scripts/pkg-stash/pkg-stash.pl:#!/usr/bin/perl -wT
/p/Tools/make_readmes:#!/usr/bin/perl
/p/Tools/make_index:#!/usr/bin/perl