From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Nov 30 15:13:50 2005 Return-Path: X-Original-To: freebsd-ports-bugs@FreeBSD.org Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 777B716A423; Wed, 30 Nov 2005 15:13:50 +0000 (GMT) (envelope-from stolz@i2.informatik.rwth-aachen.de) Received: from atlas.informatik.rwth-aachen.de (atlas.informatik.RWTH-Aachen.DE [137.226.194.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 344AF43D64; Wed, 30 Nov 2005 15:13:48 +0000 (GMT) (envelope-from stolz@i2.informatik.rwth-aachen.de) Received: from i2.informatik.rwth-aachen.de (menelaos.informatik.RWTH-Aachen.DE [137.226.194.73]) by atlas.informatik.rwth-aachen.de (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id jAUFDhXB010376; Wed, 30 Nov 2005 16:13:43 +0100 Received: (from stolz@localhost) by i2.informatik.rwth-aachen.de (8.13.1/8.13.1/Submit) id jAUFDcbR087742; Wed, 30 Nov 2005 16:13:38 +0100 (CET) (envelope-from stolz) Received: (hashcash-sendmail, from uid 1228); Wed, 30 Nov 2005 16:13:38 +0100 Date: Wed, 30 Nov 2005 16:13:38 +0100 From: Volker Stolz To: "Paul A. Hoadley" Message-ID: <20051130151338.GF26259@i2.informatik.rwth-aachen.de> References: <200511291335.jATDZkD8037402@freefall.freebsd.org> <20051130005103.GB93035@bigbird.logicsquad.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051130005103.GB93035@bigbird.logicsquad.net> X-PGP-Key: finger vs@foldr.org X-PGP-Id: 0x3FD1B6B5 User-Agent: Mutt/1.5.11 X-Hashcash: 1:20:051130:paulh@logicsquad.net::d1sTBild/nYldAee:00000000000000000 0000000000000000000000000zMG X-Hashcash: 1:20:051130:freebsd-ports-bugs@freebsd.org::FGtL6Ahs+hicaMU3:0000000 0000000000000000000000001Xji X-Hashcash: 1:20:051130:seanc@freebsd.org::mU0sTTPzWu78/FM3:00000000000000000000 0000000000000000000000000mEH X-Hashcash: 1:20:051130:delphij@freebsd.org::L7P8fTupwWmlQdky:000000000000000000 00000000000000000000000017wp Cc: seanc@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, delphij@FreeBSD.org Subject: Re: ports/89703: [maintainer-update] textproc/refdb to 0.9.6 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2005 15:13:50 -0000 Am 30. Nov 2005 um 01:51 CET schrieb Paul A. Hoadley: > On Tue, Nov 29, 2005 at 01:35:46PM +0000, Volker Stolz wrote: > > > Although your intent to use versioned dependencies is honorable, > > it'll mean that LIB_DEPENDS is incomplete (missing > > libdbi). > > LIB_DEPENDS is similarly incomplete in the current version of this > port. Dependency on libdbi was only ever expressed indirectly by > BUILD_DEPENDS on the various backend drivers in libdbi-drivers. For > example, if the user selected 'MySQL' as the DB backend for refdb, the > Makefile adds the following: > > USE_MYSQL= yes > # If libdbi-drivers has been built without MySQL driver, abort > .if exists(${LOCALBASE}/lib/dbd) && !exists(${LOCALBASE}/lib/dbd/libmysql.so) > IGNORE= Rebuild databases/libdbi-drivers with MySQL support > .elif !exists(${LOCALBASE}/lib/dbd) > BUILD_DEPENDS+= ${LOCALBASE}/lib/dbd:${PORTSDIR}/databases/libdbi-drivers > .endif > > The .if is true if libdbi exists, but libmysql.so was never installed. > There's no way to automate the consequence, as libdbi-drivers uses > OPTIONS in its Makefile, and so we can't force libmysql.so to be > built. The .elif is true if libdbi was never built, in which case we > make database/libdbi-drivers a BUILD_DEPENDS, and rely on the user to > select the right backend. > > > Unfortunately, I don't see an easy fix. I'd say let's go for a > > regular LIB_DEPENDS again since running with stale dependencies is > > never really supported. > > I don't see an easy fix either, and I think even the approach for the > existing port is a bit of a mess. Are you saying it would be > sufficient to add 'dbi:${PORTSDIR}/databases/libdbi' to LIB_DEPENDS? Hm, it looks like there's no apropriate logic to get libdbi/dbi-drivers to do what you want. In that case, maybe you could set additionally RUN_DEPENDS. I think there'll still be a way by installing from packages that will lead to missing dependencies, though. Maybe if dbi-drivers were to use several slave-ports, we'd have a solution... I'm cc:ing the dbi (seanc@) and dbi-drivers (delphij@) guys for comments. Volker -- http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME Receive and transmit