From owner-freebsd-ports@FreeBSD.ORG Sun Feb 12 21:02:44 2006 Return-Path: X-Original-To: freebsd-ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8088116A420 for ; Sun, 12 Feb 2006 21:02:44 +0000 (GMT) (envelope-from jylefort@FreeBSD.org) Received: from host-212-68-242-42.brutele.be (host-212-68-242-42.brutele.be [212.68.242.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id B167F43D46 for ; Sun, 12 Feb 2006 21:02:43 +0000 (GMT) (envelope-from jylefort@FreeBSD.org) Received: from jsite.lefort.net (jsite.lefort.net [192.168.1.2]) by gateway.lefort.net (Postfix) with ESMTP id 71F4654D5; Sun, 12 Feb 2006 22:02:42 +0100 (CET) Received: from jsite.lefort.net (localhost [127.0.0.1]) by jsite.lefort.net (Postfix) with SMTP id 1FDA3C10F; Sun, 12 Feb 2006 22:02:42 +0100 (CET) Date: Sun, 12 Feb 2006 22:02:41 +0100 From: Jean-Yves Lefort To: freebsd-ports@FreeBSD.org Message-Id: <20060212220241.4ea652aa.jylefort@FreeBSD.org> In-Reply-To: <20060212203054.GC11732@it.ca> References: <200602110718.k1B7IAtY060011@freefall.freebsd.org> <20060211151306.GG11351@it.ca> <20060211195818.0ebaa31c.jylefort@FreeBSD.org> <20060211201722.GK11351@it.ca> <20060211214724.27c5457f.jylefort@FreeBSD.org> <20060212032944.GL11351@it.ca> <20060212201227.505c3101.jylefort@FreeBSD.org> <20060212203054.GC11732@it.ca> X-Mailer: Sylpheed running on FreeBSD Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Sun__12_Feb_2006_22_02_41_+0100_dcVAk2RfsD/YY33v" Cc: paul+fbsd@it.ca Subject: Re: ports/92946: New port: print/xmlprpr - XML Pretty Printer X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Feb 2006 21:02:44 -0000 --Signature=_Sun__12_Feb_2006_22_02_41_+0100_dcVAk2RfsD/YY33v Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, 12 Feb 2006 15:30:54 -0500 Paul Chvostek wrote: > On Sun, Feb 12, 2006 at 08:12:27PM +0100, Jean-Yves Lefort wrote: > > >=20 > > > Are you absolutely sure about that? I still have some old not-upgrad= ed > > > boxes with a /usr/local/bin/perl; in one case, I have an old symlink > > > pointing /usr/bin/perl to the "real" location, and in another case I > > > have a 10K /usr/bin/perl that appears to be a wrapper. > >=20 > > Yes I am. If you execute the grep command you'll see that a lot of > > scripts use /usr/bin/perl. >=20 > Good suggestion. You may not like the results. >=20 > # cd /usr/ports > # grep -lr '\${PERL' . | grep -c '/Makefile$' > 1933 > # grep -lr '/usr/bin/perl' . | while read file; do grep -q '\${PERL' $fil= e || echo $file; done | grep -c '/Makefile$' > 3 >=20 > Of these three hits, only one appears to assume that the perl binary > lives in /usr/bin/perl. (That would be sysutils/reoback.) # grep '#!/usr/bin/perl' /usr/bin/* /usr/local/bin/* /usr/X11R6/bin/* /usr/bin/mmroff:#!/usr/bin/perl /usr/local/bin/aclocal15:#!/usr/bin/perl /usr/local/bin/aclocal19:#!/usr/bin/perl /usr/local/bin/aspell-import:#!/usr/bin/perl /usr/local/bin/automake15:#!/usr/bin/perl -w /usr/local/bin/automake19:#!/usr/bin/perl -w /usr/local/bin/bdftogd:#!/usr/bin/perl -w /usr/local/bin/bonobo-slay:#!/usr/bin/perl /usr/local/bin/cpan:#!/usr/bin/perl /usr/local/bin/fixmswrd.pl:#!/usr/bin/perl /usr/local/bin/gifburst:#!/usr/bin/perl /usr/local/bin/glib-mkenums:#!/usr/bin/perl5 -w /usr/local/bin/gtkdoc-fixxref:#!/usr/bin/perl -w /usr/local/bin/gtkdoc-mkdb:#!/usr/bin/perl -w /usr/local/bin/gtkdoc-mktmpl:#!/usr/bin/perl -w /usr/local/bin/gtkdoc-scan:#!/usr/bin/perl -w /usr/local/bin/gtkdoc-scangobj:#!/usr/bin/perl -w /usr/local/bin/gtkdoc-scanobj:#!/usr/bin/perl -w /usr/local/bin/intltool-extract:#!/usr/bin/perl -w=20 /usr/local/bin/intltool-merge:#!/usr/bin/perl -w /usr/local/bin/intltool-prepare:#!/usr/bin/perl -w /usr/local/bin/intltool-update:#!/usr/bin/perl -w /usr/local/bin/prove:#!/usr/bin/perl -w /usr/X11R6/bin/auscope:#!/usr/bin/perl -- # -*-Perl-*- /usr/X11R6/bin/bdftruncate:#!/usr/bin/perl /usr/X11R6/bin/findtr:#!/usr/bin/perl -w /usr/X11R6/bin/gdialog:#!/usr/bin/perl /usr/X11R6/bin/getconfig.pl:#!/usr/bin/perl /usr/X11R6/bin/gst-launch-ext-0.8:#!/usr/bin/perl -w /usr/X11R6/bin/gst-visualise-0.8:#!/usr/bin/perl -w Of course, I only have 500 ports installed. > > It causes your script to break if a 4.x user removes his Perl port. >=20 > That is expected. If you remove a dependency, the thing that depends on > it breaks. How can failing to use make variables improve this? It'll not break if you hardcode /usr/bin/perl. --=20 Jean-Yves Lefort jylefort@FreeBSD.org http://lefort.be.eu.org/ --Signature=_Sun__12_Feb_2006_22_02_41_+0100_dcVAk2RfsD/YY33v Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD76JxyzD7UaO4AGoRAnjOAJ43AlI+ZJtZUD+hok8FVy+OG0NgEgCfXcC7 pjTZtZBA8vjsCSefCkVDe/4= =de1m -----END PGP SIGNATURE----- --Signature=_Sun__12_Feb_2006_22_02_41_+0100_dcVAk2RfsD/YY33v--