Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Mar 2021 17:59:35 -0700
From:      "Janky Jay, III" <jankyj@unfs.us>
To:        freebsd-ports <freebsd-ports@freebsd.org>
Subject:   MariaDB Options for Port.
Message-ID:  <65bf568d-01ec-4a1d-ccfc-a80202cb7b54@unfs.us>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--WouFwN8D0fOCaH0w2NOkjJ7Co62bC9q0Q
Content-Type: multipart/mixed; boundary="51ygndif41lDF3yjGpW37kGXonnZQqXGo";
 protected-headers="v1"
From: "Janky Jay, III" <jankyj@unfs.us>
To: freebsd-ports <freebsd-ports@freebsd.org>
Message-ID: <65bf568d-01ec-4a1d-ccfc-a80202cb7b54@unfs.us>
Subject: MariaDB Options for Port.

--51ygndif41lDF3yjGpW37kGXonnZQqXGo
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Language: en-US

Hello Everyone,

=C2=A0=C2=A0=C2=A0 I've been trying to add a MariaDB option to a port I m=
aintain but
everything I have tried has failed. There's is obviously something I'm
not understanding about the available options so I'm hoping someone can
point me the right direction.

=C2=A0=C2=A0=C2=A0 The port currently has a MySQL option which works fine=
 but I'd like
to add MariaDB in there as an alternative:

=2Eif ${PORT_OPTIONS:MMYSQLSERVER}
USES+=3D=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 mysql:server
=2Eendif

=C2=A0=C2=A0=C2=A0 Based on the information I found in the Porter's Handb=
ook [1], it
appears there are options for MariaDB but they come from variants of
USES=3Dmysql (such as "mysql:105m", for MariaDB.) However, setting this t=
o
the version isn't working. Plus, I don't want to specify a required
version since there isn't one (I'd like users to be able to use whatever
version they prefer.) It also appears I cannot use multiple USES=3D lines=

because aside from the version arg, it would just use those settings for
MySQL and ignore MariaDB like it's already doing.

=C2=A0=C2=A0=C2=A0 Below is the line I last tested without any luck. Agai=
n, I don't
want to specify a version, though. I'd like it do the same thing that
USES+=3Dmysql does where it will install the default version if MariaDB
doesn't exist but if it does, it'll find the correct libs and move
forward with the dependency:

=2Eif ${PORT_OPTIONS:MMARIADBSERVER}
USES+=3D=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 mysql:105m
=2Eendif

=C2=A0=C2=A0=C2=A0 Can someone please point me to more informative docume=
ntation or
maybe even provide an example port that is already doing this? I've
searched the ports tree but failed to find anything helpful.

[1] - https://docs.freebsd.org/en/books/porters-handbook/#uses-mysql

Regards,
Janky Jay, III


--51ygndif41lDF3yjGpW37kGXonnZQqXGo--

--WouFwN8D0fOCaH0w2NOkjJ7Co62bC9q0Q
Content-Type: application/pgp-signature; name="OpenPGP_signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="OpenPGP_signature"

-----BEGIN PGP SIGNATURE-----

wsF5BAABCAAjFiEEB9+qpHaa6VJwk8f7Wnleb3XkGzkFAmBJa3cFAwAAAAAACgkQWnleb3XkGzla
ORAAmmPbGvp/4kqf544LwNk7bhXv+lOyiYo0Mjcfb8XHmxT9bzRDCEQdT+nVCao2y08WfKXru3VL
MgXArGoWJvi5s7hADzgzQ9hnNMNVgF3UX2xcnJ5OllCLX9QWQtOU5eab6b3K6pnzlmYTvjBOqYzm
xS1YImIOmyi3yV616b6pHnGhUGaCNzkq1zyoitZg2eH+FFHGp0gsy7muXM9xQC5mE+FRGc8MWqEK
jZ4g6hW1zCLwebgA5DRZ/9YA0ltM8PoU+LXhUk5m9trvccE0MAubHWN+q2X3gonKgoT/vjfi+l/r
qDjbbPXjoSZEAjDovwuZ9rBYX+vFpkpHdbfh3HTFcRbLTB2MZCtxS8/RDeEUWS8C2HnmjpjxVexg
ctD1uEVH75eVwdQmhqipp5jYRZyPvkNvyTTPPpgPHRQKiZDavOLxrpIxqp/tF/KY9+amiWsyGky3
PQntRU/8HYWd/e0nrGtCBWBMWTfXMaBzJvys9shF8Sfe01regShd46QyU45baNLKMvv/6wkne3zp
obq1GlHwKKK5K98licvqQy3KMxg1X+8i+3MJUliL6dTOBceEGpOY6foagcOfAmVJUXmF+l8su42C
a73QJhY4u67wTGVh4wBl25hprpgnnyBVmypPJp9THLrc5LeIECgWrQ5zKkOujO8ZgsEGUjoSgk1z
Hpg=
=0iVG
-----END PGP SIGNATURE-----

--WouFwN8D0fOCaH0w2NOkjJ7Co62bC9q0Q--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?65bf568d-01ec-4a1d-ccfc-a80202cb7b54>