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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] 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> 於 2023年7月27日 週四 上午1:47寫道: > The branch main has been updated by bofh: > > URL: > https://cgit.FreeBSD.org/ports/commit/?id=364f59940199e45a608ea2c53363d08243e3aa93 > > 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= https://www.lavinmq.com/ > > LICENSE= APACHE20 > > -BROKEN_FreeBSD_14= Incompatible with OpenSSL 3.0 in 14-CURRENT > - > BUILD_DEPENDS= crystal:lang/crystal \ > help2man:misc/help2man \ > shards:devel/shards > @@ -40,6 +38,12 @@ OPTIONS_DEFINE= DOCS > SHARDS_ENV= --time --verbose --production --release --no-color --stats > \ > --static > > +.include <bsd.port.options.mk> > + > +.if ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && ${SSL_DEFAULT} == > base ) || ${SSL_DEFAULT:Mopenssl3*} > +CXXFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L > +.endif > + > post-extract: > # force shards to use local paths, not git repos, for dependencies > @${RM} ${WRKSRC}/shard.lock > [-- Attachment #2 --] <div dir="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="gmail_quote"><div dir="ltr" class="gmail_attr">Muhammad Moinur Rahman <<a href="mailto:bofh@freebsd.org">bofh@freebsd.org</a>> 於 2023年7月27日 週四 上午1:47寫道:<br></div><blockquote class="gmail_quote" style="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="https://cgit.FreeBSD.org/ports/commit/?id=364f59940199e45a608ea2c53363d08243e3aa93" rel="noreferrer" target="_blank">https://cgit.FreeBSD.org/ports/commit/?id=364f59940199e45a608ea2c53363d08243e3aa93</a><br> <br> commit 364f59940199e45a608ea2c53363d08243e3aa93<br> Author: Muhammad Moinur Rahman <bofh@FreeBSD.org><br> AuthorDate: 2023-07-26 17:18:33 +0000<br> Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org><br> CommitDate: 2023-07-26 17:47:05 +0000<br> <br> net/lavinmq: Fix build with openssl3<br> <br> Approved by: portmgr (blanket)<br> Sponsored by: The FreeBSD Foundation<br> ---<br> net/lavinmq/Makefile | 8 ++++++--<br> 1 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= <a href="https://www.lavinmq.com/" rel="noreferrer" target="_blank">https://www.lavinmq.com/</a><br> <br> LICENSE= APACHE20<br> <br> -BROKEN_FreeBSD_14= Incompatible with OpenSSL 3.0 in 14-CURRENT<br> -<br> BUILD_DEPENDS= crystal:lang/crystal \<br> help2man:misc/help2man \<br> shards:devel/shards<br> @@ -40,6 +38,12 @@ OPTIONS_DEFINE= DOCS<br> SHARDS_ENV= --time --verbose --production --release --no-color --stats \<br> --static<br> <br> +.include <<a href="http://bsd.port.options.mk" rel="noreferrer" target="_blank">bsd.port.options.mk</a>><br> +<br> +.if ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl3*}<br> +CXXFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L<br> +.endif<br> +<br> post-extract:<br> # force shards to use local paths, not git repos, for dependencies<br> @${RM} ${WRKSRC}/shard.lock<br> </blockquote></div>home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAB_qb69yUZSOoU203B4_=RpwOdzoAWwpHcSsLR7bT2HhwK9Vhg>
