From owner-freebsd-ports@FreeBSD.ORG Sun Jan 30 10:31:31 2005 Return-Path: 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 D9D7A16A4CE; Sun, 30 Jan 2005 10:31:30 +0000 (GMT) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95BDC43D46; Sun, 30 Jan 2005 10:31:30 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 053DF5E7E; Sun, 30 Jan 2005 05:31:30 -0500 (EST) Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 56212-07; Sun, 30 Jan 2005 05:31:28 -0500 (EST) Received: from [192.168.1.3] (pool-68-161-114-38.ny325.east.verizon.net [68.161.114.38]) by pi.codefab.com (Postfix) with ESMTP id 56FD15DC3; Sun, 30 Jan 2005 05:31:27 -0500 (EST) Message-ID: <41FCB779.7030902@mac.com> Date: Sun, 30 Jan 2005 05:31:21 -0500 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Edwin Groothuis References: <20050129202425.GA56998@heechee.tobez.org> <20050129220905.46ab86ae.lehmann@ans-netz.de> <41FBFDD9.7070605@mac.com> <20050130162753.D9021@a2.scoop.co.nz> <41FC67D8.2020609@mac.com> <20050130050110.GC1209@k7.mavetju> In-Reply-To: <20050130050110.GC1209@k7.mavetju> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at codefab.com cc: perl@freebsd.org cc: freebsd-stable@freebsd.org cc: freebsd-ports@freebsd.org Subject: Re: [HEADS UP] perl symlinks in /usr/bin will be gone X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jan 2005 10:31:31 -0000 Edwin Groothuis wrote: > On Sat, Jan 29, 2005 at 11:51:36PM -0500, Chuck Swiger wrote: >>Andrew McNaughton wrote: >>#!/usr/bin/env PERL5OPT='-w' perl > > "#!/usr/bin/perl -w" sounds much easier. Sure, assuming there actually was a perl in /usr/bin. I would not choose to hardcode the path to perl when env is available to properly locate the interpreter for #!-based scripts via the $PATH. tobez@ is in the unenviable position of trying to support a language that was added and then removed from the base system. He can produce a port that respects $PREFIX by not changing anything outside of /usr/local, or one that provides backwards compatibility with Perl being part of the base system at the cost of creating extra symlinks and spamming /etc/make.conf. Since the decision to remove Perl from FreeBSD's base was not accompanied by universal recognition and acceptance that scripts should not hardcode a path to /usr/bin/perl, there exists a conflict which is not going to go away until either Perl gets added back to the base system, or the Perl scripts are fixed. I don't want to revisit a discussion of whether Perl should be part of base. I don't want the Perl port to change in a way that breaks existing scripts. I don't want perl scripts to assume that Perl is in /usr/bin, or /usr/local/bin, or any other specific place. I don't want to have perl symlinked between /usr/bin and /usr/local/bin. I do want scripts to use a portable mechanism to invoke Perl regardless of where the binary happens to be found, but if people are determined to do otherwise, well, that's up to them. One solution for those people might be to install the Perl port with a $PREFIX of /usr rather than /usr/local. -- -Chuck