From owner-freebsd-questions@FreeBSD.ORG Mon Feb 14 02:34:12 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B85016A4CE for ; Mon, 14 Feb 2005 02:34:12 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.199.47.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3AFA443D31 for ; Mon, 14 Feb 2005 02:34:12 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 05F5851461; Sun, 13 Feb 2005 18:34:10 -0800 (PST) Date: Sun, 13 Feb 2005 18:34:10 -0800 From: Kris Kennaway To: "Michael C. Shultz" Message-ID: <20050214023410.GA27186@xor.obsecurity.org> References: <200501271852.j0RIqQ9t010411@mp.cs.niu.edu> <200502131642.59595.ean@hedron.org> <04e901c51217$c3d5e590$7702a8c0@officeeagle> <200502131815.21142.reso3w83@verizon.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TB36FDmn/VVEgNH/" Content-Disposition: inline In-Reply-To: <200502131815.21142.reso3w83@verizon.net> User-Agent: Mutt/1.4.2.1i cc: Paul Schmehl cc: portmanager-questions-@sunsite.dk cc: freebsd-questions@freebsd.org cc: Ean Kingston Subject: Re: Updated perl - broke stuff X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2005 02:34:12 -0000 --TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 13, 2005 at 06:15:18PM -0800, Michael C. Shultz wrote: > Pkgdb -F is what screws up the installed ports registry. Here is an=20 > example of what happens: >=20 > 1. port-A needs dependency port-B installed > 2. port-B is installed > 3. port-A is installed and marks its registry as being dependent on=20 > port-B >=20 > and here is where things go wrong using sysutils/portupgrade: >=20 > 4. port-B gets upgraded to port-B.1 and portupgrade reports port-A > has a stale dependency. Are you certain about this? This is not what portupgrade is supposed to do. > Then you run pkgdb -F and port-A's registry is changed to say it was=20 > built with port-B.1, portupgrade claims this "fixes" the registry when=20 > it really breaks it. You're using emotionally loaded language here ("breaks it", "cheats"), which isn't conducive to discussion. You have a different opinion of what the upgrade process should be doing, but that doesn't mean that portupgrade is broken. > Remember, port-A was built with port-B, not port-B.1 and the correct way= =20 > to "fix" the stale dependency is to upgrade port-A so it is built with=20 > the newer dependency. >=20 > sysutils/portmanager also updates ports, put it doesn't cheat. When > port-B became port-B.1 portmanager will rebuild port-A using port-B.1 > as the dependency. port-A's registry stays reliable, reflecting how the > port was really build instead of how we wished it were built. This is usually not needed, though, so it's overkill and causes unnecessary recompilation. In the cases when it is (e.g. shared library bump), the PORTREVISION of dependent ports should be updated so they become out of date. portupgrade can operate in this mode anyway, though; just add the -f option to portupgrade -r. Kris --TB36FDmn/VVEgNH/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCEA4iWry0BWjoQKURAjs+AKCpkX0WT+54/1swnYR0dRPgbRE45wCgurtT UNWB8yhbbigcEE0Zz+coBT0= =ItMS -----END PGP SIGNATURE----- --TB36FDmn/VVEgNH/--