Date: Mon, 4 Nov 2013 13:43:45 GMT From: Lukasz Wasikowski <lukasz@wasikowski.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/183660: www/awstats: perl shebang can be wrong Message-ID: <201311041343.rA4Dhjci085272@oldred.freebsd.org> Resent-Message-ID: <201311041350.rA4Do04j088131@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311041343.rA4Dhjci085272>