From owner-freebsd-current@FreeBSD.ORG Fri Nov 2 04:50:42 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 D418616A418 for ; Fri, 2 Nov 2007 04:50:42 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.230]) by mx1.freebsd.org (Postfix) with ESMTP id 8D41513C481 for ; Fri, 2 Nov 2007 04:50:42 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so619974wxd for ; Thu, 01 Nov 2007 21:50:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=aFOKAhS7CkDZZy1qEsVsFwAbImycjXylUopjWGWAnUE=; b=eXkuvol8r1lehOBHvRHtZbFxPYW64yFF6gV7kXwaIiwSybwAR0GdJqb3pgfHoUyUctd+Iklo6Z0Bq0NY6lcjUE2tav/6+RF1osX5dlaSKADxzC2SLVO4d+gOy509J3GVB763ZVgAy2LcEyRb7OuAGYlhlAc8JszLr4OyKAi9Dqo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=h9Ika2Va0PZ005WES6klwFGrIjRAt6cBA9kWww96gBOuSv/Levd5esQPnG/0WYCYOJq4UT67ypp/kAc27mfkXNDBbBrCm0ygPUgYAsLKq/sDxIpZhgor0u8Ppj3bPMs13yuEyo/qmYM3/RWoyld+ZTGZJM8P6Nehq0zVDVNztSM= Received: by 10.70.89.11 with SMTP id m11mr1944455wxb.1193978596170; Thu, 01 Nov 2007 21:43:16 -0700 (PDT) Received: from ?192.168.2.2? ( [67.85.89.184]) by mx.google.com with ESMTPS id r28sm4198357ele.2007.11.01.21.43.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 01 Nov 2007 21:43:15 -0700 (PDT) Message-ID: <472A725F.6000201@gmail.com> Date: Thu, 01 Nov 2007 20:42:07 -0400 From: "Aryeh M. Friedman" User-Agent: Thunderbird 2.0.0.6 (X11/20071031) MIME-Version: 1.0 To: Dan Nelson References: <472A66EE.6060407@gmail.com> <20071102043043.GI3109@dan.emsphone.com> In-Reply-To: <20071102043043.GI3109@dan.emsphone.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org 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: Fri, 02 Nov 2007 04:50:42 -0000 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.... 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)