Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Feb 2006 22:02:41 +0100
From:      Jean-Yves Lefort <jylefort@FreeBSD.org>
To:        freebsd-ports@FreeBSD.org
Cc:        paul+fbsd@it.ca
Subject:   Re: ports/92946: New port: print/xmlprpr - XML Pretty Printer
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>

next in thread | previous in thread | raw e-mail | index | archive | help
--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 <paul+fbsd@it.ca> 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--



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