From nobody Fri Nov 15 09:40:29 2024 X-Original-To: freebsd-ports@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 4XqX7f6ZFFz5cv0P for ; Fri, 15 Nov 2024 09:40:30 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XqX7f5qDBz4K7N; Fri, 15 Nov 2024 09:40:30 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731663630; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+1dPRNDnRb24wO0Ri7H6WfhIiPt6UdSFiyj4hlgm0+M=; b=jYiIrz58/XxKI+lMBUSRMaUQvZ3/AezY+CR8V3Rn9IbLjRSTSpVxFrhyeC5seSYnSN9i5G smzxk0RWuHWDW5C13oOorNr5izf1BRzjf5B2mvsWv8Iy35bKxnixxgaYOunn2l2vnDXU3S JDyuuPq1RBpIJLvmcscN5uuJ3uy2AsbwXFL3ASaOVXXdpKOPmZ/1ENHHtcmygGKMdb/QyI hRrOrtQoqMMfOiFgg/FtssWNc8pHE8pmoCMT60ZB0/4PXRcrUDzOJHSP3qfdqiCsKYtxDG nMjQ5w7+vWr7Id4VW5EkwVBMsOoDR4Uvm3scwsNWCgvqg41fRnT15xpnQk7l2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731663630; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+1dPRNDnRb24wO0Ri7H6WfhIiPt6UdSFiyj4hlgm0+M=; b=RO80e3rk0zj++fjQa/SNosuxUeZJUrRO7X0zrt59IRLQv7COOhjbT08rgOEHj7nLnk9EDs zIcI45Lh059m+vdFo4ujweyLkaNEkaMEvLX2DZYcez1HwCT84AjlFRAkXmc/ZehaedqLsH IPpPrKyZS+la1ojy9QvMzCQULLXWJ0LdHwWNkCVqO7pvE1NBixpoFVqweLKgmgfWRcUXfH jb4ScPef1rsuXVBfTXHw6djwTB7XHN2Oc5UFDPItRGY2BBfiYKSO0biwj7dxR3Vbcd276D UkMDmE1gEkXeKbT/SpazcvEXLazzmlfgEmxOh80KWLiREc0UFxv2OqJm0pG5xw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731663630; a=rsa-sha256; cv=none; b=pN2Pxk94TfFDffPM3mh1prEnxsvtq2+s6fCvSX1cAe2a9R3DcwQv+veEYZbySAxb4xrfXF mFpFtf0TDWX4X/FVu/Of8gET6b6XDY3FOQQmsbBy9qPJswzPNNphJO5tbky7RtXbZVkP0O xUTCrIpI0zEJnCOgwOYaqMpVhelJgbIBFaw3ipWXBeSqCuhHGD0f88KcFeAsBCkVTE0g9H 0u7vbk7j9+TggxQkLtBp+loBLehvPmYmSXq538BBYqSzsJaVUhGXN6Bl18pm5Js4XpWJIV pWyZUa9RiYd31fiNQw43Xa8fjb47OaejV2Va0I1sr6PJ5UiLH2GK1TfkJCDH/Q== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "R10" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4XqX7f4lKRz1NRv; Fri, 15 Nov 2024 09:40:30 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow.home.andric.com [192.168.0.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 538A17531D; Fri, 15 Nov 2024 10:40:29 +0100 (CET) From: Dimitry Andric Message-Id: <01CFFBA8-5244-4207-A107-7F95C2FF0F4F@FreeBSD.org> Content-Type: multipart/mixed; boundary="Apple-Mail=_7B850DD0-EFE7-42F2-A720-7A80DAEC4641" List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6.1.9\)) Subject: Re: security/gnutls: gnutls-3.8.8 requires llvm17 or higher to build Date: Fri, 15 Nov 2024 10:40:29 +0100 In-Reply-To: Cc: "freebsd-ports@FreeBSD.org" To: Tatsuki Makino References: X-Mailer: Apple Mail (2.3731.700.6.1.9) --Apple-Mail=_7B850DD0-EFE7-42F2-A720-7A80DAEC4641 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On 15 Nov 2024, at 04:54, Tatsuki Makino = wrote: >=20 > Hello. >=20 > It seems that it is mandatory to use llvm17 or higher to build gnutls = 3.8.8. > If not, the following error cannot be resolved. Changing -std=3Dc11 is = powerless. >=20 > groups.c:93:2: error: initializer element is not a compile-time = constant > group_x25519, > ^~~~~~~~~~~~ >=20 > If you are still stuck with the old version, make a modification that = uses 17 or higher of clang =F0=9F=A4=A3 When you must use an old version, you could add this as a patch for = groups.c. It could be conditionalized on COMPILER_VERSION < 17. -Dimitry --Apple-Mail=_7B850DD0-EFE7-42F2-A720-7A80DAEC4641 Content-Disposition: attachment; filename=patch-lib_algorithms_groups.c Content-Type: application/octet-stream; x-unix-mode=0644; name="patch-lib_algorithms_groups.c" Content-Transfer-Encoding: 7bit --- lib/algorithms/groups.c.orig +++ lib/algorithms/groups.c @@ -90,7 +90,13 @@ static const gnutls_group_entry_st supported_groups[] .tls_id = 25, .pk = GNUTLS_PK_ECDSA, }, - group_x25519, + { + .name = "X25519", + .id = GNUTLS_GROUP_X25519, + .curve = GNUTLS_ECC_CURVE_X25519, + .tls_id = 29, + .pk = GNUTLS_PK_ECDH_X25519, + }, #ifdef ENABLE_GOST /* draft-smyshlyaev-tls12-gost-suites-06, Section 6 */ { --Apple-Mail=_7B850DD0-EFE7-42F2-A720-7A80DAEC4641--