From owner-freebsd-stable Fri Nov 16 9:11:11 2001 Delivered-To: freebsd-stable@freebsd.org Received: from c527597-a.cstvl1.sfba.home.com (c527597-a.cstvl1.sfba.home.com [24.176.204.87]) by hub.freebsd.org (Postfix) with ESMTP id 2E54437B417 for ; Fri, 16 Nov 2001 09:11:02 -0800 (PST) Received: (from bmah@localhost) by c527597-a.cstvl1.sfba.home.com (8.11.6/8.11.6) id fAGHAqj53942; Fri, 16 Nov 2001 09:10:52 -0800 (PST) (envelope-from bmah) Message-Id: <200111161710.fAGHAqj53942@c527597-a.cstvl1.sfba.home.com> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Mike Meyer Cc: "Patrick O'Reilly" , "FreeBSD Stable List" Subject: Re: cvsup of ports, then what? In-Reply-To: <15348.63980.371923.848952@guru.mired.org> References: <15348.63980.371923.848952@guru.mired.org> Comments: In-reply-to Mike Meyer message dated "Fri, 16 Nov 2001 05:35:08 -0600." From: "Bruce A. Mah" Reply-To: bmah@FreeBSD.ORG X-Face: g~c`.{#4q0"(V*b#g[i~rXgm*w;:nMfz%_RZLma)UgGN&=j`5vXoU^@n5v4:OO)c["!w)nD/!!~e4Sj7LiT'6*wZ83454H""lb{CC%T37O!!'S$S&D}sem7I[A 2V%N&+ X-Image-Url: http://www.employees.org/~bmah/Images/bmah-cisco-small.gif X-Url: http://www.employees.org/~bmah/ Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1713713040P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Fri, 16 Nov 2001 09:10:52 -0800 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --==_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