Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Aug 2023 15:18:53 +0800
From:      Vanilla Hsu <vanilla@fatpipi.com>
To:        Muhammad Moinur Rahman <bofh@freebsd.org>
Cc:        ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org,  dev-commits-ports-main@freebsd.org
Subject:   Re: git: 364f59940199 - main - net/lavinmq: Fix build with openssl3
Message-ID:  <CAB_qb69yUZSOoU203B4_=RpwOdzoAWwpHcSsLR7bT2HhwK9Vhg@mail.gmail.com>
In-Reply-To: <202307261747.36QHlGhN053216@gitrepo.freebsd.org>
References:  <202307261747.36QHlGhN053216@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000003a5fa306040aa0ba
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I think the root cause should be lang/crystal, not lavinmq.
--
with extra patches, crystal only build with openssl 1.1, not compatible
with openssl3.

Muhammad Moinur Rahman <bofh@freebsd.org> =E6=96=BC 2023=E5=B9=B47=E6=9C=88=
27=E6=97=A5 =E9=80=B1=E5=9B=9B =E4=B8=8A=E5=8D=881:47=E5=AF=AB=E9=81=93=EF=
=BC=9A

> The branch main has been updated by bofh:
>
> URL:
> https://cgit.FreeBSD.org/ports/commit/?id=3D364f59940199e45a608ea2c53363d=
08243e3aa93
>
> commit 364f59940199e45a608ea2c53363d08243e3aa93
> Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
> AuthorDate: 2023-07-26 17:18:33 +0000
> Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
> CommitDate: 2023-07-26 17:47:05 +0000
>
>     net/lavinmq: Fix build with openssl3
>
>     Approved by:    portmgr (blanket)
>     Sponsored by:   The FreeBSD Foundation
> ---
>  net/lavinmq/Makefile | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/net/lavinmq/Makefile b/net/lavinmq/Makefile
> index 5ae75f50cfc0..bf6c119b8173 100644
> --- a/net/lavinmq/Makefile
> +++ b/net/lavinmq/Makefile
> @@ -11,8 +11,6 @@ WWW=3D          https://www.lavinmq.com/
>
>  LICENSE=3D       APACHE20
>
> -BROKEN_FreeBSD_14=3D     Incompatible with OpenSSL 3.0 in 14-CURRENT
> -
>  BUILD_DEPENDS=3D crystal:lang/crystal \
>                 help2man:misc/help2man \
>                 shards:devel/shards
> @@ -40,6 +38,12 @@ OPTIONS_DEFINE=3D      DOCS
>  SHARDS_ENV=3D    --time --verbose --production --release --no-color --st=
ats
> \
>                 --static
>
> +.include <bsd.port.options.mk>
> +
> +.if ( ${OPSYS} =3D=3D FreeBSD && ${OSVERSION} >=3D 1400092 && ${SSL_DEFA=
ULT} =3D=3D
> base ) || ${SSL_DEFAULT:Mopenssl3*}
> +CXXFLAGS+=3D     -DOPENSSL_API_COMPAT=3D0x30000000L
> +.endif
> +
>  post-extract:
>  # force shards to use local paths, not git repos, for dependencies
>         @${RM} ${WRKSRC}/shard.lock
>

--0000000000003a5fa306040aa0ba
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I think the root cause should be lang/crystal, not lavinmq=
.<div>--</div><div>with extra patches, crystal only build with openssl 1.1,=
 not compatible with openssl3.</div></div><br><div class=3D"gmail_quote"><d=
