From owner-freebsd-questions@FreeBSD.ORG Mon Feb 10 14:40:48 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0C51E951 for ; Mon, 10 Feb 2014 14:40:48 +0000 (UTC) Received: from www81.your-server.de (www81.your-server.de [213.133.104.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 887BC13A4 for ; Mon, 10 Feb 2014 14:40:46 +0000 (UTC) Received: from [178.3.1.213] (helo=michael-think) by www81.your-server.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.74) (envelope-from ) id 1WCrkY-0006mC-Ne for freebsd-questions@freebsd.org; Mon, 10 Feb 2014 15:22:18 +0100 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: freebsd-questions@freebsd.org Subject: Re: question about portmaster References: <52F612A8.4070708@FreeBSD.org> Date: Mon, 10 Feb 2014 15:22:13 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Michael Ross" Message-ID: In-Reply-To: User-Agent: Opera Mail/1.0 (Win32) X-Authenticated-Sender: gmx@ross.cx X-Virus-Scanned: Clear (ClamAV 0.97.8/18457/Sun Feb 9 09:40:22 2014) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Feb 2014 14:40:48 -0000 On Mon, 10 Feb 2014 14:31:15 +0100, Antonio Olivares wrote: > On Sat, Feb 8, 2014 at 5:19 AM, Matthew Seaman > wrote: >> On 07/02/2014 18:46, Warren Block wrote: >>>> I have a little problem with xorg deps that I get errors, >>>> I run >>>> # portmaster --check-depends >>>> but I am afraid to mess up, how can I fix these once and for all? >>>> `` >>>> pkg_version: corrupted record for package icon-naming-utils-0.8.90_1 >>>> (pkgdep line without argument), ignoring >>> >>> I don't know a specific answer to this, it probably means that some >>> dependencies are missing, but it did make me realize that this error >>> has >>> not appeared since I switched pkg(8). >> >> Absolutely. You won't get this error with pkg(8) -- it's just not >> possible to get that sort of corruption in the local.sqlite schema >> pkg(8) uses. (All too easy with pkg_tools as anyone who has used >> portmaster+pkg_tools will testify.) >> >> To fix the OP's problem once and for all: >> >> # /usr/sbin/pkg -v >> [ Answer the prompts in the affirmative ] >> # pkg2ng -p >> # echo 'WITH_PKGNG=YES' >> /etc/make.conf >> # pkg check -ad >> [ Optional -- this will point up any missing dependencies ] >> >> When running 'pkg check' you will be prompted to install missing >> packages from whatever repository (if any) you have configured. If >> you're going to be building everything from ports, at that point you >> should take note of what is missing, quit out of 'pkg check' and build >> the missing bits using portmaster. (In fact, you'll probably find that >> there aren't actually any missing bits: what's gone wrong is recording >> which package is required by which other package correctly.) >> >> Yes, this is quite a radical solution, but it's the only way to achieve >> that 'once and for all' condition. You can use 'portmaster >> --check-depends' to fix things up, but eventually the problem will recur >> if you stick with pkg_tools. >> >> Cheers, >> >> Matthew >> >> -- >> Dr Matthew J Seaman MA, D.Phil. >> PGP: http://www.infracaninophile.co.uk/pgpkey >> >> > > Dear Sir, > > > Thank you for your suggestion. On one of the two machines, the > process is churning. It is going on converting to pkg, but on the > other one I get errors: > > # /usr/sbin/pkg -v > The package management tool is not yet installed on your system. > Do you want to fetch and install it now? [y/N]: y > Bootstrapping pkg please wait > _http._tcp.pkg.FreeBSD.org > Installing pkg-1.2.6... done > If you are upgrading from the old package format, first run: > > # pkg2ng > 1.2.6 > # pkg2ng -p > pkg2ng: Command not found. > # /usr/sbin/pkg -v > 1.2.6 > # pkg2ng -p > pkg2ng: Command not found. You may have to # rehash if you use csh: rehash Causes the internal hash table of the contents of the directo- ries in the path variable to be recomputed. This is needed if the autorehash shell variable is not set and new commands are added to directories in path while you are logged in. With autorehash, a new command will be found automatically, except in the special case where another command of the same name which is located in a different directory already exists in the hash table. Also flushes the cache of home directories built by tilde expansion. (from man csh) Regards, Michael