Sascha Steinbiss pushed to branch master at Debian Med / lambda-align2

Commits:
8f5302b0 by Sascha Steinbiss at 2019-01-19T22:24:49Z
enable verbose mode in d/rules

- - - - -
d3f174cc by Sascha Steinbiss at 2019-01-19T22:25:28Z
selectively build with multiopt support

- - - - -


2 changed files:

- debian/changelog
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+lambda-align2 (2.0.0-2) unstable; urgency=medium
+
+  * Enable verbose mode in d/rules.
+  * Only activate multiopt builds on archs that support the required
+    compiler flags.
+
+ -- Sascha Steinbiss <sa...@debian.org>  Sat, 19 Jan 2019 23:19:18 +0100
+
 lambda-align2 (2.0.0-1) unstable; urgency=medium
 
   * Initial packaging for 2.x series (Closes: #919726)


=====================================
debian/rules
=====================================
@@ -1,7 +1,18 @@
 #!/usr/bin/make -f
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DH_VERBOSE=1
+
 include /usr/share/dpkg/pkg-info.mk
+include /usr/share/dpkg/architecture.mk
+
+MULTIOPT_ARCHS = amd64 kfreebsd-amd64
+
+ifneq (,$(findstring $(DEB_HOST_ARCH),$(MULTIOPT_ARCHS)))
+       ENABLE_MULTIOPT="-DLAMBDA_MULTIOPT_BUILD=1"
+else
+       ENABLE_MULTIOPT="-DLAMBDA_MULTIOPT_BUILD=0"
+endif
 
 %:
        dh $@ --builddirectory=build
@@ -15,7 +26,7 @@ override_dh_auto_configure:
                -DLAMBDA_NATIVE_BUILD=OFF \
                -DLAMBDA_MMAPPED_DB=OFF \
                -DCMAKE_BUILD_TYPE=Release \
-               -DLAMBDA_MULTIOPT_BUILD=1 \
+               $(ENABLE_MULTIOPT) \
                -DLAMBDA_COMPILE_THREADS=$(shell nproc)
 
 override_dh_auto_test:



View it on GitLab: 
https://salsa.debian.org/med-team/lambda-align2/compare/c81da7b9e7972b0d6217f3a8753f6e5cd873f8c7...d3f174cc3d09fc5c5fc00da3c69dea1b8a6f4728

-- 
View it on GitLab: 
https://salsa.debian.org/med-team/lambda-align2/compare/c81da7b9e7972b0d6217f3a8753f6e5cd873f8c7...d3f174cc3d09fc5c5fc00da3c69dea1b8a6f4728
You're receiving this email because of your account on salsa.debian.org.
_______________________________________________
debian-med-commit mailing list
debian-med-com...@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to