From owner-freebsd-ports@FreeBSD.ORG Tue Oct 2 17:48:03 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6F92106566C for ; Tue, 2 Oct 2012 17:48:03 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 39C968FC0C for ; Tue, 2 Oct 2012 17:48:03 +0000 (UTC) Received: from seedling.local (host86-181-76-173.range86-181.btcentralplus.com [86.181.76.173]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q92HlwLe031143 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Tue, 2 Oct 2012 18:47:59 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: OpenDKIM Filter v2.5.2 smtp.infracaninophile.co.uk q92HlwLe031143 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1349200079; bh=K2bYF5XPY8DPtvnDXBhWXo+bon1WbypjfO1j9UM6K3s=; h=Date:From:To:Subject:References:In-Reply-To; z=Date:=20Tue,=2002=20Oct=202012=2018:47:50=20+0100|From:=20Matthew =20Seaman=20|To:=20freebsd-ports@ freebsd.org|Subject:=20Re:=20removing=20non-existent=20ports=20fro m=20/var/db/pkg=20?|References:=20<201210020808.q9288Y2J023975@mec h-cluster241.men.bris.ac.uk>=20<506AB4C8.6020208@freebsd.org>=20<2 0121002103310.GA3931@kontrol.kode5.net>=20<506ACC41.5000100@freebs d.org>=20<20121002113850.GA82914@kontrol.kode5.net>|In-Reply-To:=2 0<20121002113850.GA82914@kontrol.kode5.net>; b=xOMY9WZYy5P5D8wctLYUtSm3ob6FgSqHBslIywue54bYxgzNoMMd9vNTNTH/x5AfD QTTf25UVQGKMZPrvlbHm/oiAh9kfaPnVQmodCszQN9UwHR38Ofgd7hueiehImilm1u B8OEh5178mp0AJEE9en/1aE6aI3rLCL2lpNFQxSw= X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host host86-181-76-173.range86-181.btcentralplus.com [86.181.76.173] claimed to be seedling.local Message-ID: <506B28C6.5060602@infracaninophile.co.uk> Date: Tue, 02 Oct 2012 18:47:50 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <201210020808.q9288Y2J023975@mech-cluster241.men.bris.ac.uk> <506AB4C8.6020208@freebsd.org> <20121002103310.GA3931@kontrol.kode5.net> <506ACC41.5000100@freebsd.org> <20121002113850.GA82914@kontrol.kode5.net> In-Reply-To: <20121002113850.GA82914@kontrol.kode5.net> X-Enigmail-Version: 1.4.4 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig38E274C04BE819BD46410EF5" X-Virus-Scanned: clamav-milter 0.97.6 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=0.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_PBL, RCVD_IN_RP_RNBL, RCVD_IN_SORBS_DUL, RDNS_DYNAMIC,SPF_FAIL autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Subject: Re: removing non-existent ports from /var/db/pkg ? 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, 02 Oct 2012 17:48:03 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig38E274C04BE819BD46410EF5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 02/10/2012 12:38, Jamie Paul Griffin wrote: > [ Matthew Seaman wrote on Tue 2.Oct'12 at 12:13:05 +0100 ] >=20 > =20 >> At the moment, the only way to clear up is to manually remove the >> outdated subdirectories from /var/db/ports. You can work out what is >> out of date by comparing the list of sub-dirs to the list of installed= >> ports obtained by >> >> pkg info -aq >> >> Should only take a few minutes to write a small script to do that. >> >> Be careful not to trash local.sqlite, repo.sqlite or auditfile -- in >> fact, anything in /var/db/pkg which is not a directory should be prese= rved. >> >> Note: even if you do delete subdirs that are actually still in use, th= is >> shouldn't be a huge disaster. The only data still in those directorie= s >> will be portmaster's cache of distfile info (which it can cope without= : >> it uses it to efficiently identify old distfiles that can themselves b= e >> tidied up) and flag files like +IGNOREME which you will want to >> regenerate before you next do a ports update. >=20 > Ok, thanks for clarifying that for us. Very much appreciated.=20 I just committed this: http://git.io/G2qIIg Which makes the patch compatible with portmaster-3.14 and also now makes portmaster remove superfluous subdirectories of $PKG_DBDIR when removing any packages. This should keep $PKG_DBDIR reasonably tidy going forwards, but it won't clean up all of the existing problem subdirs. For that you'll need a one-off job to clean up as described above. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enig38E274C04BE819BD46410EF5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlBrKM4ACgkQ8Mjk52CukIyN6gCeMdsn3f+xCrOSe1X/DkVFyvmx Yn0AoIlWhAmxPDzityJx/EEgGzpNgNBC =q2Ok -----END PGP SIGNATURE----- --------------enig38E274C04BE819BD46410EF5--