Date: Wed, 27 Mar 2002 13:15:12 -0800 (PST) From: David Bogen <db@bogen.org> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/36388: pkgdb/portversion/portsdb doesn't agree with pkg_info Message-ID: <200203272115.g2RLFCx40144@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 36388 >Category: misc >Synopsis: pkgdb/portversion/portsdb doesn't agree with pkg_info >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Mar 27 13:20:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: David Bogen >Release: 4.5-RELEASE-p2 >Organization: >Environment: FreeBSD merlin.bogen.org 4.5-RELEASE-p2 FreeBSD 4.5-RELEASE-p2 #2: Wed Mar 27 10:43:57 PST 2002 dbogen@merlin.bogen.org:/usr/src/sys/compile/MERLIN i386 >Description: - Updated from 4.3-STABLE to 4.5-RELEASE-p2. - CVSup'd ports collection. - Installed portupgrade port. - Ran portsdb -Uu. (System panic'd during this run - seems to be something wrong with 4.5-RELEASE and k6-2; had no problems with system while running 4.3-STABLE.) - Ran portsdb -Uu again. - Ran pkgdb -F to fix many problems with duplicate ports and ports without origins. - Theoretically fixed all origin problems and duplicate ports. - Ran portversion and noticed that duplicate png and libtool were still showing in portversion. - Ran pkgdb -F again. It asks me if I want to unregister duplicate png and libtool. Answer yes. pkgdb then fails with an "unexpected next." merlin-~# pkgdb -F Checking the origin of 41upgrade-2000.11.01 Checking the origin of OpenSSH-2.2.0_1 Checking the origin of a2ps-letter-4.13 Checking the origin of apsfilter-6.1.1 Checking the origin of autoconf-2.13 Checking the origin of autoconf213-2.13.000227_1 Checking the origin of bash-2.05 Checking the origin of boehm-gc-5.3 Checking the origin of bzip2-1.0.1 Checking the origin of cclient-2000c Checking the origin of cdrecord-1.9 Checking the origin of cvsup-16.1e Checking the origin of fetchmail-5.8.17 Checking the origin of freetype2-2.0.3 Checking the origin of gd-1.8.4_4 Checking the origin of gettext-0.10.35 Checking the origin of ghostscript-nox11-6.50_6 Checking the origin of gmake-3.79.1 Checking the origin of gnupg-1.0.6_1 Checking the origin of imap-uw-2000c Checking the origin of isc-dhcp3-3.0.r8 Checking the origin of ispell-3.1.20c Checking the origin of joe-2.8 Checking the origin of jpeg-6b_1 Checking the origin of less-354 Checking the origin of libtool-1.3.4_1 Checking the origin of libtool-1.3.4_2 Checking the origin of lynx-2.8.3.1 Checking the origin of m4-1.4 Checking the origin of mkisofs-1.13_1 Checking the origin of mm-1.1.3 Checking the origin of nmap-2.54.b29 Checking the origin of ntp-4.0.99k23 Checking the origin of nut-0.45.1 Checking the origin of openldap-1.2.11_1 Checking the origin of patch-2.5 Checking the origin of pine-4.33 Checking the origin of pkg_tarup-1.2_3 Checking the origin of png-1.0.8_1 Checking the origin of png-1.2.0_1 Checking the origin of portupgrade-20020327 Checking the origin of procmail-3.21 Checking the origin of psutils-letter-1.17_1 Checking the origin of python-2.0 Checking the origin of rfc-3.0 Checking the origin of ruby-1.6.7.2002.03.13 Checking the origin of ruby-bdb1-0.1.6 Checking the origin of ruby-fnmatch-1.1b_1 Checking the origin of ruby-optparse-0.8.6 Checking the origin of samba-2.0.9 Checking the origin of snort-1.8.1_1 Checking the origin of sudo-1.6.3.7 Checking the origin of tin-1.5.6 Checking the origin of tripwire-1.2 Checking the origin of unix2dos-1.2 Checking the origin of unzip-5.41 Checking the origin of uulib-0.5.13 Checking the origin of w3m-0.1.11.p.23 Checking the origin of zip-2.3 Checking for origin duplicates Duplicated origin: graphics/png - png-1.0.8_1 png-1.2.0_1 Unregister any of them? [no] yes Unregister png-1.0.8_1 keeping the installed files intact? [no] yes -> png-1.2.0_1 is kept. --> Saving the png-1.0.8_1's +CONTENTS file as /var/db/pkg/png-1.2.0_1/+CONTENTS.png-1.0.8_1 cp: /var/db/pkg/png-1.0.8_1/+CONTENTS: No such file or directory Duplicated origin: devel/libtool - libtool-1.3.4_1 libtool-1.3.4_2 Unregister any of them? [no] yes Unregister libtool-1.3.4_1 keeping the installed files intact? [no] yes -> libtool-1.3.4_2 is kept. --> Saving the libtool-1.3.4_1's +CONTENTS file as /var/db/pkg/libtool-1.3.4_2/+CONTENTS.libtool-1.3.4_1 cp: /var/db/pkg/libtool-1.3.4_1/+CONTENTS: No such file or directory Checking 41upgrade-2000.11.01 Checking OpenSSH-2.2.0_1 Checking a2ps-letter-4.13 Checking apsfilter-6.1.1 Checking autoconf-2.13 Checking autoconf213-2.13.000227_1 Checking bash-2.05 Checking boehm-gc-5.3 Checking bzip2-1.0.1 Checking cclient-2000c Checking cdrecord-1.9 Checking cvsup-16.1e Checking fetchmail-5.8.17 Checking freetype2-2.0.3 Checking gd-1.8.4_4 Checking gettext-0.10.35 Checking ghostscript-nox11-6.50_6 Checking gmake-3.79.1 Checking gnupg-1.0.6_1 Checking imap-uw-2000c Checking isc-dhcp3-3.0.r8 Checking ispell-3.1.20c Checking joe-2.8 Checking jpeg-6b_1 Checking less-354 Checking libtool-1.3.4_1 unexpected next - mkdir /var/db/pkg/png-1.0.8_1 - cd /var/db/pkg/png-1.0.8_1; touch +COMMENTS +DESC +CONTENTS - mkdir /var/db/libtool-1.3.4_1 - cd /var/db/pkg/libtool-1.3.4_1; touch +COMMENTS +DESC +CONTENTS - run pkgdb -F again Checking the origin of 41upgrade-2000.11.01 Checking the origin of OpenSSH-2.2.0_1 Checking the origin of a2ps-letter-4.13 Checking the origin of apsfilter-6.1.1 Checking the origin of autoconf-2.13 Checking the origin of autoconf213-2.13.000227_1 Checking the origin of bash-2.05 Checking the origin of boehm-gc-5.3 Checking the origin of bzip2-1.0.1 Checking the origin of cclient-2000c Checking the origin of cdrecord-1.9 Checking the origin of cvsup-16.1e Checking the origin of fetchmail-5.8.17 Checking the origin of freetype2-2.0.3 Checking the origin of gd-1.8.4_4 Checking the origin of gettext-0.10.35 Checking the origin of ghostscript-nox11-6.50_6 Checking the origin of gmake-3.79.1 Checking the origin of gnupg-1.0.6_1 Checking the origin of imap-uw-2000c Checking the origin of isc-dhcp3-3.0.r8 Checking the origin of ispell-3.1.20c Checking the origin of joe-2.8 Checking the origin of jpeg-6b_1 Checking the origin of less-354 Checking the origin of libtool-1.3.4_1 Checking the origin of libtool-1.3.4_2 Checking the origin of lynx-2.8.3.1 Checking the origin of m4-1.4 Checking the origin of mkisofs-1.13_1 Checking the origin of mm-1.1.3 Checking the origin of nmap-2.54.b29 Checking the origin of ntp-4.0.99k23 Checking the origin of nut-0.45.1 Checking the origin of openldap-1.2.11_1 Checking the origin of patch-2.5 Checking the origin of pine-4.33 Checking the origin of pkg_tarup-1.2_3 Checking the origin of png-1.0.8_1 Checking the origin of png-1.2.0_1 Checking the origin of portupgrade-20020327 Checking the origin of procmail-3.21 Checking the origin of psutils-letter-1.17_1 Checking the origin of python-2.0 Checking the origin of rfc-3.0 Checking the origin of ruby-1.6.7.2002.03.13 Checking the origin of ruby-bdb1-0.1.6 Checking the origin of ruby-fnmatch-1.1b_1 Checking the origin of ruby-optparse-0.8.6 Checking the origin of samba-2.0.9 Checking the origin of snort-1.8.1_1 Checking the origin of sudo-1.6.3.7 Checking the origin of tin-1.5.6 Checking the origin of tripwire-1.2 Checking the origin of unix2dos-1.2 Checking the origin of unzip-5.41 Checking the origin of uulib-0.5.13 Checking the origin of w3m-0.1.11.p.23 Checking the origin of zip-2.3 Checking for origin duplicates Duplicated origin: graphics/png - png-1.0.8_1 png-1.2.0_1 Unregister any of them? [no] yes Unregister png-1.0.8_1 keeping the installed files intact? [no] yes -> png-1.2.0_1 is kept. --> Saving the png-1.0.8_1's +CONTENTS file as /var/db/pkg/png-1.2.0_1/+CONTENTS.png-1.0.8_1 --> Unregistering png-1.0.8_1 --> Done. Duplicated origin: devel/libtool - libtool-1.3.4_1 libtool-1.3.4_2 Unregister any of them? [no] yes Unregister libtool-1.3.4_1 keeping the installed files intact? [no] yes -> libtool-1.3.4_2 is kept. --> Saving the libtool-1.3.4_1's +CONTENTS file as /var/db/pkg/libtool-1.3.4_2/+CONTENTS.libtool-1.3.4_1 --> Unregistering libtool-1.3.4_1 --> Done. Checking 41upgrade-2000.11.01 Checking OpenSSH-2.2.0_1 Checking a2ps-letter-4.13 Checking apsfilter-6.1.1 Checking autoconf-2.13 Checking autoconf213-2.13.000227_1 Checking bash-2.05 Checking boehm-gc-5.3 Checking bzip2-1.0.1 Checking cclient-2000c Checking cdrecord-1.9 Checking cvsup-16.1e Checking fetchmail-5.8.17 Checking freetype2-2.0.3 Checking gd-1.8.4_4 Checking gettext-0.10.35 Checking ghostscript-nox11-6.50_6 Checking gmake-3.79.1 Checking gnupg-1.0.6_1 Checking imap-uw-2000c Checking isc-dhcp3-3.0.r8 Checking ispell-3.1.20c Checking joe-2.8 Checking jpeg-6b_1 Checking less-354 Checking libtool-1.3.4_2 Checking lynx-2.8.3.1 Checking m4-1.4 Checking mkisofs-1.13_1 Checking mm-1.1.3 Checking nmap-2.54.b29 Checking ntp-4.0.99k23 Checking nut-0.45.1 Checking openldap-1.2.11_1 Checking patch-2.5 Checking pine-4.33 Checking pkg_tarup-1.2_3 Checking png-1.2.0_1 Checking portupgrade-20020327 Checking procmail-3.21 Checking psutils-letter-1.17_1 Checking python-2.0 Checking rfc-3.0 Checking ruby-1.6.7.2002.03.13 Checking ruby-bdb1-0.1.6 Checking ruby-fnmatch-1.1b_1 Checking ruby-optparse-0.8.6 Checking samba-2.0.9 Checking snort-1.8.1_1 Checking sudo-1.6.3.7 Checking tin-1.5.6 Checking tripwire-1.2 Checking unix2dos-1.2 Checking unzip-5.41 Checking uulib-0.5.13 Checking w3m-0.1.11.p.23 Checking zip-2.3 Regenerating +REQUIRED_BY files Checking for cyclic dependencies merlin-~# portversion [Updating the portsdb <format:bdb1_btree> in /usr/ports ... - 6364 port entries found .........1000.........2000.........3000.........4000...../usr/ports/INDEX:4540:Port info line must consist of 10 fields. /usr/ports/INDEX:4541:Port info line must consist of 10 fields. ....5000.........6000... ..... done] 41upgrade = OpenSSH < a2ps-letter < apsfilter < autoconf < autoconf213 = bash < boehm-gc < bzip2 < cclient < cdrecord < cvsup < fetchmail < freetype2 < gd < gettext < ghostscript-nox11 < gmake = gnupg < imap-uw < isc-dhcp3 < ispell < joe < jpeg = less < libtool < libtool = lynx < m4 < mkisofs < mm = nmap < ntp < nut < openldap < patch < pine < pkg_tarup = png < png < portupgrade = procmail < Duplicate libtool and png still there. pkg_info does not show these packages/ports as still being installed. Eradicating the portsdb with portsdb -fu does not help. >How-To-Repeat: Upgrade from a really old version of FreeBSD with duplicate ports and missing origins. Install portupgrade. Build ports INDEX and INDEX.db. Run pkgdb -F and attempt to fix origins and duplications. >Fix: Not known. Creating dirs and files allows pkgdb -F to fun normally but portversion still shows duplicate registrations. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203272115.g2RLFCx40144>