[med-svn] [Git][med-team/genomethreader][master] build on non-64bit archs
Sascha Steinbiss
gitlab at salsa.debian.org
Mon Jan 20 05:27:07 GMT 2020
Sascha Steinbiss pushed to branch master at Debian Med / genomethreader
Commits:
835cf986 by Sascha Steinbiss at 2020-01-20T06:26:50+01:00
build on non-64bit archs
- - - - -
1 changed file:
- debian/rules
Changes:
=====================================
debian/rules
=====================================
@@ -1,10 +1,20 @@
#!/usr/bin/make -f
+include /usr/share/dpkg/default.mk
+
DH_VERBOSE := 1
export LC_ALL=C.UTF-8
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export LIBVMATCH_PKG_VERSION=$(shell apt-cache policy libvmatch-dev | grep Installed | cut -f2 -d: | cut -c2-)
+DARCH:=$(shell dpkg-architecture | fgrep DEB_TARGET_ARCH= | cut -f 2 -d'=')
+BITS:=$(shell dpkg-architecture | fgrep DEB_TARGET_ARCH_BITS= | cut -f 2 -d'=')
+
+ifeq ($(BITS),64)
+ 64BIT:=yes
+else
+ 64BIT:=no
+endif
%:
dh $@
@@ -15,8 +25,8 @@ override_dh_auto_clean:
rm -f debian/*substvars
override_dh_auto_build:
- make licensemanager=no opt=yes 64bit=yes
- make licensemanager=no opt=yes 64bit=yes train
+ make licensemanager=no opt=yes 64bit=$(64BIT)
+ make licensemanager=no opt=yes 64bit=$(64BIT) train
override_dh_auto_install:
mv bin/bssm debian/bssm
@@ -25,7 +35,7 @@ override_dh_auto_install:
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
- make licensemanager=no 64bit=yes test
+ make licensemanager=no 64bit=$(64BIT) test
endif
override_dh_installman:
@@ -36,4 +46,4 @@ override_dh_installman:
override_dh_gencontrol:
echo "libvmatch-dev:Version=$(LIBVMATCH_PKG_VERSION)" >> debian/genomethreader.substvars
- dh_gencontrol
\ No newline at end of file
+ dh_gencontrol
View it on GitLab: https://salsa.debian.org/med-team/genomethreader/commit/835cf9863207493aa91fc826ede125254a0e5daf
--
View it on GitLab: https://salsa.debian.org/med-team/genomethreader/commit/835cf9863207493aa91fc826ede125254a0e5daf
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/debian-med-commit/attachments/20200120/6a159022/attachment-0001.html>
More information about the debian-med-commit
mailing list