pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/gcc-aux gcc-aux: amend fixincludes in the bootstr...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/71a24ce96d9d
branches:  trunk
changeset: 400954:71a24ce96d9d
user:      maya <maya%pkgsrc.org@localhost>
date:      Sun Sep 08 09:24:04 2019 +0000

description:
gcc-aux: amend fixincludes in the bootstrap compiler on NetBSD

Prior to GCC 9, they were exceptionally fragile, and happened to break with
NetBSD 9.x.

diffstat:

 lang/gcc-aux/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 87ba0be93095 -r 71a24ce96d9d lang/gcc-aux/Makefile
--- a/lang/gcc-aux/Makefile     Sun Sep 08 09:15:01 2019 +0000
+++ b/lang/gcc-aux/Makefile     Sun Sep 08 09:24:04 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2019/08/11 13:21:19 wiz Exp $
+# $NetBSD: Makefile,v 1.33 2019/09/08 09:24:04 maya Exp $
 
 PKGNAME=       gcc-aux-${SNAPSHOT}
 PKGREVISION=   4
@@ -238,6 +238,10 @@
        ${PERL5} -pi -e 's|new Long_Integer|new Integer|' \
                ${WRKSRC}/gcc/ada/s-osprim-posix.adb
 .  endif
+       # GCC < 9's fixincludes is broken for NetBSD >= 9.0 (PR pkg/54362)
+       # This affects the bootstrap GCC used, too.
+       # Fixed in https://github.com/gcc-mirror/gcc/commit/c7af124dca795b835d7fda24192b9e4849f1bb08
+       ${FIND} ${WRKDIR} -name stddef.h -exec ${SED} -i -e 's|defined(_ANSI_H_)|1|' {} \;
 .endif
 .if defined(STATIC_BUILD) || !empty(PKG_OPTIONS:Mbootstrap)
 .  if ${OPSYS} != SunOS



Home | Main Index | Thread Index | Old Index