From 86a3f96d65f4c751fca7272233485bd303388f0b Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Mon, 22 Sep 2014 21:11:03 +0200 Subject: [PATCH] Fix debian build on 32 bit systems. requiring 4GB of RAM in the lisp image is pushing those poor guys. --- debian/changelog | 6 ++++++ debian/rules | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 80f8f25..d471ab4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +pgloader (3.1.0+dfsg-2) unstable; urgency=medium + + * Fix building on i386 machines, using 1GB of dynamic space there. + + -- Dimitri Fontaine Mon, 22 Sep 2014 23:04:18 +0400 + pgloader (3.1.0+dfsg-1) unstable; urgency=medium * Stable release of the new pgloader version, 3.1 diff --git a/debian/rules b/debian/rules index 00cd6b3..f7e3829 100755 --- a/debian/rules +++ b/debian/rules @@ -12,6 +12,13 @@ PKGVERS = $(shell dpkg-parsechangelog | awk -F '[:-]' '/^Version:/ { print substr($$2, 2) }') EXCLUDE = --exclude-vcs --exclude=debian --exclude=build --exclude=.vagrant +BITS = $(shell dpkg-architecture -qDEB_BUILD_ARCH_BITS) +ifeq ($(BITS),32) +SIZE=1024 +else +SIZE=4096 +endif + orig: clean cd .. && tar czf pgloader_$(PKGVERS).orig.tar.gz $(EXCLUDE) pgloader @@ -29,7 +36,7 @@ override_dh_auto_build: --load-system pgloader \ --load src/hooks.lisp \ --entry pgloader:main \ - --dynamic-space-size 4096 \ + --dynamic-space-size $(SIZE) \ --compress-core \ --output build/bin/pgloader