ports/92946: New port: print/xmlprpr - XML Pretty Printer

Jean-Yves Lefort jylefort at FreeBSD.org
Sun Feb 12 13:02:44 PST 2006


On Sun, 12 Feb 2006 15:30:54 -0500
Paul Chvostek <paul+fbsd at it.ca> wrote:

> On Sun, Feb 12, 2006 at 08:12:27PM +0100, Jean-Yves Lefort wrote:
> > > 
> > > Are you absolutely sure about that?  I still have some old not-upgraded
> > > 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.
> > 
> > Yes I am. If you execute the grep command you'll see that a lot of
> > scripts use /usr/bin/perl.
> 
> Good suggestion.  You may not like the results.
> 
> # cd /usr/ports
> # grep -lr '\${PERL' . | grep -c '/Makefile$'
> 1933
> # grep -lr '/usr/bin/perl' . | while read file; do grep -q '\${PERL' $file || echo $file; done | grep -c '/Makefile$'
> 3
> 
> 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 
/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.
> 
> 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.

-- 
Jean-Yves Lefort

jylefort at FreeBSD.org
http://lefort.be.eu.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20060212/90b6dd1a/attachment.bin


More information about the freebsd-ports mailing list