From owner-freebsd-ports Wed Dec 8 4:39:35 1999 Delivered-To: freebsd-ports@freebsd.org Received: from blackdawn.com (deepspace9.dcds.edu [207.231.151.2]) by hub.freebsd.org (Postfix) with ESMTP id 3F09E14CF2 for ; Wed, 8 Dec 1999 04:39:32 -0800 (PST) (envelope-from will@blackdawn.com) Received: (from will@localhost) by blackdawn.com (8.9.3/8.9.3) id HAA00505; Wed, 8 Dec 1999 07:38:59 -0500 (EST) (envelope-from will) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <19991207223557.A14755@cichlids.cichlids.com> Date: Wed, 08 Dec 1999 07:38:59 -0500 (EST) From: will andrews To: Alexander Langer Subject: *_DEPENDS (Was Re: audio/gogo depends on nasm _0.98_ (!)) Cc: ports@FreeBSD.ORG Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 07-Dec-99 Alexander Langer wrote: > Yes, it was installed, but as version 0.97. But audio/gogo needs 0.98 > to build, so the build falied. > > After I installed nasm 0.98 from the ports audio/gogo build fine. > > I wonder if there is the possibility to extend a port to depend on a > specific version, that becomes installed if it's not installed. > > The ports-system supports installation of dependencies, so why don't > let it depend on nasm 0.98 and install that? This is something I've given some thought to - i.e., the LIB_DEPENDS, BUILD_DEPENDS, RUN_DEPENDS. It's an issue that makes some ports difficult to ensure successful building. One way we can modify the *_DEPENDS is to keep a database of possible libraries, binaries, build dependencies, etc. for each port that is depended on and change the format of *_DEPENDS to force people to use a certain version of a library (for example), or in this case, a build dependency. I believe the NetBSD project already has something like this. Although I only got a glance.. The difficult problem with this is the fact that some 2,800 ports would need changing to adapt to new *_DEPENDS. Therefore, a different approach might be taken instead (and we would only need to modify programs that can't depend on, say, the immediate last 2 or 3 versions of a dependency). Another alternative to adding another knob to bsd.port.mk would be to have a sort of "map" that maps a port to its dependencies by version. *sigh* -- Will Andrews GCS/E/S @d- s+:+>+:- a--->+++ C++ UB++++ P+ L- E--- W+++ !N !o ?K w--- ?O M+ V-- PS+ PE++ Y+ PGP+>+++ t++ 5 X++ R+ tv+ b++>++++ DI+++ D+ G++>+++ e->++++ h! r-->+++ y? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message