From owner-freebsd-current@FreeBSD.ORG Sat Nov 3 17:23:25 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0B8A16A418 for ; Sat, 3 Nov 2007 17:23:25 +0000 (UTC) (envelope-from davidt@yadt.co.uk) Received: from outcold.yadt.co.uk (outcold.yadt.co.uk [81.187.204.178]) by mx1.freebsd.org (Postfix) with ESMTP id 6D51513C48D for ; Sat, 3 Nov 2007 17:23:25 +0000 (UTC) (envelope-from davidt@yadt.co.uk) Received: from localhost (localhost [127.0.0.1]) by outcold.yadt.co.uk (Postfix) with ESMTP id E0BC4668A for ; Sat, 3 Nov 2007 16:39:34 +0000 (GMT) X-Virus-Scanned: amavisd-new at yadt.co.uk Received: from outcold.yadt.co.uk ([127.0.0.1]) by localhost (outcold.yadt.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sNDHRD+bVtBm for ; Sat, 3 Nov 2007 16:39:31 +0000 (GMT) Received: by outcold.yadt.co.uk (Postfix, from userid 1001) id 2646C667C; Sat, 3 Nov 2007 16:39:31 +0000 (GMT) Date: Sat, 3 Nov 2007 16:39:31 +0000 From: David Taylor To: freebsd-current@freebsd.org Message-ID: <20071103163931.GA23714@outcold.yadt.co.uk> Mail-Followup-To: freebsd-current@freebsd.org References: <472A66EE.6060407@gmail.com> <20071102043043.GI3109@dan.emsphone.com> <472A725F.6000201@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <472A725F.6000201@gmail.com> User-Agent: Mutt/1.4.2.3i Subject: Re: [PATCH] prevent install(1) from overwritting symlinks X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Nov 2007 17:23:25 -0000 On Thu, 01 Nov 2007, Aryeh M. Friedman wrote: > Dan Nelson wrote: > > In the last episode (Nov 01), Aryeh M. Friedman said: > > > >> The below patch is designed to keep install(1) from overwriting symbolic > >> links. The motivation is if cups is installed some programs still > >> expect lpr to be in /usr/bin thus when I install cups I backlink the > >> /usr/local/bin versions of lp* to /usr/bin. When a build/installworld > >> is done these links are overwritten and the sym links have to be > >> performed again. This patch prevents the overwrite. > >> > > > > Why not just set WITHOUT_LPR to skip building the base versions > > entirely? > > > > > Because this happens in other cases not covered by WITHOUT_XXX also it > does not solve the problem of ports and/or third party install from > overwritting.... If a port overwrites anything under /usr/bin then that is generally a bug. > i.e. this is a general solution to a specific problem > (which I think is preferable to a one off solution for each instance of > a problem) The WITHOUT_ knobs are a reasonably general solution -- if you wish to replace part of the base system, set WITHOUT_xxx and the base system will stop overwriting your replacement. Whether it is in the form of a symlink or a regular file. -- David Taylor