Re: git: 3342d1bc2c76 - main - lang/gcc11-devel: Fix enable init_array patch
- In reply to: Lorenzo Salvadore : "git: 3342d1bc2c76 - main - lang/gcc11-devel: Fix enable init_array patch"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 20 May 2023 00:43:17 UTC
------- Original Message ------- On Saturday, May 20th, 2023 at 12:13 AM, Lorenzo Salvadore <salvadore@FreeBSD.org> wrote: > > > The branch main has been updated by salvadore: > > URL: https://cgit.FreeBSD.org/ports/commit/?id=3342d1bc2c76235682970b13a53360540c854595 > > commit 3342d1bc2c76235682970b13a53360540c854595 > Author: Lorenzo Salvadore salvadore@FreeBSD.org > > AuthorDate: 2023-05-19 08:38:46 +0000 > Commit: Lorenzo Salvadore salvadore@FreeBSD.org > > CommitDate: 2023-05-19 22:12:53 +0000 > > lang/gcc11-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: 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(-) > > 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= gcc > PORTVERSION= 11.3.1.s20230511 > +PORTREVISION= 1 > CATEGORIES= lang > MASTER_SITES= GCC/snapshots/${DIST_VERSION} > PKGNAMESUFFIX= ${SUFFIX}-devel > diff --git a/lang/gcc11-devel/files/patch-gcc_configure b/lang/gcc11-devel/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. > > 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 <sys/param.h> > > +# 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