| Summary: | Fix ports/print/psutils to use the correct PERL interpreter | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Carlos A M dos Santos <casantos> | ||||
| Component: | Individual Port(s) | Assignee: | jmz | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Carlos A M dos Santos
2005-08-11 19:50:05 UTC
On Thu, Aug 11, 2005 at 03:42:30PM -0300, Carlos A M dos Santos wrote: > The "configure" script of the print/psutils-letter port assumes that > the PERL interpreter is /usr/bin/perl. That is true for FreeBSD 4.X > but not for 5.X. The attached patch modifies the script to find the > interpreter at build time. > --- ports::print::psutils-letter.patch begins here --- > diff -durP ports.orig/print/psutils-letter/scripts/configure ports/print/psutils-letter/scripts/configure > --- ports.orig/print/psutils-letter/scripts/configure Thu Aug 1 21:13:49 1996 > +++ ports/print/psutils-letter/scripts/configure Thu Aug 11 15:26:04 2005 > @@ -5,7 +5,7 @@ > BINDIR = $PREFIX/bin > INCLUDEDIR = $PREFIX/share/psutils > MANDIR =$PREFIX/man/man1 > -PERL = /usr/bin/perl > +PERL = `which perl` > CC=cc > END > exit 0 > --- ports::print::psutils-letter.patch ends here --- Make I suggest a better patch instead? Index: Makefile =================================================================== RCS file: /home/ncvs/ports/print/psutils-letter/Makefile,v retrieving revision 1.27 diff -u -r1.27 Makefile --- Makefile 7 Mar 2003 06:09:06 -0000 1.27 +++ Makefile 11 Aug 2005 19:39:53 -0000 @@ -24,6 +24,8 @@ fixpspps.1 fixtpps.1 fixwfwps.1 fixwpps.1 fixwwps.1 \ extractres.1 includeres.1 fixscribeps.1 psmerge.1 +SCRIPTS_ENV+= PERL=${PERL} + .if !defined(PAPERSIZE) PAPERSIZE=letter PAPERSIZE_UNSPECIFIED= yes Index: scripts/configure =================================================================== RCS file: /home/ncvs/ports/print/psutils-letter/scripts/configure,v retrieving revision 1.3 diff -u -r1.3 configure --- scripts/configure 2 Aug 1996 00:13:49 -0000 1.3 +++ scripts/configure 11 Aug 2005 19:39:57 -0000 @@ -5,7 +5,7 @@ BINDIR = $PREFIX/bin INCLUDEDIR = $PREFIX/share/psutils MANDIR =$PREFIX/man/man1 -PERL = /usr/bin/perl +PERL = $PERL CC=cc END exit 0 Cheers, \Anton. -- The moronity of the universe is a monotonically increasing function. -- Jarkko Hietaniemi Responsible Changed From-To: freebsd-ports-bugs->jmz Over to maintainer. State Changed From-To: open->closed Fixed. |