Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jan 2012 10:43:00 +0100
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        Oliver Heesakkers <freebsd@heesakkers.info>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Perl symlinks question
Message-ID:  <20120110094300.GA3306@owl.midgard.homeip.net>
In-Reply-To: <2563036.pr1DpUBa3i@pcoliver.heesakkers.info>
References:  <4F0B36BD.8070202@yandex.ru> <2563036.pr1DpUBa3i@pcoliver.heesakkers.info>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jan 10, 2012 at 12:46:51AM +0100, Oliver Heesakkers wrote:
> Op ma 09 jan 2012 22:49:33 schreef Ruslan Mahmatkhanov:
> > Hi.
> > 
> > There is PR: http://bugs.freebsd.org/163687
> > It tries to fix port building when user built it's perl installation
> > with USE_PERL option (creating symlinks in /usr/bin) set to off (not the
> > default). Patch in PR just replaces static shebang with ${PERL} variable
> > from Mk/bsd.perl.mk. But it doesn't actually fix the build, because
> > consequent call of aclocal-1.11 will fail since it's shebang set to
> > '/usr/bin/perl' too.
> > 
> > The question is how to properly handle this PR:
> > 1. Fix devel/automake too (by replacing /usr/bin/perl with ${PERL})
> > 2. Create symlinks unconditionally in perl port and drop USE_PERL option
> > 3. Close PR as invalid since the build fails because of user
> >     intervention (changing the value of default option)
> 
> 4. Teach upstream (and maybe maintainers) to use /usr/bin/env as they should 
> do:
> 
> http://perldoc.perl.org/perlintro.html#Running-Perl-programs

That may be the modern way of doing it, but older versions of the Perl
documentation used to recommend using /usr/bin/perl, so there are most
likely a ton of perl scripts out there (only a small fraction of which
appears in the FreeBSD ports tree) which use that convention.
It is also worth noting that even the current version of the Perl
documentation refers to /usr/bin/perl in numerous places and recommends
that it exists as a symlink to the perl binary.




-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se



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