[Pkg-haskell-commits] darcs: haskell-gluraw: Pass --param ggc-min-expand=10 on mips and mipsel

Joachim Breitner mail at joachim-breitner.de
Mon Jun 15 11:28:56 UTC 2015


Mon Jun 15 11:20:09 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 11:20:09 UTC 2015  Joachim Breitner <mail at joachim-breitner.de>
  * Pass --param ggc-min-expand=10 on mips and mipsel 
diff -rN -u old-haskell-gluraw/changelog new-haskell-gluraw/changelog
--- old-haskell-gluraw/changelog	2015-06-15 11:28:56.205251594 +0000
+++ new-haskell-gluraw/changelog	2015-06-15 11:28:56.229251607 +0000
@@ -1,3 +1,9 @@
+haskell-gluraw (1.5.0.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 13:19:54 +0200
+
 haskell-gluraw (1.5.0.0-2) unstable; urgency=medium
 
   * Upload to unstable
diff -rN -u old-haskell-gluraw/rules new-haskell-gluraw/rules
--- old-haskell-gluraw/rules	2015-06-15 11:28:56.205251594 +0000
+++ new-haskell-gluraw/rules	2015-06-15 11:28:56.205251594 +0000
@@ -1,4 +1,21 @@
 #!/usr/bin/make -f
 
+# haskell-gluraw 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