From owner-freebsd-ports@FreeBSD.ORG Sun Jan 30 15:52:04 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 9F2A716A4D1 for ; Sun, 30 Jan 2005 15:52:04 +0000 (GMT) Received: from av1-1-sn1.fre.skanova.net (av1-1-sn1.fre.skanova.net [81.228.11.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id C62FC43D41 for ; Sun, 30 Jan 2005 15:52:03 +0000 (GMT) (envelope-from ertr1013@student.uu.se) Received: by av1-1-sn1.fre.skanova.net (Postfix, from userid 502) id 944EC37E68; Sun, 30 Jan 2005 16:52:02 +0100 (CET) Received: from smtp2-1-sn2.hy.skanova.net (smtp2-1-sn2.hy.skanova.net [81.228.8.177]) by av1-1-sn1.fre.skanova.net (Postfix) with ESMTP id 8298537E42 for ; Sun, 30 Jan 2005 16:52:02 +0100 (CET) Received: from falcon.midgard.homeip.net (h201n1fls24o1048.bredband.comhem.se [212.181.162.201]) by smtp2-1-sn2.hy.skanova.net (Postfix) with SMTP id B84BB37E42 for ; Sun, 30 Jan 2005 16:52:01 +0100 (CET) Received: (qmail 1002 invoked by uid 1001); 30 Jan 2005 15:52:01 -0000 Date: Sun, 30 Jan 2005 16:52:01 +0100 From: Erik Trulsson To: Matthias Andree Message-ID: <20050130155201.GB930@falcon.midgard.homeip.net> Mail-Followup-To: Matthias Andree , perl@freebsd.org, freebsd-ports@freebsd.org, freebsd-stable@freebsd.org, tobez@freebsd.org References: <20050129202425.GA56998@heechee.tobez.org> <20050129220905.46ab86ae.lehmann@ans-netz.de> <20050130030837.GA87780@falcon.midgard.homeip.net> 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-stable@freebsd.org cc: tobez@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 15:52:04 -0000 On Sun, Jan 30, 2005 at 02:44:38PM +0100, Matthias Andree wrote: > Erik Trulsson writes: > > >> 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. > > So ports not heeding PREFIX or LOCALBASE aren't buggy? Interesting POV. That is not what I said (but, no, they are not necessarily buggy depending on why the they don't heed PREFIX/LOCALBASE.) Respecting PREFIX and LOCALBASE is good, but keeping things working is even 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. > > As mentioned before, #! /usr/bin/env perl is the canonic SHORT way to > run perl, longer ways are in perlrun(1). It might be the canonic way and it might even be the best way, but it is not the standard way. Older versions of perlrun(1) (like the one included in FreeBSD 4.x) does not even mention /usr/bin/env so don't expect too many scripts to use it (and the context in which 'env' is mentioned is handling OS-specific limitations of the #! mechanism.) perlrun(1) does however say that "When possible, it's good for both /usr/bin/perl and /usr/local/bin/perl to be symlinks to the actual binary." -- Erik Trulsson ertr1013@student.uu.se