From nobody Sat May 20 00:43:17 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 4QNQ1c3jByz4CZ9K; Sat, 20 May 2023 00:43:32 +0000 (UTC) (envelope-from developer@lorenzosalvadore.it) Received: from mail-40136.proton.ch (mail-40136.proton.ch [185.70.40.136]) (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 "protonmail.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QNQ1b49z4z42LN; Sat, 20 May 2023 00:43:31 +0000 (UTC) (envelope-from developer@lorenzosalvadore.it) Authentication-Results: mx1.freebsd.org; none Date: Sat, 20 May 2023 00:43:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lorenzosalvadore.it; s=protonmail2; t=1684543408; x=1684802608; bh=/g7hk/pzBDvoT6rGrONlU4iUnjxHKvjfQtJpeEph7ss=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=CjWCCbqUf20XhtbgAz7htcH/RZwHXlXl3Ffl5K86SktG4AI2P+1l1j7bewBapZ49b 4koenM1+p7vfD6JYMno4UFd05w23aKqkmUYeZvcCw1pXAMBLtrf5LIDIoIgydQGjWZ 0ISM+ECNWhBSNc4qJbiDnBsz/iG6QQuoxsbPxrkaQod3rV+m1YVbgu0OtzW8HBPTTV xN/eAXR5LmeFBmVOR/MWr/dxHVT6Vi4Jvo+J1BKXqX0+peH9vu8TrZk6Tx/5ArIHoG /4Lvbb/4a1nLXug+uBpA0eHonDm2/AnRuP/V9RXmcg9eXVTbwuW9EXQWkXn0730bqD mUPe63nMayNKg== To: Lorenzo Salvadore From: Lorenzo Salvadore Cc: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: Re: git: 3342d1bc2c76 - main - lang/gcc11-devel: Fix enable init_array patch Message-ID: In-Reply-To: <202305192213.34JMDBUr099720@gitrepo.freebsd.org> References: <202305192213.34JMDBUr099720@gitrepo.freebsd.org> Feedback-ID: 53711648:user:proton 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: quoted-printable X-Rspamd-Queue-Id: 4QNQ1b49z4z42LN X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:62371, ipnet:185.70.40.0/24, country:CH] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N ------- Original Message ------- On Saturday, May 20th, 2023 at 12:13 AM, Lorenzo Salvadore wrote: >=20 >=20 > The branch main has been updated by salvadore: >=20 > URL: https://cgit.FreeBSD.org/ports/commit/?id=3D3342d1bc2c76235682970b13= a53360540c854595 >=20 > commit 3342d1bc2c76235682970b13a53360540c854595 > Author: Lorenzo Salvadore salvadore@FreeBSD.org >=20 > AuthorDate: 2023-05-19 08:38:46 +0000 > Commit: Lorenzo Salvadore salvadore@FreeBSD.org >=20 > CommitDate: 2023-05-19 22:12:53 +0000 >=20 > lang/gcc11-devel: Fix enable init_array patch >=20 > Add an error line that was missing in case _FreeBSD_version < 1000010. >=20 > Reported by: gnikl@users.sourceforge.net > Fixes: db8e43de4eef lang/gcc11-devel: Enable support for .init_array and = .fini_array Hash is wrong. Correct hash is 09cfc2a3caa4093efcd3cae6bb7ee566d9e1a930. > --- > lang/gcc11-devel/Makefile | 1 + > lang/gcc11-devel/files/patch-gcc_configure | 6 ++++-- > 2 files changed, 5 insertions(+), 2 deletions(-) >=20 > diff --git a/lang/gcc11-devel/Makefile b/lang/gcc11-devel/Makefile > index 0657407124cc..24c0fd03acb6 100644 > --- a/lang/gcc11-devel/Makefile > +++ b/lang/gcc11-devel/Makefile > @@ -1,5 +1,6 @@ > PORTNAME=3D gcc > PORTVERSION=3D 11.3.1.s20230511 > +PORTREVISION=3D 1 > CATEGORIES=3D lang > MASTER_SITES=3D GCC/snapshots/${DIST_VERSION} > PKGNAMESUFFIX=3D ${SUFFIX}-devel > diff --git a/lang/gcc11-devel/files/patch-gcc_configure b/lang/gcc11-deve= l/files/patch-gcc_configure > index d4e7e8d23e60..cc60593ba6f7 100644 > --- a/lang/gcc11-devel/files/patch-gcc_configure > +++ b/lang/gcc11-devel/files/patch-gcc_configure > @@ -4,9 +4,9 @@ repository. >=20 > There __FreeBSD_version is 1000009, so we start enabling the support > from __FreeBSD_version =3D=3D 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 =3D=3D 1000010. > +# include >=20 > +# if __FreeBSD_version >=3D 1000010 >=20 > + /* 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