From owner-freebsd-ports@FreeBSD.ORG Sat Oct 12 08:26:46 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E0597FAB for ; Sat, 12 Oct 2013 08:26:46 +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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 73ADC20AE for ; Sat, 12 Oct 2013 08:26:46 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.7/8.14.7) with ESMTP id r9C8Qe7G046212 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Sat, 12 Oct 2013 09:26:40 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk r9C8Qe7G046212 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1381566400; bh=VXCvNeI8abl+dhaaP780sBQFn3+jysYVhfDT6db+9Ns=; h=Date:From:To:Subject:References:In-Reply-To; z=Date:=20Sat,=2012=20Oct=202013=2009:26:40=20+0100|From:=20Matthew =20Seaman=20|To:=20freebsd-ports@ freebsd.org|Subject:=20Re:=20portupgrade=20and=20pkgng=20(again)|R eferences:=20<20131012073645.GA14506@regency.nsu.ru>|In-Reply-To:= 20<20131012073645.GA14506@regency.nsu.ru>; b=Luui49pr9IdferxM245o0NC0UMYOS+f5cR73FXu+b3n93aEjeBrjCfpF+aDrnuwa6 FEHOi+mewaantC9CFaHyLVOMqCTKJwKHgEFSTIHX32je6r21GJM0de+fpel63vbI63 cIFetZmhsjXGqfxU8KhSUhlVMKuml11a4hDqNKPY= Message-ID: <525907C0.3090708@infracaninophile.co.uk> Date: Sat, 12 Oct 2013 09:26:40 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: portupgrade and pkgng (again) References: <20131012073645.GA14506@regency.nsu.ru> In-Reply-To: <20131012073645.GA14506@regency.nsu.ru> X-Enigmail-Version: 1.5.2 OpenPGP: id=E7F39EBF Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="C7gUPNxIOCdVu8V7LruEol71F6mFBkQgi" X-Virus-Scanned: clamav-milter 0.97.8 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Oct 2013 08:26:46 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --C7gUPNxIOCdVu8V7LruEol71F6mFBkQgi Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 12/10/2013 08:36, Alexey Dokuchaev wrote: > I have a remote -CURRENT box which i'd rather not src-update now (r2483= 73, > ca. March). Apparently it's recent enough to default to pkgng. >=20 > I wanted to upgrade some ports of mine today, and installed my favorite= > portupgrade just to discover that it does not see any packages: it seem= s > to fail to parse /var/db/pkg/local.sqlite (convert it to its own pkgdb.= db) > and reports that I have nothing installed. I believe that recent versions of portupgrade use the pkg database directly, rather than maintaining a parallel pkgdb.db. > Usual dances with adding WITH_PKGNG to make.conf, pkgdb -fu et al. did = not > help. Any clues? >=20 > One note: I have rather old version of pkg installed, pkg-1.0.7. I may= > try to forcibly deinstall it and reinstall from ports, but I want to be= > sure doing so won't render my existing package database unusable. Is i= t > safe (and worth) thing to do? Yes, you definitely should update to an up to date version of pkg. There's lots of stuff that has changed in parallel with changes to the ports, and keeping both in synch will produce the best results. pkg should be able to update your local.sqlite to the current schema versions -- obviously, backup your /var/db/pkg before you attempt the update -- but I think it should go pretty smoothly for you. If you're particularly worried -- use 'pkg create' to generate pkg tarballs of everything you've got installed, and save the output of 'pkg info -qoa' (which should just be a list of your installed ports, by origin). That means that even if your local.sqlite gets trashed, you can simply re-install everything against an empty database. But this really shouldn't be necessary. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matthew@infracaninophile.co.uk --C7gUPNxIOCdVu8V7LruEol71F6mFBkQgi 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.20 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJSWQfAXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATHX8P/Al4TjH1ZLWTiQZbo4FKu33W Bm4cbvPhz08RCE+a0ZUkaDZ+27AlB+9gFcoaWl+StxfvPheunkffk7lBsyNSqepW qrDi0N4QRJ1oLXbYqhrVzlBCMFAHjSlBjHGzeyzlUjrD213TtFGkQB+kW2k8mIHd v2zZ3aXha30320/Y8FDwfWvuSYTvVlkb7H2U8/WLoAqbAuHVkcsfd1++dvmfJEQ9 uTfmWDn/fpqhRgSRFT3tpksw+FTK/CdoqnkAkZJCfa89MHUfF+OY/0ORWyNKXe7g 9T97JoEmVarYVWGl2aDnw0cALSEtimRKu7zjIIE+lphjeSRU6FWoWMF5Sde5FzPM yCCJOQa7kcQ9M19bzng6TOmqCRUBsYxw2L/GFJksmADmuW/zLeqeSrANMlExSsWG mT5BIvo3x9+0/cUQZHls+llhDhJ268Cm9v0DJZxdTClMhDKTmPShSXUrn4xdyUYe YJLvdHV5Au+jcY66kNl8rUbYiK4DJkMQ1XvosvVflL05H+q0wTN4/cA0vdw9IG/x 4BwddvOBa+pGHqgR4ZQ1i6NkRuhd7BT7u2xtNJwVgMF1gFjTLm23072ecJc8mrHQ ed9eAv/cBDhmGZh0xOLfRDf5IPSz/mLNPovF01j5OBHVNOD44PVnWhvqHdGsUL34 pkvfV7rn/NmncQiykW5k =HMSw -----END PGP SIGNATURE----- --C7gUPNxIOCdVu8V7LruEol71F6mFBkQgi--