From owner-freebsd-questions@FreeBSD.ORG Mon Feb 10 13:31:18 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 3974AB1; Mon, 10 Feb 2014 13:31:18 +0000 (UTC) Received: from mail-ob0-x236.google.com (mail-ob0-x236.google.com [IPv6:2607:f8b0:4003:c01::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E89181D2B; Mon, 10 Feb 2014 13:31:17 +0000 (UTC) Received: by mail-ob0-f182.google.com with SMTP id wm4so7208302obc.13 for ; Mon, 10 Feb 2014 05:31:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=yLsxFmoMUdn6Xrj9+rAd9BgluOp77ESmxvJZBC4aUq0=; b=VVqzOTqe+UqOWssvrxE+7tytjzIze2rt5Ul1L/iGTus057Ot7KfZVho5uQwyDzOINN qSE2VBdEWP9mo74jcK+h/WnkjTenmM4LbzDyRyPLTk+zuqTQcyY2qvFeOqYiKhZnLBMu 0bLIlxkQTH7rqOGRY5DY9Us9B2ZklXyUFDlY0gX+SlwW/lsfCHp3wMrkoPxA+kBZ3Twc 7da2eDDAn3rJX1MjN6ujz2RWvb4XOk6UICnrvxDiezQzo3Yci5Qk/WeHZJvFIhcYh4Uh 8H+PNbxrntqNdbXfgQ8978dPEsejG/EyNjWyZxzr/NmXBQ47dtPQSy+XleNzfUTuhb3i u1IQ== MIME-Version: 1.0 X-Received: by 10.182.225.137 with SMTP id rk9mr1646823obc.51.1392039075559; Mon, 10 Feb 2014 05:31:15 -0800 (PST) Received: by 10.76.100.197 with HTTP; Mon, 10 Feb 2014 05:31:15 -0800 (PST) In-Reply-To: <52F612A8.4070708@FreeBSD.org> References: <52F612A8.4070708@FreeBSD.org> Date: Mon, 10 Feb 2014 07:31:15 -0600 Message-ID: Subject: Re: question about portmaster From: Antonio Olivares To: Matthew Seaman Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Questions 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 13:31:18 -0000 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. # /usr/sbin/pkg2ng -p /usr/sbin/pkg2ng: Command not found. # pkg2ng pkg2ng: Command not found. # which pkg2ng pkg2ng: Command not found. # /usr/sbin/pkg -v 1.2.6 # cat /usr/ports/UPDATING | more This file documents some of the problems you may encounter when upgrading your ports. We try our best to minimize these disruptions, but sometimes they are unavoidable. You should get into the habit of checking this file for changes each time you update your ports collection, before attempting any port upgrades. 20140208: AFFECTS: users of spamdyke AUTHOR: bdrewery@FreeBSD.org Spamdyke has been updated to 5.0.0. The behavior has changed from 4.x. Please see the upgrading notes at: http://www.spamdyke.org/documentation/UPGRADING_version_4_to_version_5.txt 20140208: AFFECTS: users of icu AUTHOR: bapt@FreeBSD.org icu has been updated to 52.1. Please rebuild all ports that depend on it if you have the glib20 port built with COLLATION_FIX option activated If you use portmaster: portmaster -w -r icu If you use portupgrade: # portmaster -d -w -r icu pkg: PACKAGESITE in pkg.conf is deprecated. Please create a repository configuration file ===>>> icu is not installed ===>>> Aborting update ===>>> Killing background jobs Terminated ===>>> Exiting # portmaster -d -w -r icu pkg: PACKAGESITE in pkg.conf is deprecated. Please create a repository configuration file ===>>> icu is not installed ===>>> Aborting update ===>>> Killing background jobs Terminated ===>>> Exiting # pkg2ng -p pkg2ng: Command not found. # /usr/sbin/pkg -v 1.2.6 # /usr/sbin/pkg -v 1.2.6 # pkg2ng -p pkg2ng: Command not found. # portmaster -d -w -r icu pkg: PACKAGESITE in pkg.conf is deprecated. Please create a repository configuration file ===>>> icu is not installed ===>>> Aborting update ===>>> Killing background jobs Terminated ===>>> Exiting # I just want to fix things up. Thank you and Warren for helping out! Best Regards, Antonio