[Git][haskell-team/DHG_packages][master] aeson: Pass ggc-min-expand=10 on mips and mipsel

Ilias Tsitsimpis gitlab at salsa.debian.org
Tue Oct 23 16:42:22 BST 2018


Ilias Tsitsimpis pushed to branch master at Debian Haskell Group / DHG_packages


Commits:
5cbb6a9c by Ilias Tsitsimpis at 2018-10-23T15:32:11Z
aeson: Pass ggc-min-expand=10 on mips and mipsel

- - - - -


2 changed files:

- p/haskell-aeson/debian/changelog
- p/haskell-aeson/debian/rules


Changes:

=====================================
p/haskell-aeson/debian/changelog
=====================================
@@ -1,3 +1,9 @@
+haskell-aeson (1.3.1.1-3) unstable; urgency=medium
+
+  * Pass ggc-min-expand=10 on mips and mipsel
+
+ -- Ilias Tsitsimpis <iliastsi at debian.org>  Tue, 23 Oct 2018 18:32:04 +0300
+
 haskell-aeson (1.3.1.1-2) unstable; urgency=medium
 
   * Remove build dependency on libghc-mtl-dev (provided by ghc-8.4.3)


=====================================
p/haskell-aeson/debian/rules
=====================================
@@ -4,5 +4,20 @@ DEB_SETUP_GHC_CONFIGURE_ARGS := $(shell test -e /usr/bin/ghci || echo --flags=-t
 DEB_SETUP_GHC_CONFIGURE_ARGS += $(shell test -e /usr/lib/ghc/rts/libHSrts_thr.a || echo --flags=-threaded)
 DEB_ENABLE_TESTS = no
 
+# haskell-aeson 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>
+ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel))
+	DEB_SETUP_GHC_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



View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/commit/5cbb6a9c780c7d2c1942e553cb82bf1a004ea462

-- 
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/commit/5cbb6a9c780c7d2c1942e553cb82bf1a004ea462
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20181023/5c233bda/attachment-0001.html>


More information about the Pkg-haskell-commits mailing list