From owner-freebsd-ports@freebsd.org Mon Oct 19 23:16:48 2015 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F3CB7A18D02 for ; Mon, 19 Oct 2015 23:16:47 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D8A96197B for ; Mon, 19 Oct 2015 23:16:47 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id D5D46A18D01; Mon, 19 Oct 2015 23:16:47 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BBA0FA18CFE for ; Mon, 19 Oct 2015 23:16:47 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 9C6371979; Mon, 19 Oct 2015 23:16:47 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id 924641D6C; Mon, 19 Oct 2015 23:16:47 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id 4FDB016A70; Mon, 19 Oct 2015 23:16:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id pjaDz6LfoWIH; Mon, 19 Oct 2015 23:16:42 +0000 (UTC) Subject: Re: distfiles cleaner DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com 645E316A5E To: "Julian H. Stacey" , ports@FreeBSD.org References: <201510192257.t9JMvHqa063881@fire.js.berklix.net> Cc: Lars Engels , Kubilay Kocak , RW From: Bryan Drewery X-Enigmail-Draft-Status: N1110 Organization: FreeBSD Message-ID: <562579D7.8000307@FreeBSD.org> Date: Mon, 19 Oct 2015 16:16:39 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <201510192257.t9JMvHqa063881@fire.js.berklix.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2015 23:16:48 -0000 On 10/19/15 3:57 PM, Julian H. Stacey wrote: > Hi, Reference: >> From: RW via freebsd-ports >> Date: Mon, 19 Oct 2015 14:56:11 +0100 >=20 > RW via freebsd-ports wrote: >> On Mon, 19 Oct 2015 14:16:37 +0200 >> Julian H. Stacey wrote: >> >>> Hi ports@ >>> What is the modern equivalent of this obsolete stuff please ? >>> >>> http://www.freebsd.org/cgi/man.cgi?query=3Dportsclean&sektion=3D1&apr= opos=3D0&manpath=3DFreeBSD+9.0-RELEASE+and+Ports >>> portsclean --distclean >>> Clean out all the distfiles that are not referenced by any >>> port in the ports tree. >>> >>> https://wiki.freebsd.org/portupgrade >>> Portupgrade (aka pkgtools) >>> last edited 2012-08-01 >> >> Why are you looking at the wiki? >=20 > I didnt know what tool to look for so a search engine took me to the wi= ki. >=20 >> The code was updated only a few months >> ago? The wiki seems generally fine to me but I didn't read details. >=20 > Err ? moved from wiki to which ports/ ? > Wiki has "It is currently maintained by BryanDrewery " > So I added to CC. If the wiki is obsolete I suggest it be deleted > or reduced to point to URL with new code. >=20 >> https://svnweb.freebsd.org/ports/head/ports-mgmt/portupgrade/ >=20 > Thanks. >=20 > [with current] > cd /usr/ports/ports-mgmt/portupgrade ; make install ; man portupgrade > "To clean unreferenced distfiles, working directories and old shared > libraries, use portsclean(1)" > which portsclean # /usr/local/sbin/portsclean > pkg which /usr/local/sbin/portsclean # portupgrade-2.4.14,2 > pkg info portupgrade-2.4.14,2 | grep Origin # ports-mgmt/portupgrade >=20 >=20 >> I think the case for portupgrade and portsclean is now much stronger >> than it was before they were fully converted to pkg. That removed all >> the problems associated with maintaining a secondary database. The >> conversion to pkg replaced portmaster's best code and portupgrade's >> worst. >=20 > I'm lost. I presume portupgrade had some bad code, > replaced by good code from portmaster. Portupgrade is objectively better. Having maintained both for quite a while, I have given up trying to fix the problems in portmaster. Portupgrade has proper dependency handling, which portmaster does not (https://github.com/freebsd/portmaster/issues/44 not easily fixable in portmaster compared to easy to fix in portupgrade). Portupgrade handles libraries during upgrade so your system is not totally trashed during upgrade AND it does it in a sane order which portmaster does not as it removes things on the way down the chain which can result in basically removing everything while it works back up (https://github.com/freebsd/portmaster/issues/40) Portupgrade supports installing from packages, which portmaster does not (https://github.com/freebsd/portmaster/pull/34 incomplete). [Likely referenced by OP] Portupgrade keeps logs. Portupgrade keeps a db of the INDEX so it can be fast, compared to portmaster reparsing it. Portupgrade used to be frowned on for having a 2nd db for tracking installing ports, but it no longer does. It just queries the pkg db with 'pkg query' now [as referenced by OP]. Portupgrade's biggest problem is still with ruby upgrades. I could go on, but really I think both are pretty bad compared to using Poudriere, which also has a 'distclean' sub-command. --=20 Regards, Bryan Drewery