Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jun 2007 21:14:56 +0200
From:      Michel Talon <talon@lpthe.jussieu.fr>
To:        ports@freebsd.org
Subject:   Re: Uggg!
Message-ID:  <20070601191456.GA27033@lpthe.jussieu.fr>

next in thread | raw e-mail | index | archive | help
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




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