Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 May 2004 23:59:35 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        Dag-Erling Sm?rgrav <des@des.no>
Cc:        Kris Kennaway <kris@obsecurity.org>
Subject:   Re: 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 ...
Message-ID:  <20040518065935.GA62720@xor.obsecurity.org>
In-Reply-To: <xzp1xlib5l6.fsf@dwp.des.no>
References:  <200405162147.i4GLlLf3023305@repoman.freebsd.org> <20040516222531.GB38014@xor.obsecurity.org> <1084779257.24544.0.camel@pav.hide.vol.cz> <20040517103829.GA3318@xor.obsecurity.org> <xzpad07b1ux.fsf@dwp.des.no> <20040517222636.GA19203@xor.obsecurity.org> <xzp1xlib5l6.fsf@dwp.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help

--HlL+5n6rz5pIUxbD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, May 18, 2004 at 08:40:53AM +0200, Dag-Erling Sm?rgrav wrote:
> Kris Kennaway <kris@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.
>=20
> editors/emacs|editors/emacs19|2004-03-20|emacs 19.x moved to a non-defaul=
t port location
> editors/emacs21|editors/emacs|2004-03-20|emacs 21.x moved to default port=
 location
>=20
> 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
--HlL+5n6rz5pIUxbD
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAqbRXWry0BWjoQKURAlxRAKCSA92tuMXjCe8B2UbcNIyByyNz2ACfaRGX
K/oT5JZWeHHMKVS5tN/pWiE=
=0O9I
-----END PGP SIGNATURE-----

--HlL+5n6rz5pIUxbD--



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