Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Nov 2012 10:09:42 -0500 (EST)
From:      Darrel <levitch@iglou.com>
To:        Bryan Drewery <bryan@shatow.net>
Cc:        current@freebsd.org
Subject:   Re: [solved]: r2421600 amd64 /var/db/pkg
Message-ID:  <alpine.GSO.2.00.1211041001310.18257@shell1>
In-Reply-To: <50967473.8080808@shatow.net>
References:  <alpine.GSO.2.00.1211031554040.28225@shell1> <CAF6rxg=EUS20fnsVwFJzfmHo_c1iQLKFXJo5C0T3Q58qis402Q@mail.gmail.com> <alpine.GSO.2.00.1211032029040.8181@shell1> <CAF6rxgkx6Z8p9oyJaRKkvREfqD4AOHXjgzxowR01iCMJ-G%2BfWw@mail.gmail.com> <alpine.GSO.2.00.1211032111420.13373@shell1> <CAGH67wRj-6GOw6N3nv8eqefcAy58-P6AcR0DirCQt6wdcM=0Xw@mail.gmail.com> <alpine.GSO.2.00.1211040601241.24960@shell1> <50967473.8080808@shatow.net>

next in thread | previous in thread | raw e-mail | index | archive | help

>>>     What you probably ran into is the common chicken and egg problem
>>> where
>>> if pkgng is upgraded ports, it blows up when it tries to deinstall the
>>> package, or similarly, when portmaster is upgraded, it doesn't halt the
>>> upgrade and restart it properly.
>>>     It's most likely still a problem; I'm going to doublecheck to make
>>> sure
>>> that's the case and file PRs if it is.
>>
>> Thanks, Garrett.  For my current problem I am simply going to delete the
>> errant portmaster-3.14 from /var/db/pkg and then run 'portmaster -a -f
>> -D' with the hope that portmaster-3.14_7 can fix things.  If not I will
>> try reinstalling, the are only a few things installed- freeradius,
>> postgresql, and about a dozen others.
>
> This is overkill. You either have a pkg_install database or a pkgng
> database. Determining which will save you time.
>
> After you run pkg2ng, pkg_info will no longer work. It will complain
> about corrupted packages, since all the data is gone, but portmaster has
> stored additional information there, which confuses pkg_info.
>
> Check the output of 'pkg info'. If it lists all your packages, you are
> done. Nothing more to do.
>
> If not, run pkg2ng.
>
> Also, you can see any packages that have not converted with:
>    find /var/db/pkg -name +CONTENTS
> If nothing comes up, they are already all converted.
>
>

Thanks, Bryan.  Actually my fbsd10 machine already has portmaster 
reinstalling, which seems to be running alright.  It has less than two 
dozen packages on it.

I am looking at a fbsd9.1 machine right now, and it seems like a strange 
case considering your advice.  If I run 'pkg info' or 'pkg_info' then all 
of the packages are listed.  If I run 'find /var/db/pkg -name +CONTENTS' 
then all of the packages are found.  Yet on that machine in /etc/make.conf 
exists 'WITH_PKGNG=yes' and I ran pkg2ng on the 15th of October.

Darrel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.GSO.2.00.1211041001310.18257>