Date: Sun, 27 Feb 2011 21:41:27 GMT From: Anthony Low <shinji@pikopiko.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/155102: [patch] www/ikiwiki depends on /usr/bin/perl Message-ID: <201102272141.p1RLfRv8035097@red.freebsd.org> Resent-Message-ID: <201102272150.p1RLo4TH007068@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 155102 >Category: ports >Synopsis: [patch] www/ikiwiki depends on /usr/bin/perl >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: Sun Feb 27 21:50:04 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Anthony Low >Release: 8.2-RELEASE >Organization: >Environment: FreeBSD sumire.ndsk.pikopiko.org 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Sat Feb 26 08:17:32 PST 2011 root@elis.ndsk.pikopiko.org:/usr/obj/usr/src/sys/PAE-NDSK i386 >Description: Various scripts in www/ikiwiki use the shebang line '#!/usr/bin/perl', which will fail if /usr/bin symlinks are not created for perl. I have submitted a bug to upstream to hopefully fix this in a future release. >How-To-Repeat: cd /usr/ports/www/ikiwiki ; make >Fix: The attached patch will adjust the scripts to use '#!/usr/bin/env -S perl' instead. Patch attached with submission follows: --- Makefile.orig 2011-02-27 14:38:33.226761220 +0000 +++ Makefile 2011-02-27 14:33:47.679240795 +0000 @@ -63,6 +63,9 @@ PLIST_SUB= W3M="@comment " .endif post-patch: + ${GREP} -rl '^#!/usr/bin/perl' ${WRKSRC} | \ + ${XARGS} ${REINPLACE_CMD} -i '' \ + -e 's|#!/usr/bin/perl|#!/usr/bin/env -S perl|' @${REINPLACE_CMD} -i '' \ -e "s|/usr/bin/markdown|${LOCALBASE}/bin/markdown|" \ ${WRKSRC}/IkiWiki/Plugin/mdwn.pm >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102272141.p1RLfRv8035097>