From owner-freebsd-ports@FreeBSD.ORG Sat Oct 20 10:15:17 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 40D6A732 for ; Sat, 20 Oct 2012 10:15:17 +0000 (UTC) (envelope-from matthew@FreeBSD.org) 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 B89468FC0C for ; Sat, 20 Oct 2012 10:15:16 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q9KAFD8Y061052 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Sat, 20 Oct 2012 11:15:13 +0100 (BST) (envelope-from matthew@FreeBSD.org) X-DKIM: OpenDKIM Filter v2.5.2 smtp.infracaninophile.co.uk q9KAFD8Y061052 Authentication-Results: smtp.infracaninophile.co.uk/q9KAFD8Y061052; dkim=none (no signature); dkim-adsp=none Message-ID: <508279B1.7070108@FreeBSD.org> Date: Sat, 20 Oct 2012 11:15:13 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: Snag in upgrading p5-XML-SAX and p5-XML-SAX-Base References: In-Reply-To: X-Enigmail-Version: 1.4.5 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig2A02E5D17737DA4B82E360DE" X-Virus-Scanned: clamav-milter 0.97.6 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 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, 20 Oct 2012 10:15:17 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2A02E5D17737DA4B82E360DE Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 20/10/2012 10:28, Thomas Mueller wrote: > I just a day ago switched to pkgng, but "pkg delete" produced > No package(s) found! >=20 >> did you run pkg2ng for it? >=20 > I remember running pkg2ng when switching to the new pkg. Do I need to = run > pkg2ng again? >=20 > I now have /usr/bin/pkg and /usr/local/bin/pkg, and /usr/bin comes befo= re > /usr/local/bin in the PATH. No -- you only ever need to run pkg2ng once. /usr/bin/pkg will invoke /usr/local/bin/pkg automatically if /usr/local/bin/pkg is installed -- /usr/bin/pkg is a shim that exists to facilitate the installation of the actual /usr/local/bin/pkg binary. That's all normal. Now, the real problem: not seeing the contents of the local package database. Can you check a few things: 1) That PKG_DBDIR isn't defined in your environment or in /usr/local/etc/pkg.conf (or if it is, it is set to an appropriate directory.) 2) That /var/db/pkg/local.sqlite exists and has these permissions and ownership: % ls -l /var/db/pkg/local.sqlite -rw-r--r-- 1 root wheel 4041728 Oct 14 17:52 /var/db/pkg/local.sqlite (The size will be different depending on what packages are installed) 3) Try opening the local.sqlite database and investigating the contents of one or more of the tables. Like so: # pkg shell SQLite version 3.7.14.1 2012-10-04 19:37:12 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> select count(*) from packages ; 47 sqlite> .quit If that returns zero then something has wiped your package DB. You may be able to recover from a backup copy of local.sqlite that the daily periodic jobs creates in /var/backups/pkgng.db -- just copy that back to /var/db/pkg/local.sqlite and try again. 4) If there is content in local.sqlite, then try using 'pkg info' to query the contents. This should print out just about everything pkgng knows about what is installed on your system: % pkg info -fa Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --------------enig2A02E5D17737DA4B82E360DE 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/ iEYEARECAAYFAlCCebEACgkQ8Mjk52CukIzImACgjm5477g+4ufdHbGlCOH8dxyv UH4AnRgdhhAukVc+agOluKxJSjd/oDET =zyxj -----END PGP SIGNATURE----- --------------enig2A02E5D17737DA4B82E360DE--