From owner-freebsd-ports@freebsd.org Thu Nov 16 20:34:03 2017 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 628B5DE8727 for ; Thu, 16 Nov 2017 20:34:03 +0000 (UTC) (envelope-from lists@opsec.eu) Received: from home.opsec.eu (home.opsec.eu [IPv6:2001:14f8:200::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 25848696B4 for ; Thu, 16 Nov 2017 20:34:03 +0000 (UTC) (envelope-from lists@opsec.eu) Received: from pi by home.opsec.eu with local (Exim 4.89 (FreeBSD)) (envelope-from ) id 1eFQrN-000Dcq-Kl; Thu, 16 Nov 2017 21:34:05 +0100 Date: Thu, 16 Nov 2017 21:34:05 +0100 From: Kurt Jaeger To: Paul Schmehl Cc: FreeBSD Ports Subject: Re: Package database problems Message-ID: <20171116203405.GC2827@home.opsec.eu> References: <27599F2948EE17B91E77EB7F@Pauls-MacBook-Pro.local> <82935A8FFB5163556E158535@Pauls-MacBook-Pro.local> <8A2775F734F780DEC994C467@Pauls-MacBook-Pro.local> <20171116194924.GB2827@home.opsec.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Nov 2017 20:34:03 -0000 Hi! > >> ls /var/db/pkg/ > >> FreeBSD.meta libXfixes-5.0.3 p5-Net-Domain-TLD-1.74 > >> py27-qt4-dbussupport-4.12_1 > >> ImageMagick-6.9.2.10,1 libXfont-1.5.2,2 p5-Package-Stash-0.37_1 > > > > Looks like you have some old-style pkg_xxxx leftovers. > So, what should I do? You probably have to clean it up. I would do this: - use the list of old-style packages in /var/db/pkg, together with the output of pkg info, to generate a list of packages that you need after clean up. My list looks like this, approx. 2000 entries: ------------- [...] devel/automake devel/automake-wrapper devel/automoc4 devel/binutils devel/bison [...] ------------- - Then build all the packages from your list via poudriere, and generate a repo of all those up2date packages. - Then (this is dangerous, if done via remote, keep a few ssh sessions running in parallel, if one fails): mkdir /usr/local/OLD cd /usr/local mv * OLD/ - Now no packages are installed - re-add all the packages, restore the config from OLD/... > I didn't setup this server to begin with. I recall, a > while back, instructions for switching to pkgng. Is that what wasn't done? Yes, something like that. -- pi@opsec.eu +49 171 3101372 3 years to go !