iv dir=3D"ltr" class=3D"gmail_attr">Muhammad Moinur Rahman &lt;<a href=3D"m=
ailto:bofh@freebsd.org">bofh@freebsd.org</a>&gt; =E6=96=BC 2023=E5=B9=B47=
=E6=9C=8827=E6=97=A5 =E9=80=B1=E5=9B=9B =E4=B8=8A=E5=8D=881:47=E5=AF=AB=E9=
=81=93=EF=BC=9A<br></div><blockquote class=3D"gmail_quote" style=3D"margin:=
0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left=
-color:rgb(204,204,204);padding-left:1ex">The branch main has been updated =
by bofh:<br>
<br>
URL: <a href=3D"https://cgit.FreeBSD.org/ports/commit/?id=3D364f59940199e45=
a608ea2c53363d08243e3aa93" rel=3D"noreferrer" target=3D"_blank">https://cgi=
t.FreeBSD.org/ports/commit/?id=3D364f59940199e45a608ea2c53363d08243e3aa93</=
a><br>
<br>
commit 364f59940199e45a608ea2c53363d08243e3aa93<br>
Author:=C2=A0 =C2=A0 =C2=A0Muhammad Moinur Rahman &lt;bofh@FreeBSD.org&gt;<=
br>
AuthorDate: 2023-07-26 17:18:33 +0000<br>
Commit:=C2=A0 =C2=A0 =C2=A0Muhammad Moinur Rahman &lt;bofh@FreeBSD.org&gt;<=
br>
CommitDate: 2023-07-26 17:47:05 +0000<br>
<br>
=C2=A0 =C2=A0 net/lavinmq: Fix build with openssl3<br>
<br>
=C2=A0 =C2=A0 Approved by:=C2=A0 =C2=A0 portmgr (blanket)<br>
=C2=A0 =C2=A0 Sponsored by:=C2=A0 =C2=A0The FreeBSD Foundation<br>
---<br>
=C2=A0net/lavinmq/Makefile | 8 ++++++--<br>
=C2=A01 file changed, 6 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/net/lavinmq/Makefile b/net/lavinmq/Makefile<br>
index 5ae75f50cfc0..bf6c119b8173 100644<br>
--- a/net/lavinmq/Makefile<br>
+++ b/net/lavinmq/Makefile<br>
@@ -11,8 +11,6 @@ WWW=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <a href=3D"https=
://www.lavinmq.com/" rel=3D"noreferrer" target=3D"_blank">https://www.lavin=
mq.com/</a><br>
<br>
=C2=A0LICENSE=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0APACHE20<br>
<br>
-BROKEN_FreeBSD_14=3D=C2=A0 =C2=A0 =C2=A0Incompatible with OpenSSL 3.0 in 1=
4-CURRENT<br>
-<br>
=C2=A0BUILD_DEPENDS=3D crystal:lang/crystal \<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 help2man:misc/help2=
man \<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 shards:devel/shards=
<br>
@@ -40,6 +38,12 @@ OPTIONS_DEFINE=3D=C2=A0 =C2=A0 =C2=A0 DOCS<br>
=C2=A0SHARDS_ENV=3D=C2=A0 =C2=A0 --time --verbose --production --release --=
no-color --stats \<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --static<br>
<br>
+.include &lt;<a href=3D"http://bsd.port.options.mk" rel=3D"noreferrer" tar=
get=3D"_blank">bsd.port.options.mk</a>&gt;<br>
+<br>
+.if ( ${OPSYS} =3D=3D FreeBSD &amp;&amp; ${OSVERSION} &gt;=3D 1400092 &amp=
;&amp; ${SSL_DEFAULT} =3D=3D base ) || ${SSL_DEFAULT:Mopenssl3*}<br>
+CXXFLAGS+=3D=C2=A0 =C2=A0 =C2=A0-DOPENSSL_API_COMPAT=3D0x30000000L<br>
+.endif<br>
+<br>
=C2=A0post-extract:<br>
=C2=A0# force shards to use local paths, not git repos, for dependencies<br=
>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 @${RM} ${WRKSRC}/shard.lock<br>
</blockquote></div>

--0000000000003a5fa306040aa0ba--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAB_qb69yUZSOoU203B4_=RpwOdzoAWwpHcSsLR7bT2HhwK9Vhg>