Solved libxml2 upgrade fails

Second host I've tried this on, and second time I'm getting this failure -
Code:
dependency check fails when checking for libiconv.so

libiconv is installed and file exists in /usr/local/lib ; I also did a deinstall / reinstall to make sure it was registered fully, but still can't update via portmaster. However, I think with the first host I eventually use pkg to update and that worked.
 
this seems to be a symptom of a much larger issue where numerous shared libraries cannot be found, despite the fact that they do exist on the file system. Shared library cache seems to be bungled.
 
Update 2:

Removed all installed ports - oddly portmaster -l (or -L) still lists many things as installed, even though they are not.
 
9.3-RELEASE - and I am considering the old/new package system as a possible cause. When hosts were upgraded to 9.3, they were also migrated to pkgng which seemed to go well at the time and there hadn't been any issues up until this despite many ports and packages being patched over the past few months.

Currently I am reinstalling all the necessary ports on this particular system, but I really can't used this scorched earth method for all of them.
 
The individual package directories in /var/db/pkg are where the old package system kept data. It's not safe to delete the whole directory because the new package database is in there, /var/db/pkg/local.sqlite, but the old subdirectories can be deleted.
 
I was eyeballing those directories yesterday... I might try removing them on the next host I run into trouble on.
 
portmaster(1) stores some temporary things in those subdirectories and will recreate them, but no harm is done by just deleting them all. If I was not lazy, I would figure out a find(1) or just rm(1) command to do it. As far as I know, only /var/db/pkg/local.sqlite needs to be kept, but repo-FreeBSD.sqlite and /var/db/pkg/FreeBSD.meta would probably be good also, maybe others.
 
portmaster(1) stores some temporary things in those subdirectories and will recreate them, but no harm is done by just deleting them all. If I was not lazy, I would figure out a find(1) or just rm(1) command to do it. As far as I know, only /var/db/pkg/local.sqlite needs to be kept, but repo-FreeBSD.sqlite and /var/db/pkg/FreeBSD.meta would probably be good also, maybe others.

What portmaster does is to use /var/db/pkg/${PKGNAME}/distfiles to store the distfile information which is completely wrong IMHO because there are no other tools that make use of the files. They should be in portmaster(8)'s own hierarchy for example /var/db/portmaster/${PKGNAME}/distfiles.
 
Insofar as the libxml2 issue goes - removal of /usr/share/misc/magic.mime{,.mgc} which is mentioned in 20150213 in /usr/ports/UPDATING seems to be the fix.
 
Back
Top