From owner-freebsd-ports@FreeBSD.ORG Tue Nov 17 04:48:55 2009 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F3F1106568B for ; Tue, 17 Nov 2009 04:48:55 +0000 (UTC) (envelope-from mel.flynn+fbsd.ports@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id BE5FE8FC1A for ; Tue, 17 Nov 2009 04:48:54 +0000 (UTC) Received: from mx1.sbmail.office-on-the.net (mx1.sbmail.office-on-the.net [192.168.2.107]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id E67DA7E854 for ; Mon, 16 Nov 2009 19:31:59 -0900 (AKST) Received: from dspam.sbmail.office-on-the.net (mx1.sbmail.office-on-the.net [192.168.2.107]) by mx1.sbmail.office-on-the.net (Postfix) with SMTP id AAE9CC2CB05 for ; Mon, 16 Nov 2009 19:31:59 -0900 (AKST) Received: from webmail.testbox.ath.cx (mx1.sbmail.office-on-the.net [192.168.2.107]) by mx1.sbmail.office-on-the.net (Postfix) with ESMTP id B9ACBC2CB04; Mon, 16 Nov 2009 19:31:56 -0900 (AKST) MIME-Version: 1.0 Date: Mon, 16 Nov 2009 19:31:56 -0900 From: Mel Flynn To: Doug Barton In-Reply-To: <4B01E71F.5050909@FreeBSD.org> References: <91b92520911151444k742351bfl9ae20fb82a604bd5@mail.gmail.com> <20091116000643.GA14996@owl.midgard.homeip.net> <91b92520911160312q62c777absb735c44334328f05@mail.gmail.com> <4B01E71F.5050909@FreeBSD.org> Message-ID: <261861aa7cab3333176811dd23d15fc4@sbmail.office-on-the.net> X-Sender: mel.flynn+fbsd.ports@mailing.thruhere.net User-Agent: RoundCube Webmail/0.2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-DSPAM-Result: Innocent X-DSPAM-Processed: Mon Nov 16 19:31:59 2009 X-DSPAM-Confidence: 1.0000 X-DSPAM-Improbability: 1 in 98689407 chance of being spam X-DSPAM-Probability: 0.0023 X-DSPAM-Signature: 60,4b02273e42462057811625 X-DSPAM-Factors: 27, Trulsson+>, 0.40000, DIRECT_INSTALLED=yes+in, 0.40000, >>>>+Is, 0.40000, general+feature, 0.40000, the+svn, 0.40000, Options, 0.40000, annoyed+if, 0.40000, installed/deinstalled+each, 0.40000, >>>+had, 0.40000, AM, 0.40000, portupgrade+or, 0.40000, that+are, 0.40000, had+one, 0.40000, (never, 0.40000, student, 0.40000, could+get, 0.40000, a+better, 0.40000 Cc: ports@freebsd.org, Sandra Kachelmann Subject: Re: remove BUILD_DEPENDS automatically after install 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: Tue, 17 Nov 2009 04:48:55 -0000 On Mon, 16 Nov 2009 15:58:23 -0800, Doug Barton wrote= : > Sandra Kachelmann wrote: >> (portmaster author cc:ed) >>=20 >> On Mon, Nov 16, 2009 at 1:06 AM, Erik Trulsson >> wrote: >>> On Sun, Nov 15, 2009 at 11:44:04PM +0100, Sandra Kachelmann wrote: >>>> Is there a reason why BUILD_DEPENDS aren't being removed after a por= t >>>> has been installed and if no other installed port depends on it? >>> How do you know that the user does not want that port installed? >>> And what if the user will install 20 other ports afterwards - all of >>> which >>> is that same port as a BUILD_DEPENDS - should that port be >>> installed/deinstalled each and every time? >>=20 >> It would be nice if this was configurable. Maybe it could be even >> integrated into portupgrade or portmaster. If such a port is installed >> directly it could get a package entry DIRECT_INSTALLED=3Dyes in >> /var/db/pkg/.. or something (there is probably a better way to do >> this). >=20 > I have a new feature in the svn version of portmaster called > --packages-build that for any given run creates an internal list of > dependencies that are only ever listed as build deps (never run deps) > and installs packages for them but builds everything else. This > feature was created at the request of one of companies that sponsored > the package installation code. Currently it does not pkg_delete those > packages when it's done, but I could easily add that. \o/ > Actually I suppose it would not be too hard to extend that "list of > build only deps" idea to a general feature which deletes them when > done. Something like --delete-build-only maybe? This would be limited > to the subset of the list of build-only deps that portmaster actually > installed. Just because something is build-only for a given run of > portmaster doesn't mean that it isn't a run dep for something else if > it is already installed. I think this can be handled better with a "--finish-cmd". After portmaste= r is done with everything, exec the finish command. A port build server can then pkg_delete -a and see what's still left in $PREFIX, while a casual user can run pkg_cutleaves -xRg to add the newly installed leafs to the exclude file and remove the build dependencies and their dependencies. >>> (Personally I would be *very* annoyed if, for example, libtool or >>> automake/autoconf would be reinstalled every time I installed a port >>> which >>> had one of them as a build-time dependency. =20 >=20 > Well then don't use the option. :) Options are generally good things. With libtool there is a gotcha though. If you change CC/CXX, libtool has to be rebuilt, so the package may not be valid. --=20 -- Mel