[Pkg-haskell-commits] darcs: haskell-openglraw: Pass --param ggc-min-expand=10 on mips and mipsel
Joachim Breitner
mail at joachim-breitner.de
Mon Jun 15 12:27:01 UTC 2015
Mon Jun 15 12:08:30 UTC 2015 Joachim Breitner <mail at joachim-breitner.de>
* Pass --param ggc-min-expand=10 on mips and mipsel
M ./changelog +6
M ./rules +17
Mon Jun 15 12:08:30 UTC 2015 Joachim Breitner <mail at joachim-breitner.de>
* Pass --param ggc-min-expand=10 on mips and mipsel
diff -rN -u old-haskell-openglraw/changelog new-haskell-openglraw/changelog
--- old-haskell-openglraw/changelog 2015-06-15 12:27:01.665748360 +0000
+++ new-haskell-openglraw/changelog 2015-06-15 12:27:01.669748360 +0000
@@ -1,3 +1,9 @@
+haskell-openglraw (2.4.1.0-3) UNRELEASED; urgency=medium
+
+ * Pass --param ggc-min-expand=10 on mips and mipsel
+
+ -- Joachim Breitner <nomeata at debian.org> Mon, 15 Jun 2015 14:08:25 +0200
+
haskell-openglraw (2.4.1.0-2) unstable; urgency=medium
* Upload to unstable
diff -rN -u old-haskell-openglraw/rules new-haskell-openglraw/rules
--- old-haskell-openglraw/rules 2015-06-15 12:27:01.665748360 +0000
+++ new-haskell-openglraw/rules 2015-06-15 12:27:01.669748360 +0000
@@ -1,4 +1,21 @@
#!/usr/bin/make -f
+# haskell-openglraw needs a lot of memory during compilation.
+# Unfortunately, this amount of memory is not available on all platforms,
+# and error: "virtual memory exhausted: Cannot allocate memory." could appear.
+#
+# In this case possible solution could be using ggc-min-expand.
+# This parameter specifies the minimum percentage by which the
+# garbage collectorâs heap should be allowed to expand between collections.
+# Tuning this may improve compilation speed; it has no effect on code generation.
+#
+# http://hostingfu.com/article/compiling-with-gcc-on-low-memory-vps
+# -- Dejan Latinovic <Dejan.Latinovic at imgtec.com>
+DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel))
+ DEB_SETUP_GHC6_CONFIGURE_ARGS += --ghc-options="-optc--param -optcggc-min-expand=10"
+endif
+
+
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/hlibrary.mk
More information about the Pkg-haskell-commits
mailing list