diff options
author | maya <maya@pkgsrc.org> | 2019-08-05 21:16:39 +0000 |
---|---|---|
committer | maya <maya@pkgsrc.org> | 2019-08-05 21:16:39 +0000 |
commit | a4c8127224c7d25717ee9ffca0f22af8a6f271b6 (patch) | |
tree | 15d89b95f44ad631960a9443ed71247cc58ef8be /lang/gcc6-aux | |
parent | b1f9d87e6590fe334a05eff8dd42b8c06ed7bf94 (diff) | |
download | pkgsrc-a4c8127224c7d25717ee9ffca0f22af8a6f271b6.tar.gz |
gcc5-aux, gcc6-aux: patch fixincludes on netbsd.
This is based on an already upstreamed patched that exists in GCC>9.0.
GCC stddef.h relied on the include guards of headers, and those were
changed in netbsd 9.0, so these packages no longer build.
Since we are using a bootstrap GCC, we also need to patch the headers
in the bootstrap fixincludes, patching the package is not sufficient.
Ada part of PR toolchain/54362.
Diffstat (limited to 'lang/gcc6-aux')
-rw-r--r-- | lang/gcc6-aux/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/gcc6-aux/Makefile b/lang/gcc6-aux/Makefile index f2ef448c986..c3cdbed08ed 100644 --- a/lang/gcc6-aux/Makefile +++ b/lang/gcc6-aux/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2018/10/01 12:32:15 ryoon Exp $ +# $NetBSD: Makefile,v 1.4 2019/08/05 21:16:39 maya Exp $ PKGNAME= gcc6-aux-${SNAPSHOT} PKGREVISION= ${MAIN_PR} @@ -219,6 +219,10 @@ post-extract: ${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_)|defined(__NetBSD__)|' {} \; .endif .if defined(STATIC_BUILD) || !empty(PKG_OPTIONS:Mbootstrap) . if ${OPSYS} != SunOS |