[med-svn] [seqan2] 01/01: skip yara on armhf, sh4
Michael Crusoe
misterc-guest at moszumanska.debian.org
Sat Nov 4 09:21:28 UTC 2017
This is an automated email from the git hooks/post-receive script.
misterc-guest pushed a commit to tag debian/2.3.2.000platform-issues3-1d438c8+dfsg-2
in repository seqan2.
commit a3a2a49722c1667217ac3d2d906b6eb00ad3b6af
Author: Michael R. Crusoe <michael.crusoe at gmail.com>
Date: Fri Nov 3 09:30:07 2017 -0700
skip yara on armhf, sh4
---
debian/README.Debian | 24 ++++++++++++++++++++++--
debian/changelog | 7 +++++++
debian/patches/skip-some-apps-on-some-archs | 15 ++++++++++++++-
debian/rules | 4 +++-
debian/source/lintian-overrides | 7 ++++++-
5 files changed, 52 insertions(+), 5 deletions(-)
diff --git a/debian/README.Debian b/debian/README.Debian
index 4ca0dd8..457f2e5 100644
--- a/debian/README.Debian
+++ b/debian/README.Debian
@@ -60,9 +60,29 @@ your preference.
Note: some apps are not built for some architectures due to memory limitations:
-Apps not built for mips{,el}:
+Apps not built for mips & mipsel:
- razers
- razers3
- yara
- -- Michael R. Crusoe <michael.crusoe at gmail.com> Sat, 28 Oct 2017 05:26:27 -0700
+Apps not built for armhf:
+ - yara
+
+Apps not built for sh4:
+ - yara
+
+Likewise the seqan-apps packages on the following architectures are built using
+a lower level of compiler optimization, -O1 instead of -O3:
+ - mips
+ - mipsel
+ - armel
+ - armhf
+ - kfreebsd-amd64
+ - kfreebsd-i386
+ - hurd-i386
+ - sh4
+
+Sending patches to improve the build experience on any of these architectures
+would be welcome by the Debian-Med team and upstream.
+
+ -- Michael R. Crusoe <michael.crusoe at gmail.com> Fri, 03 Nov 2017 09:29:40 -0700
diff --git a/debian/changelog b/debian/changelog
index dd8b5f2..875a50d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+seqan2 (2.3.2.000platform-issues3-1d438c8+dfsg-2) experimental; urgency=medium
+
+ * Skip yara on armhf & sh4.
+ * Disable parallel building on armel
+
+ -- Michael R. Crusoe <michael.crusoe at gmail.com> Sat, 04 Nov 2017 02:09:12 -0700
+
seqan2 (2.3.2.000platform-issues3-1d438c8+dfsg-1) experimental; urgency=medium
* require tests to pass everywhere
diff --git a/debian/patches/skip-some-apps-on-some-archs b/debian/patches/skip-some-apps-on-some-archs
index 51bea52..3948530 100644
--- a/debian/patches/skip-some-apps-on-some-archs
+++ b/debian/patches/skip-some-apps-on-some-archs
@@ -2,6 +2,10 @@ Author: Michael R. Crusoe <michael.crusoe at gmail.com>
Description: Skip some architectures + Seqan app combinations
Could be a bug in gcc or seqan, but the memory requirements on mips{,el} to
compile three of the apps balloons beyond 14GiB, so skip them
+
+If you update this patch (add/remove an architecture/app combo),
+then update debian/README.Debian
+
--- seqan2.orig/apps/razers/CMakeLists.txt
+++ seqan2/apps/razers/CMakeLists.txt
@@ -12,6 +12,16 @@
@@ -42,7 +46,7 @@ compile three of the apps balloons beyond 14GiB, so skip them
# ----------------------------------------------------------------------------
--- seqan2.orig/apps/yara/CMakeLists.txt
+++ seqan2/apps/yara/CMakeLists.txt
-@@ -10,6 +10,16 @@
+@@ -10,6 +10,25 @@
project (seqan_apps_yara CXX)
message (STATUS "Configuring apps/yara")
@@ -54,6 +58,15 @@ compile three of the apps balloons beyond 14GiB, so skip them
+ message (STATUS " Not building yara on mipsel due to memory requirements.")
+ return ()
+endif ()
++if ("$ENV{DEB_BUILD_ARCH}" STREQUAL "armhf")
++ message (STATUS " Not building yara on armhf due to memory requirements.")
++ return ()
++endif ()
++if ("$ENV{DEB_BUILD_ARCH}" STREQUAL "sh4")
++ message (STATUS " Not building yara on sh4 due to memory requirements.")
++ return ()
++endif ()
++
+
+
# ----------------------------------------------------------------------------
diff --git a/debian/rules b/debian/rules
index 643af65..4981eb8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,6 +20,8 @@ include /usr/share/dpkg/buildflags.mk
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+
+# Change this list? Then update debian/README.Debian
ifneq (,$(filter armel armhf mips mipsel kfreebsd% hurd% sh4,$(DEB_BUILD_ARCH)))
CXXFLAGS+=-O1
CFLAGS+=-O1
@@ -32,7 +34,7 @@ ifneq (,$(filter mips mipsel mips64el,$(DEB_BUILD_ARCH)))
export CXXFLAGS+=-mxgot
endif
# Disable parallel building on some build archs to save memory
-ifneq (,$(filter armhf sh4 kfreebsd%,$(DEB_BUILD_ARCH)))
+ifneq (,$(filter armel armhf sh4 kfreebsd%,$(DEB_BUILD_ARCH)))
$(info $$DEB_BUILD_OPTIONS was [${DEB_BUILD_OPTIONS}])
TDBO := $(DEB_BUILD_OPTIONS)
export DEB_BUILD_OPTIONS=parallel=1,$(filter $(TDBO), parallel)
diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides
index dec1714..c4e04f9 100644
--- a/debian/source/lintian-overrides
+++ b/debian/source/lintian-overrides
@@ -1 +1,6 @@
-seqan2 source: debian-rules-sets-DEB_BUILD_OPTIONS line 38
+# We override parallel building on some archs
+seqan2 source: debian-rules-sets-DEB_BUILD_OPTIONS line 40
+
+# False positive, dh-exec is used by the docs package which is currently
+# disabled
+seqan2 source: package-uses-dh-exec-but-lacks-build-depends
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/seqan2.git
More information about the debian-med-commit
mailing list