Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Mar 2021 07:39:04 -0700
From:      "Janky Jay, III" <jankyj@unfs.us>
To:        freebsd-ports@freebsd.org
Subject:   Re: MariaDB Options for Port.,MariaDB Options for Port.
Message-ID:  <0302cbf8-25c1-6153-4d5c-a58e164d65d4@unfs.us>
In-Reply-To: <20210311.103029.1434010123825381630.yasu@utahime.org>
References:  <65bf568d-01ec-4a1d-ccfc-a80202cb7b54@unfs.us> <20210311.103029.1434010123825381630.yasu@utahime.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--dGu90nBEDAHBl9tigPpx7PgOKu13JrPNl
Content-Type: multipart/mixed; boundary="wEPRorOCLmBHEALIFQ1U9HroouWaweZmk";
 protected-headers="v1"
From: "Janky Jay, III" <jankyj@unfs.us>
To: freebsd-ports@freebsd.org
Message-ID: <0302cbf8-25c1-6153-4d5c-a58e164d65d4@unfs.us>
Subject: Re: MariaDB Options for Port.,MariaDB Options for Port.
References: <65bf568d-01ec-4a1d-ccfc-a80202cb7b54@unfs.us>
 <20210311.103029.1434010123825381630.yasu@utahime.org>
In-Reply-To: <20210311.103029.1434010123825381630.yasu@utahime.org>

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

Hello Yasuhiro,

On 3/10/21 6:30 PM, Yasuhiro Kimura wrote:
> From: "Janky Jay, III" <jankyj@unfs.us>
> Subject: MariaDB Options for Port.,MariaDB Options for Port.
> Date: Wed, 10 Mar 2021 17:59:35 -0700
>
>> =C2=A0=C2=A0=C2=A0 I've been trying to add a MariaDB option to a port =
I maintain 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 ca=
n
>> point me the right direction.
>>
>> =C2=A0=C2=A0=C2=A0 The port currently has a MySQL option which works f=
ine but I'd like
>> to add MariaDB in there as an alternative:
>>
>> .if ${PORT_OPTIONS:MMYSQLSERVER}
>> USES+=3D=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 mysql:server
>> .endif
>>
>> =C2=A0=C2=A0=C2=A0 Based on the information I found in the Porter's Ha=
ndbook [1], it
>> appears there are options for MariaDB but they come from variants of
>> USES=3Dmysql (such as "mysql:105m", for MariaDB.) However, setting thi=
s to
>> 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 whatev=
er
>> version they prefer.) It also appears I cannot use multiple USES=3D li=
nes
>> because aside from the version arg, it would just use those settings f=
or
>> 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. A=
gain, 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 MariaD=
B
>> doesn't exist but if it does, it'll find the correct libs and move
>> forward with the dependency:
>>
>> .if ${PORT_OPTIONS:MMARIADBSERVER}
>> USES+=3D=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 mysql:105m
>> .endif
>>
>> =C2=A0=C2=A0=C2=A0 Can someone please point me to more informative doc=
umentation 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
>>
> Your port works fine with both MySQL and MariaDB. Right? If so you
> should add `USES=3Dmysql` without version arguments in the Makefile of
> your port. Then user can specify which version of MySQL or MariaDB to
> be used. For example, if he wants to use MariaDB 10.5 then he should
> add following line in make.conf
>
> ----------------------------------------------------------------------
> DEFAULT_VERSIONS+=3D10.5m
> ----------------------------------------------------------------------
=C2=A0=C2=A0=C2=A0 This makes much more sense. Thank you!

Regards,
Janky Jay, III



--wEPRorOCLmBHEALIFQ1U9HroouWaweZmk--

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

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

wsF5BAABCAAjFiEEB9+qpHaa6VJwk8f7Wnleb3XkGzkFAmBKK4gFAwAAAAAACgkQWnleb3XkGzki
bQ//aYH+iI/7rSUgntu0SqmVgnovzDz2l9mD30cBn09fCZFbXQyi6BlXtbDLFts+oLJeuCkb8VNL
OKzejHbH/tYNKNytFJ1ONX+0eqhy0LQyLG+EynjmNOiBh7T71/rpliKq4TB3ccndy0bErzmcjsH2
X8wmwEhjyYziSpUKPn8GzSI0lH7xNMz4sKNdV8h//usglpsA7UqAetjLTxvX+3BEu1cBjRmRwC/F
ni6GKIxSlDYlG46L2o9gSYFLEQfj6vf16EsPGOqId+2ngyajMSoat+cFiHDxkPt2HA8tlcNBNUng
4XNoLMCkCIrg6NxcUosbynWdRSWpflwBEqW5l0YsOuhjIm8d2L9FZWWnOfNflxyV4S6hn9DeHY3D
wYZxduA2TyKoMDV4xzdd/VJ2ljJwA+KPAwyIFNg8EBwB1g7yvLb52MTaGWnvPOYqcnlOSy4Y+M/N
ccQA2RNzcpsvuO7WUmaf042AQuFrklZf8+m9pCU4IEgmSwlfurN65zThkrsHik049WFA5AUX7jlO
2GNJt6KGFBicC3S11i6Cq7qbnRl4yHahIWNwphtvlK5nakc+IZ4yUe0Jnn/b7J01bhfjB+Yp2H6i
r064PX1T/M9QA/KexXL62O3e9nvG4/q2qyvHfwu6FmcG5KC4sb5gIGoyTF6lUduD9HsrnLB9lAYe
LEM=
=dzWZ
-----END PGP SIGNATURE-----

--dGu90nBEDAHBl9tigPpx7PgOKu13JrPNl--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0302cbf8-25c1-6153-4d5c-a58e164d65d4>