ports/183660: www/awstats: perl shebang can be wrong
Lukasz Wasikowski
lukasz at wasikowski.net
Mon Nov 4 13:50:01 UTC 2013
>Number: 183660
>Category: ports
>Synopsis: www/awstats: perl shebang can be wrong
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Nov 04 13:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Lukasz Wasikowski
>Release: FreeBSD 9.2-RELEASE
>Organization:
>Environment:
>Description:
If one is not using USE_PERL in lang/perl5.1* then perl binary is in ${PREFIX}/bin/perl, which by default is /usr/local/bin/perl, and there is no /usr/bin/perl symlink.
Many awstats' files have hardcoded /usr/bin/perl shebangs.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: Makefile
===================================================================
--- Makefile (revision 332716)
+++ Makefile (working copy)
@@ -14,7 +14,10 @@
RUN_DEPENDS= p5-Net-XWhois>=0:${PORTSDIR}/net/p5-Net-XWhois
-USES= perl5
+USES= perl5 shebangfix
+
+SHEBANG_FILES= tools/*.pl wwwroot/cgi-bin/*.pl wwwroot/cgi-bin/plugins/*.pm
+
NO_BUILD= yes
USE_PERL5= run
USE_DOS2UNIX= tools/*.pl \
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list