[Git][haskell-team/DHG_packages][master] genvalidity: don't build testsuite with -N on architectures without SMP support

Clint Adams gitlab at salsa.debian.org
Fri Apr 27 14:01:30 BST 2018


Clint Adams pushed to branch master at Debian Haskell Group / DHG_packages


Commits:
18459129 by Clint Adams at 2018-04-27T09:01:01-04:00
genvalidity: don't build testsuite with -N on architectures without SMP support

- - - - -


4 changed files:

- p/haskell-genvalidity/debian/changelog
- + p/haskell-genvalidity/debian/patches/no--N
- + p/haskell-genvalidity/debian/patches/series
- p/haskell-genvalidity/debian/rules


Changes:

=====================================
p/haskell-genvalidity/debian/changelog
=====================================
--- a/p/haskell-genvalidity/debian/changelog
+++ b/p/haskell-genvalidity/debian/changelog
@@ -1,3 +1,9 @@
+haskell-genvalidity (0.4.0.4-2) unstable; urgency=medium
+
+  * Don't build testsuite with -N on architectures without SMP support.
+
+ -- Clint Adams <clint at debian.org>  Fri, 27 Apr 2018 09:00:27 -0400
+
 haskell-genvalidity (0.4.0.4-1) unstable; urgency=low
 
   * Initial release.


=====================================
p/haskell-genvalidity/debian/patches/no--N
=====================================
--- /dev/null
+++ b/p/haskell-genvalidity/debian/patches/no--N
@@ -0,0 +1,23 @@
+--- a/genvalidity.cabal
++++ b/genvalidity.cabal
+@@ -59,12 +59,19 @@
+       Paths_genvalidity
+   default-language: Haskell2010
+ 
++flag smp
++  description:          build test with -N
++  default:              True
++
+ test-suite genvalidity-test
+   type: exitcode-stdio-1.0
+   main-is: Spec.hs
+   hs-source-dirs:
+       test
+-  ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -fno-warn-name-shadowing
++  if flag(smp)
++    ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -fno-warn-name-shadowing
++  else
++    ghc-options: -threaded -Wall -fno-warn-name-shadowing
+   build-depends:
+       QuickCheck
+     , base


=====================================
p/haskell-genvalidity/debian/patches/series
=====================================
--- /dev/null
+++ b/p/haskell-genvalidity/debian/patches/series
@@ -0,0 +1 @@
+no--N


=====================================
p/haskell-genvalidity/debian/rules
=====================================
--- a/p/haskell-genvalidity/debian/rules
+++ b/p/haskell-genvalidity/debian/rules
@@ -5,5 +5,9 @@ DEB_SETUP_BIN_NAME = debian/hlibrary.setup
 DEB_CABAL_PACKAGE = genvalidity
 DEB_DEFAULT_COMPILER = ghc
 
+ifeq (no,$(shell ghc --info | grep -q 'Support SMP.*NO' && echo no))
+       DEB_SETUP_GHC_CONFIGURE_ARGS += -f-smp
+endif
+
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/hlibrary.mk



View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/commit/1845912939c9326f958458c27f23ee531026de78

---
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/commit/1845912939c9326f958458c27f23ee531026de78
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/pkg-haskell-commits/attachments/20180427/5250c5a4/attachment-0001.html>


More information about the Pkg-haskell-commits mailing list