From owner-freebsd-perl@FreeBSD.ORG Sun Jan 30 03:08:42 2005 Return-Path: Delivered-To: freebsd-perl@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 180B816A4CE for ; Sun, 30 Jan 2005 03:08:42 +0000 (GMT) Received: from av1-2-sn4.m-sp.skanova.net (av1-2-sn4.m-sp.skanova.net [81.228.10.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4A6443D2F for ; Sun, 30 Jan 2005 03:08:40 +0000 (GMT) (envelope-from ertr1013@student.uu.se) Received: by av1-2-sn4.m-sp.skanova.net (Postfix, from userid 502) id BDF1E37E73; Sun, 30 Jan 2005 04:08:39 +0100 (CET) Received: from smtp4-2-sn4.m-sp.skanova.net (smtp4-2-sn4.m-sp.skanova.net [81.228.10.180]) by av1-2-sn4.m-sp.skanova.net (Postfix) with ESMTP id AD75237E45 for ; Sun, 30 Jan 2005 04:08:39 +0100 (CET) Received: from falcon.midgard.homeip.net (h201n1fls24o1048.bredband.comhem.se [212.181.162.201]) by smtp4-2-sn4.m-sp.skanova.net (Postfix) with SMTP id E067037E42 for ; Sun, 30 Jan 2005 04:08:38 +0100 (CET) Received: (qmail 87796 invoked by uid 1001); 30 Jan 2005 03:08:38 -0000 Date: Sun, 30 Jan 2005 04:08:37 +0100 From: Erik Trulsson To: Matthias Andree Message-ID: <20050130030837.GA87780@falcon.midgard.homeip.net> Mail-Followup-To: Matthias Andree , Oliver Lehmann , perl@freebsd.org, freebsd-stable@freebsd.org, tobez@freebsd.org, freebsd-ports@freebsd.org References: <20050129202425.GA56998@heechee.tobez.org> <20050129220905.46ab86ae.lehmann@ans-netz.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i cc: perl@freebsd.org cc: freebsd-ports@freebsd.org cc: freebsd-stable@freebsd.org cc: Oliver Lehmann Subject: Re: [HEADS UP] perl symlinks in /usr/bin will be gone X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jan 2005 03:08:42 -0000 On Sun, Jan 30, 2005 at 03:39:51AM +0100, Matthias Andree wrote: > Oliver Lehmann writes: > > > Anton Berezin wrote: > > > >> In practical terms this will mean a one-time sweep of your scripts in > >> order to convert them, in a typical case, from #! /usr/bin/perl to > >> #! /usr/local/bin/perl. > > > > Wouldn't that break most of the 3rd party scripts out in the world? > > Hardcoded paths in scripts are a mess. What if I installed Perl into > /opt/mumble on some other machine? /usr/freeware? /what/ever? Changed > $PREFIX and/or $LOCALBASE? Then you would have nobody but yourself to blame. >From the Perl documentation: It may seem obvious to say, but Perl is useful only when users can easily find it. When possible, it's good for both /usr/bin/perl and /usr/local/bin/perl to be symlinks to the actual binary. If that can't be done, system administrators are strongly encouraged to put (symlinks to) perl and its accompanying utilities, such as perldoc, into a directory typically found along a user's PATH, or in another obvious and convenient place. In this documentation, #!/usr/bin/perl on the first line of the script will stand in for whatever method works on your system. > > I'd say let the ports patch the right location at install time and if > they break after upgrading both perl and the port, they deserve no better. And what about all the scripts that administrators and users write that are not part of any port? Scripts that were written according to the de-facto standard that having '#!/usr/bin/perl' on the first line of the script will work correctly. No, the proposed change is a bad idea that will create lots of problems for very little gain. -- Erik Trulsson ertr1013@student.uu.se