ports/155102: [patch] www/ikiwiki depends on /usr/bin/perl
Anthony Low
shinji at pikopiko.org
Sun Feb 27 21:50:04 UTC 2011
>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 at 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:
More information about the freebsd-ports-bugs
mailing list