Date: Thu, 1 Dec 2005 09:03:21 +1030 From: "Paul A. Hoadley" <paulh@logicsquad.net> To: Volker Stolz <vs@FreeBSD.org> Cc: seanc@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, delphij@FreeBSD.org, Markus Hoenicka <markus.hoenicka@mhoenicka.de> Subject: Re: ports/89703: [maintainer-update] textproc/refdb to 0.9.6 Message-ID: <20051130223321.GB58035@bigbird.logicsquad.net> In-Reply-To: <20051130151338.GF26259@i2.informatik.rwth-aachen.de> References: <200511291335.jATDZkD8037402@freefall.freebsd.org> <20051130005103.GB93035@bigbird.logicsquad.net> <20051130151338.GF26259@i2.informatik.rwth-aachen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--hHWLQfXTYDoKhP50 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Volker, On Wed, Nov 30, 2005 at 04:13:38PM +0100, Volker Stolz wrote: > 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: > >=20 > > > Although your intent to use versioned dependencies is honorable, > > > it'll mean that LIB_DEPENDS is incomplete (missing > > > libdbi). > >=20 > > 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: > >=20 > > USE_MYSQL=3D yes > > # If libdbi-drivers has been built without MySQL driver, abort > > .if exists(${LOCALBASE}/lib/dbd) && !exists(${LOCALBASE}/lib/dbd/libmys= ql.so) > > IGNORE=3D Rebuild databases/libdbi-drivers with MySQL support > > .elif !exists(${LOCALBASE}/lib/dbd) > > BUILD_DEPENDS+=3D ${LOCALBASE}/lib/dbd:${PORTSDIR}/databases/libdbi-dri= vers > > .endif > >=20 > > 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. > >=20 > > > 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. > >=20 > > 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? >=20 > 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... Someone on freebsd-ports suggested exactly that when I was making the first version of this port. We settled for the compromise that was eventually committed. > I'm cc:ing the dbi (seanc@) and dbi-drivers (delphij@) guys for > comments. Excellent. I'll tack on Markus Hoenicka too, the author of RefDB. BTW, none of this is going into GNATS---should it be? --=20 Paul. w http://logicsquad.net/ h http://paul.hoadley.name/ --hHWLQfXTYDoKhP50 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFDjiix730Z/jysbzIRAohDAJwIKkbOpoxSo2ObbL3qi6YuuN7zwACeIzWV M8Oq36WIc16z4ADyP1Klzz8= =OES7 -----END PGP SIGNATURE----- --hHWLQfXTYDoKhP50--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051130223321.GB58035>