Bug 112257 - (possibly) bad perl path in bugzilla port
Summary: (possibly) bad perl path in bugzilla port
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: skv
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-29 22:10 UTC by christopher
Modified: 2007-05-28 13:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description christopher 2007-04-29 22:10:10 UTC
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.

Fix: replace path


[chrismcc@buildhost62 bugzilla]$ diff -u -7 Makefile~ Makefile


do-build:
        @${SED} -e "s:%%BUGZILLADIR%%:${BUGZILLADIR}:g; s:%%DOCSDIR%%:${DOCSDIR}:g" \
                ${MASTERDIR}/pkg-message >${PKGMESSAGE}

 do-install:
        ${MKDIR} ${BUGZILLADIR}--JptGMOo947z9imdKlobKHWUka57l16liWpShkZ6Ba3ErBwRV
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- 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
How-To-Repeat: remove /usr/bin/perl
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-04-29 22:59:41 UTC
Responsible Changed
From-To: freebsd-ports-bugs->skv

Over to maintainer
Comment 2 dfilter service freebsd_committer freebsd_triage 2007-05-28 13:03:55 UTC
skv         2007-05-28 12:03:47 UTC

  FreeBSD ports repository

  Modified files:
    devel/bugzilla       Makefile 
  Log:
  * fix dependencies
  * fix perl path [1]
  
  PR:             ports/112257 [1]
  Submitted by:   Christopher McCrory<chrismcc+freebsd xx pricegrabber.com> [1]
  
  Revision  Changes    Path
  1.51      +6 -5      ports/devel/bugzilla/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 skv freebsd_committer freebsd_triage 2007-05-28 13:04:03 UTC
State Changed
From-To: open->closed

Done.