From nobody Mon May 15 13:32:22 2023 X-Original-To: dev-commits-ports-all@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 4QKgK23tCDz4Bcs4; Mon, 15 May 2023 13:32:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QKgK23R7vz4Tgw; Mon, 15 May 2023 13:32:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684157542; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ruIpq0cP6zBBNWorX53Dwnutp4Maa12G77cfCe0DPEk=; b=ucVn4Jvixa4p6P8/aWr522sCuW8I13158zKg9j3W/WbSzF3NTNc4LRDjqhYABRF83H1nhr 92NCyslHY378h4WLknbu2nI+rzw3MluMxA8qNjZQnT2ENLtSFjHwvITv2pK/G7senjkS2A mBPYA/EZLpJKI0vstK/niB/f17iHNZt/UbTLLz10XY2oFJiQtcL6cAdJCj4Fi3pfdhHfdU kI+wRGl1VJNulyi3MZYU4zdDnM9OFXJq6m8TaT/OYOBEgQhjuJkJjH6bvGFh7zB1UiUCwL Vt+VCV3h//EZN0xvS+XqFai3BggV995iLZFKZ3c8UhpvfxTcNOZMrtfEOOVLLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684157542; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ruIpq0cP6zBBNWorX53Dwnutp4Maa12G77cfCe0DPEk=; b=u3lOZTnaYoqNsTppHS5TD1/r+LdP0ao8jBiewd7udfQsMyvyqNMrmgo+wBhOUbGSJHs4f9 KPb7/fxVQHM+t10np9hKcjOZoPne9BC330icrpj5dXSfsZp6UlXDNV0Wh23U/gnL4SD/Fe Sc86zUUzwUnONiZzn6vK+O5g/jAlqC8PbObs/Mz/ELsNsU5dCMuRZF458LOjm2UkYqYk+p 0iGUJgmsk2zfQz9HUsdGJLEGUx5BRiQczN93Lb5OASrpT7fz4nqJYfjPW3cZGvAuSZvx6C sTNupknyjn0/U5Pd+s3aBt1QSWmBAKS3w6mA4IQHMD3P57FDBit7pw3SBFJKQQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684157542; a=rsa-sha256; cv=none; b=C0j4Gurb/U04LfLo9rn2Pp+cV+0+Avjoxfw0xdnAIeRqmshkMGPab+EIP2G5Q+rwuEJ90L D+ni2Nu6x/83LsWJfHyw6Ox+1V+oPPGgj6m/eXdngMkrG1G17D7XiiZUEO3R9mztwtexq8 8/yBB1sZMA76oklkqD1tv/t9sHZwCYdKu+qMs66g6FO6gDVgkQpkY9SMnmHCdCEJO3dhMM jUoMg408k+mLZDb34cSa5kNxBIhzK9bPiTPldFzghsVDPhbn/kDPL55gW6b++d7Bhp0C7R 5pbVn1qfOx2HvEQHRjVAqLY6zcoCnt5zWYjWvcitXov+z4n8chJCQIQmZLjOUQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QKgK22WF5zhxR; Mon, 15 May 2023 13:32:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 34FDWM2W056320; Mon, 15 May 2023 13:32:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34FDWMmS056319; Mon, 15 May 2023 13:32:22 GMT (envelope-from git) Date: Mon, 15 May 2023 13:32:22 GMT Message-Id: <202305151332.34FDWMmS056319@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Lorenzo Salvadore Subject: git: 8a1885234ce7 - main - lang/gcc14-devel: Enable support for .init_array and .fini_array List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: salvadore X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8a1885234ce78307fcc224c6698f8fc4628a8a8c Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by salvadore: URL: https://cgit.FreeBSD.org/ports/commit/?id=8a1885234ce78307fcc224c6698f8fc4628a8a8c commit 8a1885234ce78307fcc224c6698f8fc4628a8a8c Author: Lorenzo Salvadore AuthorDate: 2023-05-08 07:24:42 +0000 Commit: Lorenzo Salvadore CommitDate: 2023-05-15 13:32:08 +0000 lang/gcc14-devel: Enable support for .init_array and .fini_array Enable support for .init_array and .fini_array, which FreeBSD supports since commit 83aa9cc00c2d83d05a0efe7a1496d8aab4a153bb in the src repository. There __FreeBSD_version is 1000009, so we start enabling the support from __FreeBSD_version == 1000010. See also review https://reviews.freebsd.org/D39968 for lang/gcc11-devel. Reported by: Dan McGregor --- lang/gcc14-devel/Makefile | 1 + lang/gcc14-devel/files/patch-gcc_configure | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/lang/gcc14-devel/Makefile b/lang/gcc14-devel/Makefile index 42bb12f52332..276cbae91789 100644 --- a/lang/gcc14-devel/Makefile +++ b/lang/gcc14-devel/Makefile @@ -1,5 +1,6 @@ PORTNAME= gcc PORTVERSION= 14.0.0.s20230507 +PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= GCC/snapshots/${DIST_VERSION} PKGNAMESUFFIX= ${SUFFIX}-devel diff --git a/lang/gcc14-devel/files/patch-gcc_configure b/lang/gcc14-devel/files/patch-gcc_configure new file mode 100644 index 000000000000..d4e7e8d23e60 --- /dev/null +++ b/lang/gcc14-devel/files/patch-gcc_configure @@ -0,0 +1,20 @@ +Enable support for .init_array and .fini_array, which FreeBSD supports +since commit 83aa9cc00c2d83d05a0efe7a1496d8aab4a153bb in the src +repository. + +There __FreeBSD_version is 1000009, so we start enabling the support +from __FreeBSD_version == 1000010. +--- gcc/configure.orig 2023-05-04 17:36:54 UTC ++++ gcc/configure +@@ -24214,6 +24214,11 @@ EOF + #else + # if defined __sun__ && defined __svr4__ + /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */ ++# elif defined __FreeBSD__ ++# include ++# if __FreeBSD_version >= 1000010 ++ /* FreeBSD supports .init_array/.fini_array since FreeBSD 10. */ ++# endif + # else + # error The C library not known to support .init_array/.fini_array + # endif