USE_MYSQL / USE_PGSQL buildtime dependency differences

Miroslav Lachman 000.fbsd at quip.cz
Thu Jun 19 13:52:19 UTC 2014


Marco Steinbach wrote:
> Hi.
>
> Mk/bsd.database.mk seems to handle dependencies resulting from the use
> of USE_PGSQL and USE_MYSQL flags differently.
>
> USE_PGSQL pulls in PostgreSQL at buildtime, for both, the client and the
> server component. USE_MYSQL seems to only pull anything in at buildtime,
> if the flag is set to 'client'.
>
> Thus, with USE_MYSQL=server the build of my port breaks by not
> installing anything at buildtime, neither the server nor (more
> importantly) its client slaveport, while USE_MYSQL=client does not
> install the server.

[...]

> I've also tried renaming my MYSQL / PGSQL options to preclude possible
> collisions, but that didn't change behaviour.
>
> I'm trying to create a port of Icinga2
> (https://www.icinga.org/icinga2/), FWIW.

I think there is no need to install MySQL server on the same machine 
with Icinga2 (or any other MySQL dependent port). It really needs client 
library and then it can connect to any remote MySQL server. That's why 
this is not supported by bsd.database.mk.

Miroslav Lachman


More information about the freebsd-ports mailing list