From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Aug 11 19:50:09 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 68CBA16A41F for ; Thu, 11 Aug 2005 19:50:09 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1612743D55 for ; Thu, 11 Aug 2005 19:50:09 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j7BJo8wj063861 for ; Thu, 11 Aug 2005 19:50:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j7BJo8vK063860; Thu, 11 Aug 2005 19:50:08 GMT (envelope-from gnats) Date: Thu, 11 Aug 2005 19:50:08 GMT Message-Id: <200508111950.j7BJo8vK063860@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Anton Berezin Cc: Subject: Re: ports/84814: Fix ports/print/psutils tu use the correct PERL interpreter X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Anton Berezin List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Aug 2005 19:50:09 -0000 The following reply was made to PR ports/84814; it has been noted by GNATS. From: Anton Berezin To: Carlos A M dos Santos 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