Bug 199728 - Perl scripts in /usr/ports/Tools/scripts/ broken since r358817
Summary: Perl scripts in /usr/ports/Tools/scripts/ broken since r358817
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords: easy, needs-patch, regression
Depends on:
Blocks:
 
Reported: 2015-04-27 09:21 UTC by Ashish SHUKLA
Modified: 2018-05-10 16:06 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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