[saga] 02/02: Temporarily disable building saga gui on arm

Johan Van de Wauw johanvdw-guest at moszumanska.debian.org
Sun Aug 10 13:37:22 UTC 2014


This is an automated email from the git hooks/post-receive script.

johanvdw-guest pushed a commit to branch master
in repository saga.

commit bdb9083eb61b448df44034db9de6a85ef3abf63e
Author: Johan Van de Wauw <johan.vandewauw at gmail.com>
Date:   Sun Aug 10 15:33:29 2014 +0200

    Temporarily disable building saga gui on arm
    
    Fixes #755361
---
 debian/libsaga-dev.install |  9 ++++++---
 debian/rules               | 10 +++++++++-
 2 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/debian/libsaga-dev.install b/debian/libsaga-dev.install
old mode 100644
new mode 100755
index 1dfc81a..26ce97f
--- a/debian/libsaga-dev.install
+++ b/debian/libsaga-dev.install
@@ -1,5 +1,8 @@
-src/saga_core/saga_api/*.h /usr/include/saga_api/
+#!/bin/bash 
+echo "src/saga_core/saga_api/*.h /usr/include/saga_api/
 src/saga_core/saga_gdi/*.h /usr/include/saga_gdi/
 debian/saga-depends /usr/bin/
-usr/lib/*/libsaga_api.so
-usr/lib/*/libsaga_gdi.so
+usr/lib/*/libsaga_api.so"
+if [ -f usr/lib/*/libsaga_gdi.so ]
+ then echo "usr/lib/*/libsaga_gdi.so"
+fi
diff --git a/debian/rules b/debian/rules
index 42abbeb..1b7475e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,12 +1,20 @@
 #!/usr/bin/make -f
 
 CFLAGS+=$(CPPFLAGS)
+DEB_BUILD_ARCH_CPU := $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU 2>/dev/null)
+ifeq ($(DEB_BUILD_ARCH_CPU), arm)
+    DISABLE_GUI := '--disable-gui'
+else ifeq ($(DEB_BUILD_ARCH_CPU), armhf)
+    DISABLE_GUI := '--disable-gui'
+else
+    DISABLE_GUI := ''
+endif
 
 %:
 	dh $@ --with python2 --with autoreconf
 
 override_dh_auto_configure:
-	dh_auto_configure -- --prefix=/usr --enable-python $(shell dpkg-buildflags --export=configure)
+	dh_auto_configure -- $(DISABLE_GUI) --prefix=/usr --enable-python $(shell dpkg-buildflags --export=configure)
 
 VERSION := $(shell grep '^AC_INIT' configure.ac | \
 	sed 's/AC_INIT(saga, \([0-9|\.]*\)\,.*)/\1/g')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/saga.git



More information about the Pkg-grass-devel mailing list