ports/112257: (possibly) bad perl path in bugzilla port
Christopher McCrory
chrismcc+freebsd at pricegrabber.com
Sun Apr 29 21:10:11 UTC 2007
>Number: 112257
>Category: ports
>Synopsis: (possibly) bad perl path in bugzilla port
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sun Apr 29 21:10:10 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Christopher McCrory
>Release: 6.2-RELEASE-p3
>Organization:
>Environment:
6.2-RELEASE-p3
FreeBSD buildhost62 6.2-RELEASE-p3 FreeBSD 6.2-RELEASE-p3 #0: Sat Apr 21 14:06:21 PDT 2007 root at buildhost62:/usr/obj/usr/src/sys/GENERIC i386
>Description:
since perl was pulled out of the core, perl is only from ports. This puts perl in /usr/local/bin. Normally this also puts a symlink for /usr/bin/perl, but it is optional. So, /usr/local/bin/perl will always exist , /usr/bin/perl might not.
the bugzilla install it hard coded to use /usr/bin/perl , not there, no work.
>How-To-Repeat:
remove /usr/bin/perl
>Fix:
replace path
[chrismcc at buildhost62 bugzilla]$ diff -u -7 Makefile~ Makefile
--- Makefile~ Mon Feb 12 06:23:26 2007
+++ Makefile Sun Apr 29 13:59:36 2007
@@ -97,14 +97,15 @@
post-patch:
@${PERL} -pi -e "s!(?<=webservergroup_default = ')apache!www!" \
${WRKSRC}/checksetup.pl
@${FIND} ${WRKSRC} \( -name "CVS" -or -name ".cvsignore" -or -name "*.orig" \
-or -name "README.docs" \) | ${XARGS} ${RM} -rf
@${FIND} ${WRKSRC} -name "*.p[ml]" | \
${XARGS} ${REINPLACE_CMD} -i '' -e 's!/usr/lib/sendmail!/usr/sbin/sendmail!'
+ @${PERL} -pi -e 's@#\!/usr/bin/perl@#\!/usr/local/bin/perl@' ${WRKSRC}/*cgi ${WRKSRC}/*pl ${WRKSRC}/contrib/*.pl ${WRKSRC}/docs/*pl
do-build:
@${SED} -e "s:%%BUGZILLADIR%%:${BUGZILLADIR}:g; s:%%DOCSDIR%%:${DOCSDIR}:g" \
${MASTERDIR}/pkg-message >${PKGMESSAGE}
do-install:
${MKDIR} ${BUGZILLADIR}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list