From owner-freebsd-questions@FreeBSD.ORG Wed Feb 26 14:58:58 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 92FBACE for ; Wed, 26 Feb 2014 14:58:58 +0000 (UTC) Received: from mp1-smtp-6.eutelia.it (mp1-smtp-6.eutelia.it [62.94.10.166]) by mx1.freebsd.org (Postfix) with ESMTP id 116781224 for ; Wed, 26 Feb 2014 14:58:57 +0000 (UTC) Received: from ns2.biolchim.it (ip-188-188.sn2.eutelia.it [83.211.188.188]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mp1-smtp-6.eutelia.it (Eutelia) with ESMTP id 056A36B5581 for ; Wed, 26 Feb 2014 15:41:38 +0100 (CET) Received: from soth.ventu (adsl-ull-113-155.41-151.net24.it [151.41.155.113]) (authenticated bits=0) by ns2.biolchim.it (8.14.8/8.14.8) with ESMTP id s1QEfNAr064023 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Wed, 26 Feb 2014 15:41:30 +0100 (CET) (envelope-from ml@netfence.it) X-Authentication-Warning: ns2.biolchim.it: Host adsl-ull-113-155.41-151.net24.it [151.41.155.113] claimed to be soth.ventu Received: from alamar.ventu (alamar.ventu [10.1.2.18]) by soth.ventu (8.14.8/8.14.7) with ESMTP id s1QEfBcP047371 for ; Wed, 26 Feb 2014 15:41:11 +0100 (CET) (envelope-from ml@netfence.it) Message-ID: <530DFD07.1040107@netfence.it> Date: Wed, 26 Feb 2014 15:41:11 +0100 From: Andrea Venturoli User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: pkgng and pkgdb References: <1393343788.39710.YahooMailNeo@web122301.mail.ne1.yahoo.com> <530CC4A5.4090105@freebsd.org> <1393361578.16975.12.camel@lenovo.toontown> <530D0732.1080906@FreeBSD.org> In-Reply-To: <530D0732.1080906@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (ns2.biolchim.it [192.168.2.203]); Wed, 26 Feb 2014 15:41:32 +0100 (CET) X-Spam-Score: 5.206 (*****) RCVD_IN_PBL, RCVD_IN_RP_RNBL, RCVD_IN_SORBS_DUL, RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.74 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: Wed, 26 Feb 2014 14:58:58 -0000 On 02/25/14 22:12, Matthew Seaman wrote: > On 25/02/2014 20:52, Sergio de Almeida Lenzi wrote: >> Em Ter, 2014-02-25 ās 16:28 +0000, Matthew Seaman escreveu: >>> On 02/25/14 15:56, gahn wrote: >>>> the question is: what is the equivalent of "pkgdb -Ff"? for pkg? >>> >>> Not needed at all with pkg(8). Because we're using a reasonable RDBMS >>> system (sqlite) we don't suffer from the same sort of corruption that >>> the old package tools used to. Well, I think I happen to do... After doing what entry 20140219 in UPDATING suggested, I came up with: > # pkg check -a -d > textproc/gnome-doc-utils has a missing dependency: textproc/docbook-xml-440 > textproc/gnome-doc-utils has a missing dependency: textproc/docbook-xml-430 > textproc/gtk-doc has a missing dependency: textproc/docbook-sk > textproc/rarian has a missing dependency: textproc/docbook-sk > >>>> Missing package dependencies were detected. >>>> Found 3 issue(s) in the package database. > > The following packages will be installed: > > Reinstalling xmlcatmgr-2.2 (options changed) > Installing docbook-xml: 4.3 > Installing docbook-sk: 4.1.2_4 > Installing docbook-xml: 4.4_1 > > The installation will require 1 MB more space > > 167 KB to be downloaded > >>>> Try to fix the missing dependencies [y/N]: y > pkg: http://pkg.FreeBSD.org/freebsd:10:x86:64/latest/All/docbook-xml-4.3.txz: Not Found >>>> Summary of actions performed: > > textproc/docbook-xml-440 dependency failed to be fixed > textproc/docbook-xml-430 dependency failed to be fixed > textproc/docbook-sk dependency failed to be fixed > >>>> There are still missing dependencies. >>>> You are advised to try fixing them manually. > >>>> Also make sure to check 'pkg updating' for known issues. I was used to this kind of mess and let "pkgdb -F" fix it (at least it would ask what to do about wrong dependencies), but that's not an option anymore. So, from what little information I could find, I did: > # pkg set -o textproc/docbook-xml-430:textproc/docbook-xml > Change origin from textproc/docbook-xml-430 to textproc/docbook-xml for all dependencies? [y/N]: y This half solved and half worsened my problem: > # pkg check -a -d > textproc/gnome-doc-utils has a missing dependency: textproc/docbook-xml-440 > textproc/gtk-doc has a missing dependency: textproc/docbook-sk > textproc/rarian has a missing dependency: textproc/docbook-sk > >>>> Missing package dependencies were detected. >>>> Found 2 issue(s) in the package database. > > The following packages will be installed: > > Reinstalling xmlcatmgr-2.2 (options changed) > Installing docbook-sk: 4.1.2_4 > Installing docbook-xml: 4.4_1 > > The installation will require 826 KB more space > > 110 KB to be downloaded > >>>> Try to fix the missing dependencies [y/N]: n >>>> Summary of actions performed: > > textproc/docbook-xml-440 dependency failed to be fixed > textproc/docbook-sk dependency failed to be fixed > >>>> There are still missing dependencies. >>>> You are advised to try fixing them manually. > >>>> Also make sure to check 'pkg updating' for known issues. > # pkg set -o textproc/docbook-xml-440:textproc/docbook-xml > Change origin from textproc/docbook-xml-440 to textproc/docbook-xml for all dependencies? [y/N]: y > pkg: sqlite: columns package_id, origin are not unique Not even > # pkg_deinstall -f xmlcatmgr > # portupgrade -RN xmlcatmgr fixed this. Luckily, the following did: # pkg_deinstall -f gnome-doc-utils gtk-doc rarian # portupgrade -RN gnome-doc-utils gtk-doc rarian However I'm confused... "pkgdb -F" would have fixed this much more easily than removing and reinstalling a few ports. I really wouldn't want this to happen if the involved ports were hundreds and/or big. Is the functionality of "pkgdb -F" really gone??? Does really no equivalent exist? bye & Thanks av.