From owner-freebsd-ports@FreeBSD.ORG Tue Jan 10 09:57:32 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 644761065672 for ; Tue, 10 Jan 2012 09:57:32 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp04.sth.basefarm.net (ch-smtp04.sth.basefarm.net [80.76.153.5]) by mx1.freebsd.org (Postfix) with ESMTP id E22FB8FC08 for ; Tue, 10 Jan 2012 09:57:31 +0000 (UTC) Received: from c83-255-51-20.bredband.comhem.se ([83.255.51.20]:23278 helo=falcon.midgard.homeip.net) by ch-smtp04.sth.basefarm.net with esmtp (Exim 4.76) (envelope-from ) id 1RkYER-0004E0-EA for freebsd-ports@freebsd.org; Tue, 10 Jan 2012 10:43:08 +0100 Received: (qmail 8238 invoked from network); 10 Jan 2012 10:43:00 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 10 Jan 2012 10:43:00 +0100 Received: (qmail 3438 invoked by uid 1001); 10 Jan 2012 10:43:00 +0100 Date: Tue, 10 Jan 2012 10:43:00 +0100 From: Erik Trulsson To: Oliver Heesakkers Message-ID: <20120110094300.GA3306@owl.midgard.homeip.net> References: <4F0B36BD.8070202@yandex.ru> <2563036.pr1DpUBa3i@pcoliver.heesakkers.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2563036.pr1DpUBa3i@pcoliver.heesakkers.info> User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: 83.255.51.20 X-Scan-Result: No virus found in message 1RkYER-0004E0-EA. X-Scan-Signature: ch-smtp04.sth.basefarm.net 1RkYER-0004E0-EA 630a1a9b33d7312d50d45b37e6a2d687 Cc: freebsd-ports@freebsd.org Subject: Re: Perl symlinks question 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: Tue, 10 Jan 2012 09:57:32 -0000 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. -- Erik Trulsson ertr1013@student.uu.se