Wed Mar 18 19:50:52 2020 UTC ()
lang/gcc7: exclude some contrib files from the portability check


(rillig)
diff -r1.28 -r1.29 pkgsrc/lang/gcc7/Makefile

cvs diff -r1.28 -r1.29 pkgsrc/lang/gcc7/Makefile (expand / switch to unified diff)

--- pkgsrc/lang/gcc7/Makefile 2020/03/13 15:00:36 1.28
+++ pkgsrc/lang/gcc7/Makefile 2020/03/18 19:50:52 1.29
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.28 2020/03/13 15:00:36 bacon Exp $ 1# $NetBSD: Makefile,v 1.29 2020/03/18 19:50:52 rillig Exp $
2 2
3GCC_PKGNAME= gcc7 3GCC_PKGNAME= gcc7
4.include "version.mk" 4.include "version.mk"
5 5
6DISTNAME= gcc-${GCC7_DIST_VERSION} 6DISTNAME= gcc-${GCC7_DIST_VERSION}
7PKGNAME= ${GCC_PKGNAME}-${GCC7_DIST_VERSION} 7PKGNAME= ${GCC_PKGNAME}-${GCC7_DIST_VERSION}
8PKGREVISION= 1 8PKGREVISION= 1
9## When bumping the PKGREVISION of this package the PKGREVISION of 9## When bumping the PKGREVISION of this package the PKGREVISION of
10## lang/gcc7-libs needs to be bump to be at least 1 more than the 10## lang/gcc7-libs needs to be bump to be at least 1 more than the
11## PKGREVISION of this package! 11## PKGREVISION of this package!
12CATEGORIES= lang 12CATEGORIES= lang
13MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC7_DIST_VERSION}/} 13MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC7_DIST_VERSION}/}
14EXTRACT_SUFX= .tar.xz 14EXTRACT_SUFX= .tar.xz
@@ -37,26 +37,31 @@ GCC_PREFIX= ${PREFIX}/${GCC_SUBPREFIX} @@ -37,26 +37,31 @@ GCC_PREFIX= ${PREFIX}/${GCC_SUBPREFIX}
37GNU_CONFIGURE_PREFIX= ${GCC_PREFIX} 37GNU_CONFIGURE_PREFIX= ${GCC_PREFIX}
38INFO_FILES= yes 38INFO_FILES= yes
39CONFIGURE_ARGS+= --disable-libstdcxx-pch 39CONFIGURE_ARGS+= --disable-libstdcxx-pch
40 40
41UNLIMIT_RESOURCES+= datasize 41UNLIMIT_RESOURCES+= datasize
42UNLIMIT_RESOURCES+= stacksize 42UNLIMIT_RESOURCES+= stacksize
43 43
44SUBST_CLASSES+= vars 44SUBST_CLASSES+= vars
45SUBST_MESSAGE.vars= Setting target machine name path in ${SUBST_FILES.vars} 45SUBST_MESSAGE.vars= Setting target machine name path in ${SUBST_FILES.vars}
46SUBST_STAGE.vars= pre-configure 46SUBST_STAGE.vars= pre-configure
47SUBST_FILES.vars= gcc/Makefile.in 47SUBST_FILES.vars= gcc/Makefile.in
48SUBST_VARS.vars= MACHINE_GNU_PLATFORM 48SUBST_VARS.vars= MACHINE_GNU_PLATFORM
49 49
 50# These programs use [[ ... ]] and are not needed for the build.
 51CHECK_PORTABILITY_CHECK+= \
 52 contrib/prepare_patch.sh \
 53 contrib/patch_tester.sh
 54
50.include "../../mk/bsd.prefs.mk" 55.include "../../mk/bsd.prefs.mk"
51 56
52LANGS= c 57LANGS= c
53 58
54# In some cases LINKER_RPATH_FLAG needs a trailing space. 59# In some cases LINKER_RPATH_FLAG needs a trailing space.
55LINKER_RPATH_FLAG:= ${LINKER_RPATH_FLAG:S/-rpath/& /} 60LINKER_RPATH_FLAG:= ${LINKER_RPATH_FLAG:S/-rpath/& /}
56 61
57## The Library rpath to use in end programs. 62## The Library rpath to use in end programs.
58LDFLAGS_FOR_TARGET= ${LDFLAGS:M${COMPILER_RPATH_FLAG}*:N*/usr/lib*} ${LDFLAGS:M-Wl,-z*} 63LDFLAGS_FOR_TARGET= ${LDFLAGS:M${COMPILER_RPATH_FLAG}*:N*/usr/lib*} ${LDFLAGS:M-Wl,-z*}
59 64
60# The "-static-libstdc++ -static-libgcc" flags are normally added to the 65# The "-static-libstdc++ -static-libgcc" flags are normally added to the
61# boot-ldflags by configure but because we are supply the boot-ldflags 66# boot-ldflags by configure but because we are supply the boot-ldflags
62# we mash supply them. 67# we mash supply them.