From owner-freebsd-ports@FreeBSD.ORG Sat Mar 17 10:27:07 2012 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CE16D106564A; Sat, 17 Mar 2012 10:27:07 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 95F268FC1A; Sat, 17 Mar 2012 10:27:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2HAR79B051944; Sat, 17 Mar 2012 10:27:07 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2HAR6ts051943; Sat, 17 Mar 2012 10:27:06 GMT (envelope-from bapt@FreeBSD.org) X-Authentication-Warning: freefall.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f Date: Sat, 17 Mar 2012 11:27:02 +0100 From: Baptiste Daroussin To: Doug Barton Message-ID: <20120317102702.GC83408@azathoth.lan> References: <4F60C059.7060904@FreeBSD.org> <4F63E809.1080606@FreeBSD.org> <4F63ED21.60302@vangyzen.net> <4F640E54.1040401@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TYecfFk8j8mZq+dy" Content-Disposition: inline In-Reply-To: <4F640E54.1040401@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Adrian Chadd , Eric van Gyzen , Oleg Moskalenko , freebsd-current@FreeBSD.org, Gabor Kovesdan , freebsd-ports@FreeBSD.org, Jonathan Anderson Subject: Re: CFT: new BSD-licensed sort available 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: Sat, 17 Mar 2012 10:27:07 -0000 --TYecfFk8j8mZq+dy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 16, 2012 at 09:08:52PM -0700, Doug Barton wrote: > On 03/16/2012 18:47, Eric van Gyzen wrote: > > On 03/16/2012 08:25 PM, Doug Barton wrote: > >> On 03/14/2012 15:14, Jonathan Anderson wrote: > >>> In fact, the runtime behaviour of the Debian "alternatives" system is > >>> simpler than that: > >>> http://segfault.in/2010/04/using-the-debian-alternatives-system/ > > [...] > >> This sounds like a good solution to more than one problem. Does anyone > >> know why they indirect through 2 sets of symlinks? That article doesn't > >> touch on the "why?" only the what. > >=20 > > Do you mean, why do they do > > /usr/bin/vim -> /etc/alternatives/vim -> /usr/bin/vim.gtk > > instead of > > /usr/bin/vim -> /usr/bin/vim.gtk > > ? > >=20 > > Someone's choice of a vi-like editor would be considered configuration, > > so it belongs in /etc. >=20 > If that's the *only* reason then it seems to me that it would be better > solved by being able to express that in a config file in /usr/local/etc > which the alternate-updater script takes into account. But I need to > install debian for other reasons anyway, so I'll look at this in more > detail. Thanks. >=20 As I already said I started working on something equivalent for freebsd: http://people.freebsd.org/~bapt/alternative.txt but never found time to fin= ish. Why to symlink, this is 1/ because it concerns user/admin configuration, 2 = it allows to change it even with your /usr/local/bin mounted RO. regards, Bapt --TYecfFk8j8mZq+dy Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk9kZvUACgkQ8kTtMUmk6EwmWACgms2qPCVdeEmcCEh0+s6zgl6o kjUAoLjl6CzO+5OR42m4nAx0v+iOdpDK =MAdC -----END PGP SIGNATURE----- --TYecfFk8j8mZq+dy--