Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Aug 2005 19:50:08 GMT
From:      Anton Berezin <tobez@FreeBSD.org>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/84814: Fix ports/print/psutils tu use the correct PERL interpreter
Message-ID:  <200508111950.j7BJo8vK063860@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/84814; it has been noted by GNATS.

From: Anton Berezin <tobez@FreeBSD.org>
To: Carlos A M dos Santos <casantos@urisan.tche.br>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/84814: Fix ports/print/psutils tu use the correct PERL interpreter
Date: Thu, 11 Aug 2005 21:41:28 +0200

 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508111950.j7BJo8vK063860>