Allow more memory for GHC to waste. Allow dropping extra compat libraries in FILESDIR.diff -r1.43 -r1.44 pkgsrc/lang/ghc7/Makefile
(joerg)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.43 2020/03/27 04:13:57 riastradh Exp $ | 1 | # $NetBSD: Makefile,v 1.44 2020/03/30 19:36:03 joerg Exp $ | |
2 | # ----------------------------------------------------------------------------- | 2 | # ----------------------------------------------------------------------------- | |
3 | # Package metadata | 3 | # Package metadata | |
4 | # | 4 | # | |
5 | DISTNAME= ghc-7.10.3-src | 5 | DISTNAME= ghc-7.10.3-src | |
6 | PKGREVISION= 3 | 6 | PKGREVISION= 3 | |
7 | PKGNAME= ${DISTNAME:S/-src$//} | 7 | PKGNAME= ${DISTNAME:S/-src$//} | |
8 | CATEGORIES= lang | 8 | CATEGORIES= lang | |
9 | MASTER_SITES= https://downloads.haskell.org/~ghc/${PKGVERSION_NOREV}/ | 9 | MASTER_SITES= https://downloads.haskell.org/~ghc/${PKGVERSION_NOREV}/ | |
10 | EXTRACT_SUFX= .tar.xz | 10 | EXTRACT_SUFX= .tar.xz | |
11 | 11 | |||
12 | MAINTAINER= pho@cielonegro.org | 12 | MAINTAINER= pho@cielonegro.org | |
13 | HOMEPAGE= https://www.haskell.org/ghc/ | 13 | HOMEPAGE= https://www.haskell.org/ghc/ | |
14 | COMMENT= Compiler for the functional language Haskell - 7.10 Release Series | 14 | COMMENT= Compiler for the functional language Haskell - 7.10 Release Series | |
@@ -183,22 +183,22 @@ STRIP_FILES_SKIP+= lib/${PKGNAME_NOREV} | @@ -183,22 +183,22 @@ STRIP_FILES_SKIP+= lib/${PKGNAME_NOREV} | |||
183 | # Dependencies | 183 | # Dependencies | |
184 | # | 184 | # | |
185 | BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt | 185 | BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt | |
186 | BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl | 186 | BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl | |
187 | 187 | |||
188 | # NetBSD 9.x have libcurses with a newer major version than the | 188 | # NetBSD 9.x have libcurses with a newer major version than the | |
189 | # bootstrap kit is linked against. For now, work around this with | 189 | # bootstrap kit is linked against. For now, work around this with | |
190 | # compat80. | 190 | # compat80. | |
191 | .if ${OPSYS} == "NetBSD" && empty(OS_VERSION:M[0-8].*) | 191 | .if ${OPSYS} == "NetBSD" && empty(OS_VERSION:M[0-8].*) | |
192 | BUILD_DEPENDS+= compat80-[0-9]*:../../emulators/compat80 | 192 | BUILD_DEPENDS+= compat80-[0-9]*:../../emulators/compat80 | |
193 | # In a sandboxed build environment, we have to reach over to the | 193 | # In a sandboxed build environment, we have to reach over to the | |
194 | # installed libraries themselves, since the symlinks compat80 adds | 194 | # installed libraries themselves, since the symlinks compat80 adds | |
195 | # to the /usr tree can't be applied. | 195 | # to the /usr tree can't be applied. | |
196 | ALL_ENV+= LD_LIBRARY_PATH=${PREFIX:Q}/emul/netbsd/usr/lib | 196 | ALL_ENV+= LD_LIBRARY_PATH=${PREFIX:Q}/emul/netbsd/usr/lib:${FILESDIR} | |
197 | .endif | 197 | .endif | |
198 | 198 | |||
199 | .include "../../converters/libiconv/buildlink3.mk" | 199 | .include "../../converters/libiconv/buildlink3.mk" | |
200 | .include "../../devel/libffi/buildlink3.mk" | 200 | .include "../../devel/libffi/buildlink3.mk" | |
201 | .include "../../devel/gmp/buildlink3.mk" | 201 | .include "../../devel/gmp/buildlink3.mk" | |
202 | .include "../../mk/curses.buildlink3.mk" | 202 | .include "../../mk/curses.buildlink3.mk" | |
203 | .include "../../mk/pthread.buildlink3.mk" | 203 | .include "../../mk/pthread.buildlink3.mk" | |
204 | .include "../../mk/bsd.pkg.mk" | 204 | .include "../../mk/bsd.pkg.mk" |
@@ -1,29 +1,31 @@ | @@ -1,29 +1,31 @@ | |||
1 | # $NetBSD: Makefile,v 1.6 2020/03/27 04:13:57 riastradh Exp $ | 1 | # $NetBSD: Makefile,v 1.7 2020/03/30 19:36:03 joerg Exp $ | |
2 | # ----------------------------------------------------------------------------- | 2 | # ----------------------------------------------------------------------------- | |
3 | # Package metadata | 3 | # Package metadata | |
4 | # | 4 | # | |
5 | DISTNAME= ghc-8.0.2-src | 5 | DISTNAME= ghc-8.0.2-src | |
6 | PKGNAME= ${DISTNAME:S/-src$//} | 6 | PKGNAME= ${DISTNAME:S/-src$//} | |
7 | PKGREVISION= 1 | 7 | PKGREVISION= 1 | |
8 | CATEGORIES= lang | 8 | CATEGORIES= lang | |
9 | MASTER_SITES= https://downloads.haskell.org/~ghc/${PKGVERSION_NOREV}/ | 9 | MASTER_SITES= https://downloads.haskell.org/~ghc/${PKGVERSION_NOREV}/ | |
10 | EXTRACT_SUFX= .tar.xz | 10 | EXTRACT_SUFX= .tar.xz | |
11 | 11 | |||
12 | MAINTAINER= pho@cielonegro.org | 12 | MAINTAINER= pho@cielonegro.org | |
13 | HOMEPAGE= https://www.haskell.org/ghc/ | 13 | HOMEPAGE= https://www.haskell.org/ghc/ | |
14 | COMMENT= Compiler for the functional language Haskell - 8.0 Release Series | 14 | COMMENT= Compiler for the functional language Haskell - 8.0 Release Series | |
15 | LICENSE= modified-bsd | 15 | LICENSE= modified-bsd | |
16 | 16 | |||
17 | UNLIMIT_RESOURCES= datasize virtualsize | |||
18 | ||||
17 | # TODO: We should be using the alternatives framework. | 19 | # TODO: We should be using the alternatives framework. | |
18 | CONFLICTS+= ghc-[0-9]* | 20 | CONFLICTS+= ghc-[0-9]* | |
19 | 21 | |||
20 | # GHC requires GHC to build itself. Formerly we could work around this | 22 | # GHC requires GHC to build itself. Formerly we could work around this | |
21 | # bootstrapping problem by creating a special archive containing C | 23 | # bootstrapping problem by creating a special archive containing C | |
22 | # sources compiled from Haskell sources, but that's no longer | 24 | # sources compiled from Haskell sources, but that's no longer | |
23 | # possible. So we have to prepare stripped-down binaries sufficient to | 25 | # possible. So we have to prepare stripped-down binaries sufficient to | |
24 | # bootstrap compilers for each platforms. If you want to build them | 26 | # bootstrap compilers for each platforms. If you want to build them | |
25 | # yourself, follow instructions in BOOTSTRAP.txt and ./bootstrap.mk | 27 | # yourself, follow instructions in BOOTSTRAP.txt and ./bootstrap.mk | |
26 | #BROKEN_EXCEPT_ON_PLATFORM+= Darwin-*-powerpc # Not available yet | 28 | #BROKEN_EXCEPT_ON_PLATFORM+= Darwin-*-powerpc # Not available yet | |
27 | BROKEN_EXCEPT_ON_PLATFORM+= FreeBSD-*-i386 | 29 | BROKEN_EXCEPT_ON_PLATFORM+= FreeBSD-*-i386 | |
28 | BROKEN_EXCEPT_ON_PLATFORM+= FreeBSD-*-x86_64 | 30 | BROKEN_EXCEPT_ON_PLATFORM+= FreeBSD-*-x86_64 | |
29 | BROKEN_EXCEPT_ON_PLATFORM+= NetBSD-*-x86_64 | 31 | BROKEN_EXCEPT_ON_PLATFORM+= NetBSD-*-x86_64 | |
@@ -181,22 +183,22 @@ STRIP_FILES_SKIP+= lib/${PKGNAME_NOREV} | @@ -181,22 +183,22 @@ STRIP_FILES_SKIP+= lib/${PKGNAME_NOREV} | |||
181 | # | 183 | # | |
182 | BUILDLINK_DEPMETHOD.python:= build | 184 | BUILDLINK_DEPMETHOD.python:= build | |
183 | .include "../../lang/python/pyversion.mk" | 185 | .include "../../lang/python/pyversion.mk" | |
184 | BUILD_DEPENDS+= ${PYPKGPREFIX}-sphinx-[0-9]*:../../textproc/py-sphinx | 186 | BUILD_DEPENDS+= ${PYPKGPREFIX}-sphinx-[0-9]*:../../textproc/py-sphinx | |
185 | 187 | |||
186 | # NetBSD 9.x have libcurses with a newer major version than the | 188 | # NetBSD 9.x have libcurses with a newer major version than the | |
187 | # bootstrap kit is linked against. For now, work around this with | 189 | # bootstrap kit is linked against. For now, work around this with | |
188 | # compat80. | 190 | # compat80. | |
189 | .if ${OPSYS} == "NetBSD" && empty(OS_VERSION:M[0-8].*) | 191 | .if ${OPSYS} == "NetBSD" && empty(OS_VERSION:M[0-8].*) | |
190 | BUILD_DEPENDS+= compat80-[0-9]*:../../emulators/compat80 | 192 | BUILD_DEPENDS+= compat80-[0-9]*:../../emulators/compat80 | |
191 | # In a sandboxed build environment, we have to reach over to the | 193 | # In a sandboxed build environment, we have to reach over to the | |
192 | # installed libraries themselves, since the symlinks compat80 adds | 194 | # installed libraries themselves, since the symlinks compat80 adds | |
193 | # to the /usr tree can't be applied. | 195 | # to the /usr tree can't be applied. | |
194 | ALL_ENV+= LD_LIBRARY_PATH=${PREFIX:Q}/emul/netbsd/usr/lib | 196 | ALL_ENV+= LD_LIBRARY_PATH=${PREFIX:Q}/emul/netbsd/usr/lib:${FILESDIR} | |
195 | .endif | 197 | .endif | |
196 | 198 | |||
197 | .include "../../converters/libiconv/buildlink3.mk" | 199 | .include "../../converters/libiconv/buildlink3.mk" | |
198 | .include "../../devel/libffi/buildlink3.mk" | 200 | .include "../../devel/libffi/buildlink3.mk" | |
199 | .include "../../devel/gmp/buildlink3.mk" | 201 | .include "../../devel/gmp/buildlink3.mk" | |
200 | .include "../../mk/curses.buildlink3.mk" | 202 | .include "../../mk/curses.buildlink3.mk" | |
201 | .include "../../mk/pthread.buildlink3.mk" | 203 | .include "../../mk/pthread.buildlink3.mk" | |
202 | .include "../../mk/bsd.pkg.mk" | 204 | .include "../../mk/bsd.pkg.mk" |
@@ -1,29 +1,31 @@ | @@ -1,29 +1,31 @@ | |||
1 | # $NetBSD: Makefile,v 1.8 2020/03/27 04:13:57 riastradh Exp $ | 1 | # $NetBSD: Makefile,v 1.9 2020/03/30 19:36:03 joerg Exp $ | |
2 | # ----------------------------------------------------------------------------- | 2 | # ----------------------------------------------------------------------------- | |
3 | # Package metadata | 3 | # Package metadata | |
4 | # | 4 | # | |
5 | DISTNAME= ghc-8.4.4-src | 5 | DISTNAME= ghc-8.4.4-src | |
6 | PKGNAME= ${DISTNAME:S/-src$//} | 6 | PKGNAME= ${DISTNAME:S/-src$//} | |
7 | PKGREVISION= 1 | 7 | PKGREVISION= 1 | |
8 | CATEGORIES= lang | 8 | CATEGORIES= lang | |
9 | MASTER_SITES= https://downloads.haskell.org/~ghc/${PKGVERSION_NOREV}/ | 9 | MASTER_SITES= https://downloads.haskell.org/~ghc/${PKGVERSION_NOREV}/ | |
10 | EXTRACT_SUFX= .tar.xz | 10 | EXTRACT_SUFX= .tar.xz | |
11 | 11 | |||
12 | MAINTAINER= pho@cielonegro.org | 12 | MAINTAINER= pho@cielonegro.org | |
13 | HOMEPAGE= https://www.haskell.org/ghc/ | 13 | HOMEPAGE= https://www.haskell.org/ghc/ | |
14 | COMMENT= Compiler for the functional language Haskell - 8.4 Release Series | 14 | COMMENT= Compiler for the functional language Haskell - 8.4 Release Series | |
15 | LICENSE= modified-bsd | 15 | LICENSE= modified-bsd | |
16 | 16 | |||
17 | UNLIMIT_RESOURCES= datasize virtualsize | |||
18 | ||||
17 | # TODO: We should be using the alternatives framework. | 19 | # TODO: We should be using the alternatives framework. | |
18 | CONFLICTS+= ghc-[0-9]* | 20 | CONFLICTS+= ghc-[0-9]* | |
19 | 21 | |||
20 | # GHC requires GHC to build itself. We have to prepare stripped-down | 22 | # GHC requires GHC to build itself. We have to prepare stripped-down | |
21 | # binaries sufficient to bootstrap compilers for each platforms. If | 23 | # binaries sufficient to bootstrap compilers for each platforms. If | |
22 | # you want to build them yourself, follow instructions in | 24 | # you want to build them yourself, follow instructions in | |
23 | # BOOTSTRAP.txt and ./bootstrap.mk | 25 | # BOOTSTRAP.txt and ./bootstrap.mk | |
24 | #BROKEN_EXCEPT_ON_PLATFORM+= Darwin-*-powerpc # Not available yet | 26 | #BROKEN_EXCEPT_ON_PLATFORM+= Darwin-*-powerpc # Not available yet | |
25 | BROKEN_EXCEPT_ON_PLATFORM+= Darwin-*-x86_64 | 27 | BROKEN_EXCEPT_ON_PLATFORM+= Darwin-*-x86_64 | |
26 | BROKEN_EXCEPT_ON_PLATFORM+= FreeBSD-*-i386 | 28 | BROKEN_EXCEPT_ON_PLATFORM+= FreeBSD-*-i386 | |
27 | BROKEN_EXCEPT_ON_PLATFORM+= FreeBSD-*-x86_64 | 29 | BROKEN_EXCEPT_ON_PLATFORM+= FreeBSD-*-x86_64 | |
28 | BROKEN_EXCEPT_ON_PLATFORM+= NetBSD-*-x86_64 | 30 | BROKEN_EXCEPT_ON_PLATFORM+= NetBSD-*-x86_64 | |
29 | #BROKEN_EXCEPT_ON_PLATFORM+= SunOS-*-i386 # Not available yet | 31 | #BROKEN_EXCEPT_ON_PLATFORM+= SunOS-*-i386 # Not available yet | |
@@ -199,22 +201,22 @@ STRIP_FILES_SKIP+= lib/${PKGNAME_NOREV} | @@ -199,22 +201,22 @@ STRIP_FILES_SKIP+= lib/${PKGNAME_NOREV} | |||
199 | BUILDLINK_DEPMETHOD.python:= build | 201 | BUILDLINK_DEPMETHOD.python:= build | |
200 | .include "../../lang/python/pyversion.mk" | 202 | .include "../../lang/python/pyversion.mk" | |
201 | BUILD_DEPENDS+= ${PYPKGPREFIX}-sphinx-[0-9]*:../../textproc/py-sphinx | 203 | BUILD_DEPENDS+= ${PYPKGPREFIX}-sphinx-[0-9]*:../../textproc/py-sphinx | |
202 | .endif | 204 | .endif | |
203 | 205 | |||
204 | # NetBSD 9.x have libcurses with a newer major version than the | 206 | # NetBSD 9.x have libcurses with a newer major version than the | |
205 | # bootstrap kit is linked against. For now, work around this with | 207 | # bootstrap kit is linked against. For now, work around this with | |
206 | # compat80. | 208 | # compat80. | |
207 | .if ${OPSYS} == "NetBSD" && empty(OS_VERSION:M[0-8].*) | 209 | .if ${OPSYS} == "NetBSD" && empty(OS_VERSION:M[0-8].*) | |
208 | BUILD_DEPENDS+= compat80-[0-9]*:../../emulators/compat80 | 210 | BUILD_DEPENDS+= compat80-[0-9]*:../../emulators/compat80 | |
209 | # In a sandboxed build environment, we have to reach over to the | 211 | # In a sandboxed build environment, we have to reach over to the | |
210 | # installed libraries themselves, since the symlinks compat80 adds | 212 | # installed libraries themselves, since the symlinks compat80 adds | |
211 | # to the /usr tree can't be applied. | 213 | # to the /usr tree can't be applied. | |
212 | ALL_ENV+= LD_LIBRARY_PATH=${PREFIX}/emul/netbsd/usr/lib | 214 | ALL_ENV+= LD_LIBRARY_PATH=${PREFIX:Q}/emul/netbsd/usr/lib:${FILESDIR} | |
213 | .endif | 215 | .endif | |
214 | 216 | |||
215 | .include "../../converters/libiconv/buildlink3.mk" | 217 | .include "../../converters/libiconv/buildlink3.mk" | |
216 | .include "../../devel/libffi/buildlink3.mk" | 218 | .include "../../devel/libffi/buildlink3.mk" | |
217 | .include "../../devel/gmp/buildlink3.mk" | 219 | .include "../../devel/gmp/buildlink3.mk" | |
218 | .include "../../mk/curses.buildlink3.mk" | 220 | .include "../../mk/curses.buildlink3.mk" | |
219 | .include "../../mk/pthread.buildlink3.mk" | 221 | .include "../../mk/pthread.buildlink3.mk" | |
220 | .include "../../mk/bsd.pkg.mk" | 222 | .include "../../mk/bsd.pkg.mk" |