From owner-freebsd-ports@freebsd.org Mon Oct 19 22:57:54 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 CE6A4A186BF for ; Mon, 19 Oct 2015 22:57:54 +0000 (UTC) (envelope-from jhs@berklix.com) 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 B333A103F for ; Mon, 19 Oct 2015 22:57:54 +0000 (UTC) (envelope-from jhs@berklix.com) Received: by mailman.ysv.freebsd.org (Postfix) id B0928A186BE; Mon, 19 Oct 2015 22:57:54 +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 9564CA186BD for ; Mon, 19 Oct 2015 22:57:54 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from slim.berklix.org (slim.berklix.org [94.185.90.68]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3524E103C; Mon, 19 Oct 2015 22:57:52 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from mart.js.berklix.net (p5083C162.dip0.t-ipconnect.de [80.131.193.98]) (authenticated bits=128) by slim.berklix.org (8.14.5/8.14.5) with ESMTP id t9JMxHUC038307; Tue, 20 Oct 2015 00:59:17 +0200 (CEST) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id t9JMvld5049384; Tue, 20 Oct 2015 00:57:47 +0200 (CEST) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.7/8.14.7) with ESMTP id t9JMvHqa063881; Tue, 20 Oct 2015 00:57:29 +0200 (CEST) (envelope-from jhs@berklix.com) Message-Id: <201510192257.t9JMvHqa063881@fire.js.berklix.net> To: ports@FreeBSD.org cc: Lars Engels , Kubilay Kocak , RW , Bryan Drewery Subject: Re: distfiles cleaner From: "Julian H. Stacey" Organization: http://berklix.com BSD Unix Linux Consultants, Munich Germany User-agent: EXMH on FreeBSD http://berklix.com/free/ X-URL: http://www.berklix.com In-reply-to: Your message "Mon, 19 Oct 2015 14:56:11 +0100." <20151019145611.459045c5@gumby.homeunix.com> Date: Tue, 20 Oct 2015 00:57:17 +0200 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 22:57:54 -0000 Hi, Reference: > From: RW via freebsd-ports > Date: Mon, 19 Oct 2015 14:56:11 +0100 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=portsclean&sektion=1&apropos=0&manpath=FreeBSD+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? I didnt know what tool to look for so a search engine took me to the wiki. > The code was updated only a few months > ago? 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. > https://svnweb.freebsd.org/ports/head/ports-mgmt/portupgrade/ Thanks. [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 > 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. I'm lost. I presume portupgrade had some bad code, replaced by good code from portmaster. > BTW I recently switched from distviper to portsclean. I used to prefer > distviper because of its speed, but that speed comes from assuming that > all distinfo files are called distinfo, which isn't true. I found > it was unconditionally removing the files for linux ports. Yes, confirmed below, distviper removed a great swathe of rpm/i386/fedora/10/ rpm/i686/centos/6.6/ > It's also > never been converted to pkg which breaks its fast mode. Cloning my 58G current distfiles to test each method I found: PORTS/ EXECUTABLE DISTFILES GIG sysutils/bsdadminscripts distviper # 4.185918 ports-mgmt/portmaster portmaster -t -y --clean-distfiles # 4.231094 ports-mgmt/portupgrade portsclean --distclean # 4.078680 portsclean removed 50 files that portmaster did not, so I guess portmaster may be best/ most conservative. A sample of 1 deletion by portsclean: ./subversion18/subversion-1.8.14.tar.bz2 from devel/subversion18 (not something Ive just built or fetched BTW) I ran find on all 3 stripped distfiles/ + diff current.portsclean current.portmaster > cleanmaster.diff wc -l * 100 cleanmaster.diff 751 current.distviper 837 current.portmaster 783 current.portsclean All here for next few days in case of interest: http://berklix.com/~jhs/tmp/distfile_lists/ Thanks Lars, Kubilay, RW. Cheers, Julian -- Julian Stacey, BSD Linux Unix Sys. Eng. Consultant Munich http://berklix.com Reply After previous text to preserve context, as in a play script. Indent previous text with > Insert new lines before 80 chars. Use plain text, Not quoted-printable, Not HTML, Not base64, Not MS.doc.