Uggg!

Michel Talon talon at lpthe.jussieu.fr
Fri Jun 1 19:15:00 UTC 2007


Thomas Hummel wrote:

> Sure. But that doesn't explain why so many +CONTENT files were screwed
> up and why there isn't a easy or easier way to re-generate them.

Portupgrade (at least pkgdb) has functionality to edit the +CONTENTS
file with the aim of fixing the dependencies.  So one may understand
that if it is killed in the middle it may leave the +CONTENTS file
screwed. It would be wise to move the file to +CONTENTS.BAK and then
edit the +CONTENTS file, or edit a copy and then apply rename.

You cannot regenerate the +CONTENTS file in a reliable way, because its
content is depending on the way in which you installed software on the
machine, from package or port, and then what was the building option 
for the port. Note that all files have an md5sum which willbe different
for any variation! It is even dependent on the history of the pkgdb 
you have done, since this edits the file.

Moral of the story, as other people are saying, keeping a backup of the
pkgdb should be necessary before taking unreliable action.



-- 

Michel TALON



More information about the freebsd-ports mailing list