Date: Wed, 26 Feb 2014 15:41:11 +0100 From: Andrea Venturoli <ml@netfence.it> To: freebsd-questions@freebsd.org Subject: Re: pkgng and pkgdb Message-ID: <530DFD07.1040107@netfence.it> In-Reply-To: <530D0732.1080906@FreeBSD.org> References: <1393343788.39710.YahooMailNeo@web122301.mail.ne1.yahoo.com> <530CC4A5.4090105@freebsd.org> <1393361578.16975.12.camel@lenovo.toontown> <530D0732.1080906@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?530DFD07.1040107>