From nobody Tue Aug 29 07:18:53 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RZf1Q1cyLz4rT03 for ; Tue, 29 Aug 2023 07:19:06 +0000 (UTC) (envelope-from vanilla@fatpipi.com) Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RZf1P3mtVz4JQb for ; Tue, 29 Aug 2023 07:19:05 +0000 (UTC) (envelope-from vanilla@fatpipi.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=fatpipi-com.20221208.gappssmtp.com header.s=20221208 header.b="t4/8Al/g"; spf=none (mx1.freebsd.org: domain of vanilla@fatpipi.com has no SPF policy when checking 2607:f8b0:4864:20::b32) smtp.mailfrom=vanilla@fatpipi.com; dmarc=none Received: by mail-yb1-xb32.google.com with SMTP id 3f1490d57ef6-d743a5fe05aso3837939276.2 for ; Tue, 29 Aug 2023 00:19:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fatpipi-com.20221208.gappssmtp.com; s=20221208; t=1693293544; x=1693898344; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=h5YayrhxmT1G0JBVopb2VSgbQ4d+4yrn8ahtG/egiiU=; b=t4/8Al/gbX/wWcZiDJh5fFc6TaHeV36Gak+xuM/6vfhbE2SHAhHm1A8jvCxNNEV8LS HgKUTXi5kkqUqtkt+HMFfFomYvz+C0S2/p3cgSvL4/6+kXQJoi6Iu0iKTSJjiCVXdM+d GzYj7+dx+nlo4J/cJiCTtCd1XNCNgIXbp6p9/kOCusHlALdnZFDEU+so7R1aEpeli4Wm RS3OzF0NQL/Fo/Y1kdhFdFUQj7fp4nSrMIn8XT1N/MGcimNDI5Ov5F6rCT0ocwWzQUmi sscg8Qnt1bgLBgQwDnT6L3BclGDqSTWjpB8bw6u9rKB2+wEsybUT09BL1dqZz9teUlMk 5DwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693293544; x=1693898344; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=h5YayrhxmT1G0JBVopb2VSgbQ4d+4yrn8ahtG/egiiU=; b=kZ7bSV7NQIleAPje0OGeedSkCkJqRDJk1SYjUX0BERoggxK9wFE5bbdIw9eWbRjxQN /w3DpyEv/sHwSEYvfLfczhT/4BHhsmXAUJoP0jEEcXMFg5ODULyGjXkIsnGqqAlrwO4v 5EbbpcMrigcv96xDkw17Y0JFOyN0G8cfFnzHDBtePErjiZrWeZifcHypr7YjbyBOT1G9 CEcXmmUU2CFzVfzsXXzYIeBWcqCIXD5oDZvzcANOpqVJxjfjaamfX4oNnbd4+ZqfeIZI zxvwgxyIZbhzigRiNuieo/NFgumMxS/LBJA+fnM/NVhYHeQef+H58qrTDnaExabhsjFn nKkA== X-Gm-Message-State: AOJu0Yy5e+pB6rAZWrbtmQw17pgSCeyQMygjUdrlzR/JDnMzXgHtI0pE 6u+EhuvwJHOvrschOtcWUbWrlHp7t7ldQrEShqehy+Kqm+vsi2DRk0Y= X-Google-Smtp-Source: AGHT+IFlRgPi2Ie8SSK0nhH22Kk+N0DBAmj2l65ANYonYRZVY02lZJoHzzHeDqirOrxag62iYmOnY2TbvOwCEXfepTY= X-Received: by 2002:a05:6902:1023:b0:d7b:3298:8e12 with SMTP id x3-20020a056902102300b00d7b32988e12mr4420457ybt.7.1693293544622; Tue, 29 Aug 2023 00:19:04 -0700 (PDT) List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 References: <202307261747.36QHlGhN053216@gitrepo.freebsd.org> In-Reply-To: <202307261747.36QHlGhN053216@gitrepo.freebsd.org> Reply-To: v@fatpipi.com From: Vanilla Hsu Date: Tue, 29 Aug 2023 15:18:53 +0800 Message-ID: Subject: Re: git: 364f59940199 - main - net/lavinmq: Fix build with openssl3 To: Muhammad Moinur Rahman Cc: ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org Content-Type: multipart/alternative; boundary="0000000000003a5fa306040aa0ba" X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[fatpipi-com.20221208.gappssmtp.com:s=20221208]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::b32:from]; DKIM_TRACE(0.00)[fatpipi-com.20221208.gappssmtp.com:+]; HAS_REPLYTO(0.00)[v@fatpipi.com]; RCVD_COUNT_ONE(0.00)[1]; MLMMJ_DEST(0.00)[dev-commits-ports-main@freebsd.org]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_NA(0.00)[no SPF record]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[vanilla]; ARC_NA(0.00)[]; DMARC_NA(0.00)[fatpipi.com]; RCPT_COUNT_THREE(0.00)[4]; PREVIOUSLY_DELIVERED(0.00)[dev-commits-ports-main@freebsd.org]; TO_DN_SOME(0.00)[]; REPLYTO_DOM_EQ_FROM_DOM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4RZf1P3mtVz4JQb --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 =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 > AuthorDate: 2023-07-26 17:18:33 +0000 > Commit: Muhammad Moinur Rahman > 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 > + > +.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
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=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
The branch main has been updated = by bofh:

