From nobody Sun May 14 13:31:10 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 4QK3L71ky5z4Bj3j; Sun, 14 May 2023 13:31:11 +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 4QK3L71KJrz48ll; Sun, 14 May 2023 13:31:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684071071; 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=fNGQ/Rbtefi10TMsUvxJ8oPWbXUNa3sqrSbKiC8cvvI=; b=nSwa2fF6wv5Shx1TG+TtxAPc/oP/fRgd8ON/5ckD5OxOTyBy8Igad622XER5EWXQI47Fbt 7cNl+p6PcK01yIQb1HZcjgXcqgbsWWEs9lEtyy0u7KFGeU2lp8VR3jxAEisvShXotouwwh A2WBn/XD33o/njCPIRMaaeYrhN2+pbko9b/cDwRcFk/vKUMg39xb9KnmKvl1STgMz3lXbj S+sFAsW6ueFyhQIMji+EOtdhCRii92IfnDFJQlR1VVnbRSxBEIaSEf3hToIXdT/KPYzxsO TgDdZAwh4h+ahPqr1fwonU3zOpQ/Q1ATfiT4GCe0DoHkrxOqq+vEba2TuFMJGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684071071; 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=fNGQ/Rbtefi10TMsUvxJ8oPWbXUNa3sqrSbKiC8cvvI=; b=IeVYRRQVSoJEqJFo0Rqsel3+LItST00j8plAlqEIF/5HxF+5aaQap/xc+UK5uL2M8ssEs9 rtcKSJzzaBOWis4NFARHZ4/VgRNF4j/6HxAxxx/qkF3MeOFSH5MXTUBqvM99saMtzkK9Pm CmxJSxrTFo7M9mpAEz/nHuEcHwEHK6ZSjFVmHh/niZwZkAMKARezW8m8rBrBucFJ0ecQEK bTDrkRsL0XDiTUUcJKDlK0DVkARmzrfiidRE/outRrr670/ZaOSzFRmI6IjPbZ8rRqrd3G g/aOohrNKs9UZpC+tDXf44d0gipHJa2Dk9wt1p2/hp1niBJaLCopfwKLJuFU0g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684071071; a=rsa-sha256; cv=none; b=ZJDAQVHNqitQ5mRf2FrEtarOOc/Bf71a09nM9lReBvd70lIKGpzQA1qxkJ+gPqZMt4U/Es uyJAp4DiFP+sDeoKS5thvwhajBAxcw8tI85THUusMteVBiUu9/S07IwEGUxGT9amnl4OrX Gz22xpE1evoWiW4lJXL9JE4IMUXwo8MRQWQ4mKzkm3FGXFPOT10mE3y1Tm5Zqg3tBqrHPP cEu8p1RPikRqqeBTxgKjqqUnzBNbzQD2Qa9f8VAxfRgpodmzkivT5DPQKCME9Lx8BQ7Ncj e+JmAtlSh1danDFxT3FYj0FLj+2ojwpwiEBpDZV5Rz4xFTLC3I0Y+ERO24jxuw== 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 4QK3L70PQVz1144; Sun, 14 May 2023 13:31:11 +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 34EDVA1M087019; Sun, 14 May 2023 13:31:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34EDVAsU087018; Sun, 14 May 2023 13:31:10 GMT (envelope-from git) Date: Sun, 14 May 2023 13:31:10 GMT Message-Id: <202305141331.34EDVAsU087018@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: 503f89cfa5ce - main - lang/gcc13-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: 503f89cfa5ce253f612f9a7cc722110f7d84261e Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by salvadore: URL: https://cgit.FreeBSD.org/ports/commit/?id=503f89cfa5ce253f612f9a7cc722110f7d84261e commit 503f89cfa5ce253f612f9a7cc722110f7d84261e Author: Lorenzo Salvadore AuthorDate: 2023-05-07 16:34:26 +0000 Commit: Lorenzo Salvadore CommitDate: 2023-05-14 13:30:18 +0000 lang/gcc13-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/gcc13-devel/Makefile | 1 + lang/gcc13-devel/files/patch-gcc_configure | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/lang/gcc13-devel/Makefile b/lang/gcc13-devel/Makefile index 29fb92a90e4e..4b304806e749 100644 --- a/lang/gcc13-devel/Makefile +++ b/lang/gcc13-devel/Makefile @@ -1,5 +1,6 @@ PORTNAME= gcc PORTVERSION= 13.1.1.s20230506 +PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= GCC/snapshots/${DIST_VERSION} PKGNAMESUFFIX= ${SUFFIX}-devel diff --git a/lang/gcc13-devel/files/patch-gcc_configure b/lang/gcc13-devel/files/patch-gcc_configure new file mode 100644 index 000000000000..d4e7e8d23e60 --- /dev/null +++ b/lang/gcc13-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