From nobody Sat May 20 14:18:08 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 4QNm5X3DQbz4C7fP; Sat, 20 May 2023 14:18:08 +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 4QNm5X2drdz4JYn; Sat, 20 May 2023 14:18:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684592288; 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=Jesi9vvHQs6CY4ZnTc2yt/qkWI7IsAVfFJhQwrYclv0=; b=uc0cXtHnaSLrvYtID7AkT1e+8B6+VgyJlPqTWpHVPUSDrczHLDiDCNm24d4hKYFkEJ/g21 YG0iXIIzjsBVJvxihhbwCZw1/ksuWNoMPUApLD0/jE6522oa8XXObTthi758xtxE/qswm5 zN3M3dHJb5u3UxVAceU7u4GpvaeV2HCk7WseEZ/cElyEclLeTymNl7n6rBit2Oc7yKJdfH kuF7sW0XCMIAH4I8bXoIcnBqWWBfi3BiprbWU0Dz1x/s0S7BI/XzqPf1TBEMEIZvdq7p6d JQHGMeX8SpVgr/Oypj5eS5R68aSlYXyMWg2Wso/3MM1qE/NnnWD+zOdouyDUrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684592288; 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=Jesi9vvHQs6CY4ZnTc2yt/qkWI7IsAVfFJhQwrYclv0=; b=fuvMq4Y0078+jgbMak3bY746Y51BiOM5R0eedt0OdyT8bnJhxAeqpo62yLSgMCsUU8xisQ hd7aXiunQVwAC97b0bpv3DXKntThtBIUQw/MXE2pz4GIz7o2ssCRpg1MLbu37VgHPBbLB2 ZtFx81XEP5fA4Mx8qRDD3lIh9sRE3DYFXs/+wjF2SleZhEd50cF7oCsSAlVSwaxFCp5BRp aWk3Ae7WuSIZF6M6DCPnDDOdZtne95JRcsLBqApLNr9XRByDEYEH0Gv57X/qG6DGWvt0w+ kV4GE1JSXlDLdZ5rvHHRYU24LenBPfjhjsZR43IBEXMuJorSFn+q54oq7EOyTg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684592288; a=rsa-sha256; cv=none; b=g0o4Nypsl3lc172iPM4PyD5xIiIMUoKKEhm8+qkybWep6kizmMX15vfJsFkYTpFHk/bkgg VjYCuEqMAo3anvz+JapOEe4rQ6IWmXJlLmWY5nx15PwZJtvkVOYCY2xD7Eau2sZw1Sep6W Skt7/B/jWYNBwo63R6iWK5K4S0LhK8kcEJRTYsVDOHcN1hpRIiOBhWbh8Uv9l2CwzXSUxA kTIqYCK5VPfaIzKGxRNYxWcXdR4W0BcxKrMbl5eBchBh7NZDfVt7IpRlUlieRMJy04YVef /DthLh4/7W+sfDgGZGoeykqmiecljwj3FGK7MvQts1GiTArqhS46lt7R1ocHqA== 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 4QNm5X1kKYz1CJ1; Sat, 20 May 2023 14:18:08 +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 34KEI8kf081954; Sat, 20 May 2023 14:18:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34KEI8Ii081953; Sat, 20 May 2023 14:18:08 GMT (envelope-from git) Date: Sat, 20 May 2023 14:18:08 GMT Message-Id: <202305201418.34KEI8Ii081953@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: 779e8ab2600f - main - lang/gcc12-devel: Fix enable init_array patch 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: 779e8ab2600fba5f045d80a1420f9f2278daad62 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by salvadore: URL: https://cgit.FreeBSD.org/ports/commit/?id=779e8ab2600fba5f045d80a1420f9f2278daad62 commit 779e8ab2600fba5f045d80a1420f9f2278daad62 Author: Lorenzo Salvadore AuthorDate: 2023-05-20 00:38:33 +0000 Commit: Lorenzo Salvadore CommitDate: 2023-05-20 14:17:36 +0000 lang/gcc12-devel: Fix enable init_array patch Add an error line that was missing in case _FreeBSD_version < 1000010. Reported by: gnikl@users.sourceforge.net Fixes: 8c2a479977f0 lang/gcc12-devel: Enable support for .init_array and .fini_array --- lang/gcc12-devel/Makefile | 1 + lang/gcc12-devel/files/patch-gcc_configure | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lang/gcc12-devel/Makefile b/lang/gcc12-devel/Makefile index c3ec6f9c9e3a..cfd49e19c9b6 100644 --- a/lang/gcc12-devel/Makefile +++ b/lang/gcc12-devel/Makefile @@ -1,5 +1,6 @@ PORTNAME= gcc PORTVERSION= 12.3.1.s20230512 +PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= GCC/snapshots/${DIST_VERSION} PKGNAMESUFFIX= ${SUFFIX}-devel diff --git a/lang/gcc12-devel/files/patch-gcc_configure b/lang/gcc12-devel/files/patch-gcc_configure index d4e7e8d23e60..cc60593ba6f7 100644 --- a/lang/gcc12-devel/files/patch-gcc_configure +++ b/lang/gcc12-devel/files/patch-gcc_configure @@ -4,9 +4,9 @@ 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.orig 2023-05-11 22:33:34 UTC +++ gcc/configure -@@ -24214,6 +24214,11 @@ EOF +@@ -24214,6 +24214,13 @@ EOF #else # if defined __sun__ && defined __svr4__ /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */ @@ -14,6 +14,8 @@ from __FreeBSD_version == 1000010. +# include +# if __FreeBSD_version >= 1000010 + /* FreeBSD supports .init_array/.fini_array since FreeBSD 10. */ ++# else ++# error The C library not known to support .init_array/.fini_array +# endif # else # error The C library not known to support .init_array/.fini_array