Subject: Re: databases.mk (new mk for packages using mysql*-client/postgresql*-lib)
To: Juan RP <juan@xtraeme.unixbsd.org>
From: grant beattie <grant@NetBSD.org>
List: tech-pkg
Date: 06/10/2004 17:46:14
--BZaMRJmqxGScZ8Mx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jun 10, 2004 at 09:25:36AM +0200, Juan RP wrote:

> > cool, sounds good. it might be neater to have the implementations as
> > values, not variables, eg. USE_DB=3D"mysql postgresql" and also to
> > provide them on a per-pkg basis.
>=20
> I don't see any improvement of using values rather than variables, but I =
could
> try.

mostly for cleanliness reasons so we don't end up with a swamp of
USE_DB_FIREBIRD, USE_DB_PGSQL, etc. from a user PoV, having one variable
to control things is easier, ala BDB_TYPE or whatever it's called.

you can also error on unknown words in the value and provide useful
feedback to the user (eg. "pgsql74 support is not available for this
package").

> > eg. I want mail/exim3 built with mysql support but php4 with both
> > mysql and postgresql support. something like USE_DB.exim3=3D"mysql"
> > might make sense in this context.
>=20
> Hmm, but we have php4 splitted in small packages, so you cannot install
> php4 with mysql/pgsql unless you go to the directory and install it one b=
y one.

sure, that was just a random example :) what I meant was that I can
then just put those settings in /etc/mk.conf and forget about them,
knowing that my php4 will always be built with mysql/pgsql support,
and exim will always have mysql support.

> [1] Actually we cannot have two mysql*/pgsql* installed, because they
>       install the same files into the same directories, this could be fix=
ed
>       renaming the packages to use ${PKGBASE} instead of ${DISTNAME}.

remember this isn't true in a pkgviews world, either.

grant.


--BZaMRJmqxGScZ8Mx
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFAyBHGluYOb9yiFXoRAtrmAJ9l0+89hAneE6nnL1ncZ4jNjzpM0QCghZqt
evE3g9sJIvb69p71KNAK1YI=
=oeli
-----END PGP SIGNATURE-----

--BZaMRJmqxGScZ8Mx--