cvs commit: ports MOVED ports/audio Makefile ports/audio/gmpc Makefile distinfo pkg-descr pkg-message pkg-plist ports/audio/gmpc/files patch-src-playlist.c patch-src-tray.c ports/audio/traymp Makefile distinfo pkg-descr pkg-message ...

Kris Kennaway kris at obsecurity.org
Mon May 17 23:59:46 PDT 2004


On Tue, May 18, 2004 at 08:40:53AM +0200, Dag-Erling Sm?rgrav wrote:
> Kris Kennaway <kris at obsecurity.org> writes:
> > On Mon, May 17, 2004 at 03:49:10PM +0200, Dag-Erling Sm?rgrav wrote:
> > > It is not possible for portupgrade or any other tool to always DTRT
> > > about moved ports.
> > Why not?  You parse the file once in order, as the entries were added
> > in order.  There are no cycles possible.
> 
> editors/emacs|editors/emacs19|2004-03-20|emacs 19.x moved to a non-default port location
> editors/emacs21|editors/emacs|2004-03-20|emacs 21.x moved to default port location
> 
> there's no way to tell whether the installed emacs, with origin
> editors/emacs, is emacs19 installed before the move or emacs21
> installed after the move.  Portupgrade gets confused by this:

OK, that's clear now, thanks.

The intent of the MOVED format was that upgrade utilities should parse
entries after the date of the port being processed to see whether they
should be migrated to another port directory, but even trying to
express that in english it's clear that it's not a properly formulated
algorithm (what date?  It's not the installation date of the port; the
date of the most recent makefile CVS commit at the time of
installation may suffice, but this information is not recorded in the
port), and the file format was poorly designed.

I think there's also a PR about this, which I haven't had time to read.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-ports/attachments/20040517/642fbe5f/attachment.bin


More information about the cvs-ports mailing list