summaryrefslogtreecommitdiff
path: root/p/shellcheck
diff options
context:
space:
mode:
authorJoachim Breitner <mail@joachim-breitner.de>2015-08-22 09:24:15 +0200
committerJoachim Breitner <mail@joachim-breitner.de>2015-08-22 09:24:47 +0200
commitabb2a987d661d671d5aa29a2f9d0fa99047b00f5 (patch)
tree1123a7b5a6b01c2af8dfe7bf72db3c9327ed2771 /p/shellcheck
parentdf56dad10a31d8a89fd701a1784c70946091b3e8 (diff)
downloadDHG_packages-abb2a987d661d671d5aa29a2f9d0fa99047b00f5.tar.gz
hellcheck: Disable the test suite on architectures without a threaded runtime, due to https://github.com/haskell/cabal/issues/2398
Diffstat (limited to 'p/shellcheck')
-rw-r--r--p/shellcheck/debian/changelog7
-rwxr-xr-xp/shellcheck/debian/rules8
2 files changed, 14 insertions, 1 deletions
diff --git a/p/shellcheck/debian/changelog b/p/shellcheck/debian/changelog
index 9eea9dcd5..928c12612 100644
--- a/p/shellcheck/debian/changelog
+++ b/p/shellcheck/debian/changelog
@@ -1,3 +1,10 @@
+shellcheck (0.3.7-4) experimental; urgency=medium
+
+ * Disable the test suite on architectures without a threaded runtime, due to
+ https://github.com/haskell/cabal/issues/2398
+
+ -- Joachim Breitner <nomeata@debian.org> Sat, 22 Aug 2015 09:24:27 +0200
+
shellcheck (0.3.7-3) experimental; urgency=medium
* Add lintian override for spurious rpaths
diff --git a/p/shellcheck/debian/rules b/p/shellcheck/debian/rules
index f4d6826de..822383ef6 100755
--- a/p/shellcheck/debian/rules
+++ b/p/shellcheck/debian/rules
@@ -1,6 +1,12 @@
#!/usr/bin/make -f
-DEB_ENABLE_TESTS = $(shell test -x /usr/bin/ghci && echo yes)
+
+ifeq (yes,$(shell test -e /usr/bin/ghci && echo yes))
+# https://github.com/haskell/cabal/issues/2398
+ifeq (yes,$(shell ghc --info | grep -q 'Support SMP.*YES' && echo yes))
+DEB_ENABLE_TESTS = yes
+endif
+endif
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/hlibrary.mk