URL: https://cgi= t.FreeBSD.org/ports/commit/?id=3D364f59940199e45a608ea2c53363d08243e3aa93

commit 364f59940199e45a608ea2c53363d08243e3aa93
Author:=C2=A0 =C2=A0 =C2=A0Muhammad Moinur Rahman <bofh@FreeBSD.org><= br> AuthorDate: 2023-07-26 17:18:33 +0000
Commit:=C2=A0 =C2=A0 =C2=A0Muhammad Moinur Rahman <bofh@FreeBSD.org><= br> CommitDate: 2023-07-26 17:47:05 +0000

=C2=A0 =C2=A0 net/lavinmq: Fix build with openssl3

=C2=A0 =C2=A0 Approved by:=C2=A0 =C2=A0 portmgr (blanket)
=C2=A0 =C2=A0 Sponsored by:=C2=A0 =C2=A0The FreeBSD Foundation
---
=C2=A0net/lavinmq/Makefile | 8 ++++++--
=C2=A01 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=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
https://www.lavin= mq.com/

=C2=A0LICENSE=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0APACHE20

-BROKEN_FreeBSD_14=3D=C2=A0 =C2=A0 =C2=A0Incompatible with OpenSSL 3.0 in 1= 4-CURRENT
-
=C2=A0BUILD_DEPENDS=3D crystal:lang/crystal \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 help2man:misc/help2= man \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 shards:devel/shards=
@@ -40,6 +38,12 @@ OPTIONS_DEFINE=3D=C2=A0 =C2=A0 =C2=A0 DOCS
=C2=A0SHARDS_ENV=3D=C2=A0 =C2=A0 --time --verbose --production --release --= no-color --stats \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --static

+.include <bsd.port.options.mk>
+
+.if ( ${OPSYS} =3D=3D FreeBSD && ${OSVERSION} >=3D 1400092 &= ;& ${SSL_DEFAULT} =3D=3D base ) || ${SSL_DEFAULT:Mopenssl3*}
+CXXFLAGS+=3D=C2=A0 =C2=A0 =C2=A0-DOPENSSL_API_COMPAT=3D0x30000000L
+.endif
+
=C2=A0post-extract:
=C2=A0# force shards to use local paths, not git repos, for dependencies =C2=A0 =C2=A0 =C2=A0 =C2=A0 @${RM} ${WRKSRC}/shard.lock
--0000000000003a5fa306040aa0ba--