From owner-freebsd-ports@freebsd.org Thu Mar 11 14:39:09 2021 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 81DB5578AA9 for ; Thu, 11 Mar 2021 14:39:09 +0000 (UTC) (envelope-from jankyj@unfs.us) Received: from stig.purplehat.org (stig.purplehat.org [50.243.134.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DxBR04ygGz4tG4 for ; Thu, 11 Mar 2021 14:39:08 +0000 (UTC) (envelope-from jankyj@unfs.us) Received: from localhost (bill.goatse.unfs.us [50.243.134.106]) by stig.purplehat.org (Postfix) with ESMTP id CFC9C947EC for ; Thu, 11 Mar 2021 07:39:05 -0700 (MST) DKIM-Filter: OpenDKIM Filter v2.10.3 stig.purplehat.org CFC9C947EC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unfs.us; s=mail; t=1615473545; bh=tNsFHIjG2FqQYIZdZnaD0H2t55MGqjiWqO2lHgKeoYM=; h=Subject:To:References:From:Date:In-Reply-To:From; b=MMGkH556kfXLxVqzUA+AcaSNH1Ut2BZKGVNr+3UGAIqgInpK3CvjDwCPHeFR/GvL1 jUA6KenHFuOYm9bQLhxZwSJq8jwS2xLzlDfNi68Opy0ELpvPfRZwP1UfwMFPKLMt7R DsB8qAfqhkj2ry34cjEXea2w+L0e/OrrSE3a+rYk= Received: from stig.purplehat.org ([50.243.134.106]) by localhost (stig.purplehat.org [50.243.134.106]) (maiad, port 10024) with ESMTP id 59359-06 for ; Thu, 11 Mar 2021 07:39:04 -0700 (MST) Received: from tools.purplehat.org (tools.purplehat.org [172.28.35.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: jankyj@unfs.us) by stig.purplehat.org (Postfix) with ESMTPSA id D18E6947EB for ; Thu, 11 Mar 2021 07:39:04 -0700 (MST) DKIM-Filter: OpenDKIM Filter v2.10.3 stig.purplehat.org D18E6947EB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unfs.us; s=mail; t=1615473544; bh=tNsFHIjG2FqQYIZdZnaD0H2t55MGqjiWqO2lHgKeoYM=; h=Subject:To:References:From:Date:In-Reply-To:From; b=mEe9/zjvDXED+zrksYXI2AMpA49AHTkI9gbiwjkhnJ3swcLhUV/W3yPIGEXZNt7d5 xhTklLPu0hqkOuBHrpsTRlwEjv7SHtDGhU8rI4WWcLFnUMhciDO5J8198N2EoxTZLg dh5v6FT1lgbiaIxAcuH//lucb8oeQ/dLjTJzQpO8= Subject: Re: MariaDB Options for Port.,MariaDB Options for Port. To: freebsd-ports@freebsd.org References: <65bf568d-01ec-4a1d-ccfc-a80202cb7b54@unfs.us> <20210311.103029.1434010123825381630.yasu@utahime.org> From: "Janky Jay, III" Message-ID: <0302cbf8-25c1-6153-4d5c-a58e164d65d4@unfs.us> Date: Thu, 11 Mar 2021 07:39:04 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210311.103029.1434010123825381630.yasu@utahime.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="dGu90nBEDAHBl9tigPpx7PgOKu13JrPNl" X-Virus-Scanned: Maia Mailguard X-Rspamd-Queue-Id: 4DxBR04ygGz4tG4 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=unfs.us header.s=mail header.b=MMGkH556; dkim=pass header.d=unfs.us header.s=mail header.b=mEe9/zjv; dmarc=pass (policy=none) header.from=unfs.us; spf=pass (mx1.freebsd.org: domain of jankyj@unfs.us designates 50.243.134.106 as permitted sender) smtp.mailfrom=jankyj@unfs.us X-Spamd-Result: default: False [-6.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; RBL_SENDERSCORE_FAIL(0.00)[50.243.134.106:server fail]; R_SPF_ALLOW(-0.20)[+a]; HAS_ATTACHMENT(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[unfs.us:+]; DMARC_POLICY_ALLOW(-0.50)[unfs.us,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; SIGNED_PGP(-2.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[50.243.134.106:from]; ASN(0.00)[asn:7922, ipnet:50.128.0.0/9, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[unfs.us:s=mail]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[50.243.134.106:from:127.0.2.255]; MAILMAN_DEST(0.00)[freebsd-ports] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2021 14:39:09 -0000 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" 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" > 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--