From owner-freebsd-questions@FreeBSD.ORG Wed Apr 5 00:06:07 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 4229916A41F for ; Wed, 5 Apr 2006 00:06:07 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE3C043D48 for ; Wed, 5 Apr 2006 00:06:04 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id D1DF31A3C23; Tue, 4 Apr 2006 17:06:04 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id E0AF351DA0; Tue, 4 Apr 2006 20:06:03 -0400 (EDT) Date: Tue, 4 Apr 2006 20:06:03 -0400 From: Kris Kennaway To: Luke Dean Message-ID: <20060405000603.GA87301@xor.obsecurity.org> References: <6.2.5.6.2.20060403135639.033d6db0@xxiii.com> <20060404150614.T41459@border.crystalsphere.multiverse> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline In-Reply-To: <20060404150614.T41459@border.crystalsphere.multiverse> User-Agent: Mutt/1.4.2.1i Cc: wc_fbsd@xxiii.com, freebsd-questions@freebsd.org Subject: Re: Update from Ports removes dependency data X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 00:06:07 -0000 --AhhlLboLdkugWU4S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 04, 2006 at 04:36:11PM -0700, Luke Dean wrote: >=20 >=20 > On Mon, 3 Apr 2006, wc_fbsd@xxiii.com wrote: >=20 > >I recently noticed if I update a package from ports, the package manager= =20 > >looses the dependency data for the package. eg: updating old version o= f=20 > >gettext > > > ># pkg_info -R gett* > >Information for gettext-0.14.5_1: > >Required by: > >libgpg-error-1.1 > >libgcrypt-1.2.2 > >gnutls-1.2.9 > >p5-gettext-1.03 > >gmake-3.80_2 > > > >[[[ update from ports - make ; make deinstall ; make reinstall ]]] > > > ># pkg_info -R gett* > >Information for gettext-0.14.5_2: > > > >Is my procedure incorrect, or is this normal behavior? > > > > -Thanks, Wayne >=20 > This is normal. It's what makes upgrading those ports that are required= =20 > by lots of other ports so difficult. > Dependency information is version-specific. >=20 > If you run "pkg_info -r libgpg-error-1.1" you'll find that it still=20 > depends on gettext-0.14.5_1 until you rebuild libgpg-error. >=20 > Last weekend I wrote some scripts to help me deal with stale dependencies= =20 > like this. My code is such an ugly perl hack that I'm ashamed to post it= ,=20 > and my algorithm isn't really airtight, but I'll give you the algorithm= =20 > I'm using. The script just uses pkg_info, pkg_version, and grep. Sounds like you're reinventing the wheel..portupgrade does all this and more. Kris --AhhlLboLdkugWU4S Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQFEMwnqWry0BWjoQKURAnW/AKCTlLRsRGUKkvIU9zZWTtMmW1gTzgCff0zD ErFNBxs62tlLeEyAX4D/GJY= =qJ2y -----END PGP SIGNATURE----- --AhhlLboLdkugWU4S--