Update from Ports removes dependency data
Kris Kennaway
kris at obsecurity.org
Wed Apr 5 00:06:07 UTC 2006
On Tue, Apr 04, 2006 at 04:36:11PM -0700, Luke Dean wrote:
>
>
> On Mon, 3 Apr 2006, wc_fbsd at xxiii.com wrote:
>
> >I recently noticed if I update a package from ports, the package manager
> >looses the dependency data for the package. eg: updating old version of
> >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
>
> This is normal. It's what makes upgrading those ports that are required
> by lots of other ports so difficult.
> Dependency information is version-specific.
>
> If you run "pkg_info -r libgpg-error-1.1" you'll find that it still
> depends on gettext-0.14.5_1 until you rebuild libgpg-error.
>
> Last weekend I wrote some scripts to help me deal with stale dependencies
> like this. My code is such an ugly perl hack that I'm ashamed to post it,
> and my algorithm isn't really airtight, but I'll give you the algorithm
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20060405/25e69787/attachment.pgp
More information about the freebsd-questions
mailing list