In /usr/ports/UPDATING, as we all know, we were told about changes to portmaster and we should do the following:
Running
In any case, whenever I run portmaster to upgrade a port, I'm given a warning or error that portmaster(?) is unable to find the database and, IIRC, portsnap says the SQLite database is corrupt.
I tried uninstalling/re-installing ports-mgmt/pkg to no avail but, despite all this, I've been able to upgrade and install ports without issue that I'm aware of.
So, a little help on this, please.
It's possible that you may have tested pkgng in the past, ran pkg2ng, and
never fully committed to it by setting WITH_PKGNG. If this is the case,
uninstall pkg with pkg_info/pkg_delete and also remove the stale database,
rm /var/db/pkg/local.sqlite.
This could manifest itself as portmaster -L showing the wrong versions, or
portmaster no longer detecting installed packages correctly.
Note that PORTS still require WITH_PKGNG=yes in make.conf if you are not
running CURRENT.
Running
pkg info pkg returned nothing so I did as instructed. Perhaps it was the wrong thing to do but I don't feel the instructions were quite clear. In any case, whenever I run portmaster to upgrade a port, I'm given a warning or error that portmaster(?) is unable to find the database and, IIRC, portsnap says the SQLite database is corrupt.
I tried uninstalling/re-installing ports-mgmt/pkg to no avail but, despite all this, I've been able to upgrade and install ports without issue that I'm aware of.
So, a little help on this, please.