From owner-freebsd-ports Wed Jul 8 07:48:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA09092 for freebsd-ports-outgoing; Wed, 8 Jul 1998 07:48:55 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from ghpc8.ihf.rwth-aachen.de (ghpc8.ihf.RWTH-Aachen.DE [134.130.90.8]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA09035; Wed, 8 Jul 1998 07:48:19 -0700 (PDT) (envelope-from tg@ghpc8.ihf.rwth-aachen.de) Received: from ghpc6.ihf.rwth-aachen.de (ghpc6.ihf.rwth-aachen.de [134.130.90.6]) by ghpc8.ihf.rwth-aachen.de (8.8.8/8.8.6) with ESMTP id QAA19904; Wed, 8 Jul 1998 16:34:03 +0200 (CEST) Received: (from tg@localhost) by ghpc6.ihf.rwth-aachen.de (8.8.8/8.8.5) id QAA05630; Wed, 8 Jul 1998 16:34:02 +0200 (CEST) To: Joseph Koshy Cc: jkoshy@hub.freebsd.org, ports@FreeBSD.ORG Subject: Re: Dependencies when doing a make install ... References: <199807081203.FAA14974@hub.freebsd.org> From: Thomas Gellekum Date: 08 Jul 1998 16:33:58 +0200 In-Reply-To: Joseph Koshy's message of "Wed, 08 Jul 1998 05:03:36 -0700 (PDT)" Message-ID: <87emvw4dk9.fsf@ghpc6.ihf.rwth-aachen.de> Lines: 44 X-Mailer: Gnus v5.5/XEmacs 20.4 - "Emerald" Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Joseph Koshy writes: > Take a port with a LIB_DEPENDS dependency (eg:- xaos, which depends on `png'). > > $ lcvs co xaos > $ cd xaos; make ... [snip] ... > > # make install > ... [snip] ... > ===> Registering installation for xaos-3.0 > Warning: "/usr/ports/graphics/png" non-existent -- @pkgdep registration incomplete > > I do have the `png' package installed: > > # pkg_info -aI | grep png > png-1.0.1 Library for manipulating PNG images. > > And sure enough, the files in /var/db/pkg/png/ don't get updated correctly > to record the dependency of `xaos' on the PNG library. > > Note: bsd.port.mk on -stable post 2.2.6 > > Am I missing something? Yes and no. The dependency registration works somewhat different in pkg_add/pkg_delete and bsd.ports.mk. bsd.ports.mk builds a list of dependencies (and dependencies' dependencies (and dep... ;-) )) from the ports' makefiles (second part of the *_DEPENDS line); check the package-depends target for that. It assumes a complete ports tree to _generate_ the @pkgdep lines for a package. pkg_add just uses those lines to add the dependencies into /var/db/pkg/.../+REQUIRED_BY, so it gets by without a ports tree. This is actually a missing feature in our ports. They don't have an understanding of an upgrade path, or a check which versions of a port work with specific versions of a dependent port. Currently, we don't have the ability to say ``xaos-3.0 works with png-1.0.0, png-1.0.1, png-1.1.0 and png-2.0.0'', and then use what's already there instead of looking for the latest and greatest. tg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message