From owner-freebsd-ports@FreeBSD.ORG Mon May 14 23:32:46 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3B36F1065670 for ; Mon, 14 May 2012 23:32:46 +0000 (UTC) (envelope-from bryan@shatow.net) Received: from secure.xzibition.com (secure.xzibition.com [173.160.118.92]) by mx1.freebsd.org (Postfix) with ESMTP id D757C8FC0A for ; Mon, 14 May 2012 23:32:44 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=shatow.net; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sweb; b=eG0nCR uYf4KnhVeB4acgbrax5AwjbIU0GXsFCQjyZ1Fwpz1XSlCiAb5HhKCvXLlLTOQxmV NjbqM1OQ0/DIWRMQXso4b9D8RW3ewXIuMoTMZ2kCzt/y8BUVEtnlJjH6lbTdRKdH O62it7k7ePM0Z0ODdhC28B9LDFFk+N4Y1OpLk= DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=shatow.net; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sweb; bh=diq7i0i2en7z 0tzv3i18bskoryVDSi6C+SKBQr/5wSY=; b=BujqCyGJBWd8EvnJNjc3qXz+hiek sYuYZ8TrZd4mWxsX1vJqIbVYE6In4r4hIcviADzCl1wJ4CmuLPMuW1xiopQRX1Do UGvG3aOYK0UVlEPhdcW1tcoh523FmwtYtg72VD5uH+8UUXMT7F5RiUC9fYKnypjH Z+0pFC+IdqcRrZw= Received: (qmail 35635 invoked from network); 14 May 2012 18:32:43 -0500 Received: from unknown (HELO ?192.168.0.107?) (bryan@shatow.net@74.94.87.209) by sweb.xzibition.com with ESMTPA; 14 May 2012 18:32:43 -0500 Message-ID: <4FB1961A.4000405@shatow.net> Date: Mon, 14 May 2012 18:32:42 -0500 From: Bryan Drewery User-Agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: Chuck Swiger References: <4FB1919E.3060700@shatow.net> In-Reply-To: X-Enigmail-Version: 1.4.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org Subject: Re: BUILD_DEPENDS= RUN_DEPENDS= 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: Mon, 14 May 2012 23:32:46 -0000 On 05/14/2012 06:25 PM, Chuck Swiger wrote: > On May 14, 2012, at 4:13 PM, Bryan Drewery wrote: >> I was trying to append to these in my /etc/make.conf and found that a >> large (thousands) number of ports are using = instead of +=, thus >> destroying any user-supplied depends. > > Yes. I think this may even be intentional on the part of the various > port maintainers, but the notion of user-supplied additional dependencies > is interesting. :-) Yes I have that concern as well. The risk may far outweigh the benefits here. > >> The use case for wanting to do this is to force devel/ccache to be a >> build dependency on all ports, for package building. Or to force in a >> particular library along with LDFLAGS into particular ports. This is >> achievable by modifying bsd.local.mk, but is not ideal. > > Why do you need ccache added to the build dependencies to use it? > Can't you just change CC/C++? For package building. I'm using a package building script that removes all packages before building the next, then only installs the build depends before building the next. Modifying CC is separate - need ccache installed first. Of course, I could update the package building tool to just install ccache first, which I will likely do anyway. It's just 1 example. Off the top of my head I can not think of other specific cases. Thanks for the input, Bryan Drewery