[med-svn] r23328 - trunk/packages/R/r-cran-treescape/trunk/debian

Andreas Tille tille at moszumanska.debian.org
Mon Dec 19 20:53:55 UTC 2016


Author: tille
Date: 2016-12-19 20:53:54 +0000 (Mon, 19 Dec 2016)
New Revision: 23328

Modified:
   trunk/packages/R/r-cran-treescape/trunk/debian/changelog
   trunk/packages/R/r-cran-treescape/trunk/debian/rules
Log:
Set stack limit drastically higher for those architectures that are
    somehow needing this (see bug #845753).  This is only done for upstream
    version 1.10.18 for the moment.


Modified: trunk/packages/R/r-cran-treescape/trunk/debian/changelog
===================================================================
--- trunk/packages/R/r-cran-treescape/trunk/debian/changelog	2016-12-19 13:28:36 UTC (rev 23327)
+++ trunk/packages/R/r-cran-treescape/trunk/debian/changelog	2016-12-19 20:53:54 UTC (rev 23328)
@@ -1,3 +1,11 @@
+r-cran-treescape (1.10.18-3) unstable; urgency=medium
+
+  * Set stack limit drastically higher for those architectures that are
+    somehow needing this (see bug #845753).  This is only done for upstream
+    version 1.10.18 for the moment.
+
+ -- Andreas Tille <tille at debian.org>  Mon, 19 Dec 2016 21:49:08 +0100
+
 r-cran-treescape (1.10.18-2) unstable; urgency=medium
 
   * Make sure xvfb-run is used in d/rules

Modified: trunk/packages/R/r-cran-treescape/trunk/debian/rules
===================================================================
--- trunk/packages/R/r-cran-treescape/trunk/debian/rules	2016-12-19 13:28:36 UTC (rev 23327)
+++ trunk/packages/R/r-cran-treescape/trunk/debian/rules	2016-12-19 20:53:54 UTC (rev 23328)
@@ -1,8 +1,28 @@
 #!/usr/bin/make -f
 
+DEBVERS   := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
+VERSION   := $(shell echo '$(DEBVERS)' | sed -e 's/^[0-9]*://' -e 's/-.*//')
+BUILDARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+
+HUGESTACK := false
+
+ifeq ($(VERSION),1.10.18)
+ifeq ($(BUILDARCH),$(filter $(BUILDARCH), armhf i386 mipsel))
+	HUGESTACK := true
+endif
+endif
+
 %:
 	dh $@ --buildsystem R
 
 override_dh_auto_install:
+ifeq ($(HUGESTACK),true)
+	echo "****************** Version = 1.10.18, Architecture armhf or i386 or mipsel ***********************************"
+	echo "****************** Set stack usage to be drastically higher on 32bit LE platforms (see bug #845753 ***********"
+	/bin/sh -c "ulimit -S -s 200000 ; exec \
+	    xvfb-run --auto-servernum --server-num=20 -s "-screen 0 1024x768x24 -ac +extension GLX +render -noreset" \
+	    dh_auto_install
+else
 	xvfb-run --auto-servernum --server-num=20 -s "-screen 0 1024x768x24 -ac +extension GLX +render -noreset" \
 	    dh_auto_install
+endif




More information about the debian-med-commit mailing list