Sun May 10 18:24:56 2020 UTC ()
lang/mono6: fix build in strict environment


(rillig)
diff -r1.16 -r1.17 pkgsrc/lang/mono6/Makefile

cvs diff -r1.16 -r1.17 pkgsrc/lang/mono6/Attic/Makefile (expand / switch to unified diff)

--- pkgsrc/lang/mono6/Attic/Makefile 2020/05/09 16:52:51 1.16
+++ pkgsrc/lang/mono6/Attic/Makefile 2020/05/10 18:24:56 1.17
@@ -1,40 +1,41 @@ @@ -1,40 +1,41 @@
1# $NetBSD: Makefile,v 1.16 2020/05/09 16:52:51 rillig Exp $ 1# $NetBSD: Makefile,v 1.17 2020/05/10 18:24:56 rillig Exp $
2 2
3DISTNAME= mono-6.8.0.105 3DISTNAME= mono-6.8.0.105
4PKGREVISION= 3 4PKGREVISION= 3
5CATEGORIES= lang 5CATEGORIES= lang
6MASTER_SITES= https://download.mono-project.com/sources/mono/ 6MASTER_SITES= https://download.mono-project.com/sources/mono/
7EXTRACT_SUFX= .tar.xz 7EXTRACT_SUFX= .tar.xz
8 8
9MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://www.mono-project.com/ 10HOMEPAGE= https://www.mono-project.com/
11COMMENT= Open source implementation of the .NET Development Framework 11COMMENT= Open source implementation of the .NET Development Framework
12LICENSE= mit AND gnu-gpl-v2 AND gnu-lgpl-v2 AND apache-2.0 12LICENSE= mit AND gnu-gpl-v2 AND gnu-lgpl-v2 AND apache-2.0
13 13
14WRKSRC= ${WRKDIR}/${DISTNAME} 14WRKSRC= ${WRKDIR}/${DISTNAME}
15 15
16TOOL_DEPENDS+= p5-XML-Parser-[0-9]*:../../textproc/p5-XML-Parser 16TOOL_DEPENDS+= p5-XML-Parser-[0-9]*:../../textproc/p5-XML-Parser
17CONFLICTS= pnet-[0-9]* mcsim-[0-9]* lc-[0-9]* 17CONFLICTS= pnet-[0-9]* mcsim-[0-9]* lc-[0-9]*
18ALL_ENV+= MONO_SHARED_DIR=${WRKDIR} PLATFORM= 18ALL_ENV+= MONO_SHARED_DIR=${WRKDIR} PLATFORM=
19ALL_ENV+= PAXCTL=${PAXCTL} 19ALL_ENV+= PAXCTL=${PAXCTL}
20 20
21USE_TOOLS+= bash:run cmake gmake gtar msgfmt perl:run pkg-config 21USE_TOOLS+= bash:run cmake gmake gtar msgfmt perl:run pkg-config
22USE_TOOLS+= bison autoconf automake 22USE_TOOLS+= bison autoconf automake
23USE_LIBTOOL= yes 23USE_LIBTOOL= yes
24USE_LANGUAGES+= c c99 c++ 24USE_LANGUAGES+= c c99 c++
25EXTRACT_USING= gtar 25EXTRACT_USING= gtar
26 26
27GNU_CONFIGURE= yes 27GNU_CONFIGURE= yes
 28GNU_CONFIGURE_STRICT= no # has sub-configures
28CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} 29CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
29CONFIGURE_ARGS+= --disable-btls 30CONFIGURE_ARGS+= --disable-btls
30CONFIGURE_ARGS+= --disable-btls-lib 31CONFIGURE_ARGS+= --disable-btls-lib
31 32
32# Requires a cwrappers change: http://mail-index.netbsd.org/tech-pkg/2019/08/16/msg021791.html 33# Requires a cwrappers change: http://mail-index.netbsd.org/tech-pkg/2019/08/16/msg021791.html
33USE_CWRAPPERS= no 34USE_CWRAPPERS= no
34 35
35MAKE_FLAGS+= PERL=${PERL5:Q} mandir=${PREFIX}/${PKGMANDIR} 36MAKE_FLAGS+= PERL=${PERL5:Q} mandir=${PREFIX}/${PKGMANDIR}
36UNLIMIT_RESOURCES= datasize stacksize memorysize 37UNLIMIT_RESOURCES= datasize stacksize memorysize
37 38
38PKGCONFIG_OVERRIDE+= mono-uninstalled.pc.in data/cecil.pc.in 39PKGCONFIG_OVERRIDE+= mono-uninstalled.pc.in data/cecil.pc.in
39PKGCONFIG_OVERRIDE+= data/dotnet.pc.in data/dotnet35.pc.in data/mint.pc.in 40PKGCONFIG_OVERRIDE+= data/dotnet.pc.in data/dotnet35.pc.in data/mint.pc.in
40PKGCONFIG_OVERRIDE+= data/monodoc.pc.in 41PKGCONFIG_OVERRIDE+= data/monodoc.pc.in
@@ -46,27 +47,27 @@ PKGCONFIG_OVERRIDE+= data/system.web.ext @@ -46,27 +47,27 @@ PKGCONFIG_OVERRIDE+= data/system.web.ext
46PKGCONFIG_OVERRIDE+= data/system.web.extensions.design_1.0.pc.in 47PKGCONFIG_OVERRIDE+= data/system.web.extensions.design_1.0.pc.in
47PKGCONFIG_OVERRIDE+= data/system.web.mvc.pc.in data/wcf.pc.in 48PKGCONFIG_OVERRIDE+= data/system.web.mvc.pc.in data/wcf.pc.in
48 49
49REPLACE_PERL+= mono/benchmark/test-driver 50REPLACE_PERL+= mono/benchmark/test-driver
50REPLACE_PERL+= mono/cil/make-opcodes-def.pl 51REPLACE_PERL+= mono/cil/make-opcodes-def.pl
51REPLACE_PERL+= mono/tests/stress-runner.pl 52REPLACE_PERL+= mono/tests/stress-runner.pl
52 53
53REPLACE_PYTHON+= scripts/mono-heapviz 54REPLACE_PYTHON+= scripts/mono-heapviz
54 55
55REPLACE_BASH+= mono/arch/arm/dpiops.sh 56REPLACE_BASH+= mono/arch/arm/dpiops.sh
56REPLACE_BASH+= mono/arch/arm/vfpops.sh 57REPLACE_BASH+= mono/arch/arm/vfpops.sh
57REPLACE_BASH+= scripts/mono-package-runtime 58REPLACE_BASH+= scripts/mono-package-runtime
58REPLACE_BASH+= scripts/mono-find-provides.in scripts/mono-find-requires.in 59REPLACE_BASH+= scripts/mono-find-provides.in scripts/mono-find-requires.in
59REPLACE_BASH+= scripts/mono-test-install web/mono-build-w32.sh 60REPLACE_BASH+= scripts/mono-test-install
60REPLACE_BASH+= mcs/class/Mono.Cairo/Samples/gtk/compile.sh 61REPLACE_BASH+= mcs/class/Mono.Cairo/Samples/gtk/compile.sh
61REPLACE_BASH+= mcs/class/Mono.Cairo/Samples/png/compile.sh 62REPLACE_BASH+= mcs/class/Mono.Cairo/Samples/png/compile.sh
62REPLACE_BASH+= mcs/class/Mono.Cairo/Samples/win32/compile.sh 63REPLACE_BASH+= mcs/class/Mono.Cairo/Samples/win32/compile.sh
63REPLACE_BASH+= mcs/class/Mono.Cairo/Samples/x11/compile.sh 64REPLACE_BASH+= mcs/class/Mono.Cairo/Samples/x11/compile.sh
64REPLACE_BASH+= libgc/mkinstalldirs 65REPLACE_BASH+= libgc/mkinstalldirs
65REPLACE_BASH+= mcs/mkinstalldirs mkinstalldirs 66REPLACE_BASH+= mcs/mkinstalldirs mkinstalldirs
66 67
67EGDIR= ${PREFIX}/share/examples/mono 68EGDIR= ${PREFIX}/share/examples/mono
68 69
69EGDIR_CONF_FILES= \ 70EGDIR_CONF_FILES= \
70 71
71.for conf in \ 72.for conf in \
72 2.0/Browsers/Compat.browser \ 73 2.0/Browsers/Compat.browser \
@@ -113,26 +114,29 @@ SUBST_NOOP_OK.fix-prefix= yes @@ -113,26 +114,29 @@ SUBST_NOOP_OK.fix-prefix= yes
113SUBST_CLASSES+= fix-cfgdir 114SUBST_CLASSES+= fix-cfgdir
114SUBST_STAGE.fix-cfgdir= pre-configure 115SUBST_STAGE.fix-cfgdir= pre-configure
115SUBST_MESSAGE.fix-cfgdir= Fixing configuration files install dir 116SUBST_MESSAGE.fix-cfgdir= Fixing configuration files install dir
116SUBST_FILES.fix-cfgdir= mcs/tools/mconfig/Makefile 117SUBST_FILES.fix-cfgdir= mcs/tools/mconfig/Makefile
117SUBST_SED.fix-cfgdir= -e 's,$$(sysconfdir)/mono,${EGDIR},g' 118SUBST_SED.fix-cfgdir= -e 's,$$(sysconfdir)/mono,${EGDIR},g'
118 119
119SUBST_CLASSES+= fix-python 120SUBST_CLASSES+= fix-python
120SUBST_STAGE.fix-python= pre-configure 121SUBST_STAGE.fix-python= pre-configure
121SUBST_MESSAGE.fix-python= Fixing python binary name 122SUBST_MESSAGE.fix-python= Fixing python binary name
122SUBST_FILES.fix-python+= mono/mini/Makefile.am.in 123SUBST_FILES.fix-python+= mono/mini/Makefile.am.in
123SUBST_FILES.fix-python+= mono/tests/Makefile.am 124SUBST_FILES.fix-python+= mono/tests/Makefile.am
124SUBST_SED.fix-python= -e 's,python,${PYTHONBIN},' 125SUBST_SED.fix-python= -e 's,python,${PYTHONBIN},'
125 126
 127# Uses [[ ... ]], not needed during the build.
 128CHECK_PORTABILITY_SKIP+= acceptance-tests/microbench-perf.sh.in
 129
126.include "../../mk/bsd.prefs.mk" 130.include "../../mk/bsd.prefs.mk"
127 131
128# XXX remove 132# XXX remove
129MAKE_ENV+= V=1 133MAKE_ENV+= V=1
130 134
131# We patched makefiles, regen 135# We patched makefiles, regen
132pre-configure: 136pre-configure:
133 ${RUN} cd ${WRKSRC} && ${SH} ./autogen.sh 137 ${RUN} cd ${WRKSRC} && ${SH} ./autogen.sh
134 138
135.if ${OPSYS} == "SunOS" 139.if ${OPSYS} == "SunOS"
136CFLAGS+= -D_XOPEN_SOURCE=600 140CFLAGS+= -D_XOPEN_SOURCE=600
137# Conflicts with the above settings 141# Conflicts with the above settings
138CONFIGURE_ENV+= ac_cv_func_madvise=no 142CONFIGURE_ENV+= ac_cv_func_madvise=no