Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Nov 2001 09:10:52 -0800
From:      "Bruce A. Mah" <bmah@FreeBSD.ORG>
To:        Mike Meyer <mwm@mired.org>
Cc:        "Patrick O'Reilly" <patrick@mip.co.za>, "FreeBSD Stable List" <freebsd-stable@FreeBSD.ORG>
Subject:   Re: cvsup of ports, then what? 
Message-ID:  <200111161710.fAGHAqj53942@c527597-a.cstvl1.sfba.home.com>
In-Reply-To: <15348.63980.371923.848952@guru.mired.org> 
References:  <NDBBIMKICMDGDMNOOCAIEEKIDOAA.patrick@mip.co.za> <15348.63980.371923.848952@guru.mired.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--==_Exmh_1713713040P
Content-Type: text/plain; charset=us-ascii

If memory serves me right, Mike Meyer wrote:

> Note that pkg_version uses the INDEX file, which is in the repository
> but not get up to date. For best results, you need to do a "make
> index" in /usr/ports.

Quick correction here...pkg_version (for 4.3-RELEASE and newer) will use
information encoded in each port/package to help find the current
version of each port from the port's Makefile.  It only falls back to
the (slightly out-of-date) INDEX file if this fails.  You generally
don't need to do "make index" for pkg_version.

> > Or is there something simpler that will
> > know which ports I have installed and do them all together for me?  Also,
> > mergemaster is a beauty when making the world - is there anything similar
> > for the ports?
> 
> >From what I've heard, the closest thing to "mergemaster" is the
> portupgrade port. I personally haven't checked it out, but you might
> want to. In the base system, you can run "pkg_version -c" to generate
> a script - that you *must* edit by hand!! - that will safely build the
> new port and delete the old one, then install the new port.
> 
> I was very careful with the phrasing of that last sentence, as the
> reason you must edit the script by hand is hiding in it.

...for which I'm very grateful.  :-)

I personally recommend using portupgrade...it does a much better job of
handling upgrades than pkg_version could ever pretend to do.  pkg_version
sucks rocks at solving the port upgrade problem because it was never
designed to handle it.

Bruce.

PS.  Mike probably knows this, but for anyone who wasn't aware, I'm the 
original author of pkg_version, so I'm entitled to make disparaging 
remarks about it.



--==_Exmh_1713713040P
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: Exmh version 2.3.1+ 05/14/2001

iD8DBQE79Uic2MoxcVugUsMRAuobAKDpBzaeaGA22f6/Tht9JWoAHwtjKQCfWPOV
TK4x0z9NUXog0GfrGp7QWtk=
=2J5F
-----END PGP SIGNATURE-----

--==_Exmh_1713713040P--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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