Commit 9e2d807e authored by Clint Adams's avatar Clint Adams

debian: patch to build executables without -threaded on architectures without threaded runtime

parent 0579a2f0
haskell-debian (3.91.2-1) unstable; urgency=medium
* New upstream release
* Patch to build executables without -threaded on architectures
without threaded runtime.
-- Clint Adams <clint@debian.org> Tue, 27 Jun 2017 22:10:23 -0400
......
--- a/debian.cabal
+++ b/debian.cabal
@@ -24,6 +24,10 @@
Description: pretty-1.1.2 includes the Text.PrettyPrint.HughesPJClass module from prettyclass
Default: True
+flag threaded
+ description: build threaded
+ default: True
+
Library
Hs-Source-Dirs: .
Build-Depends:
@@ -107,14 +111,18 @@
Hs-Source-Dirs: utils
Main-is: FakeChanges.hs
Build-Depends: base, debian, directory, filepath
- ghc-options: -threaded -W -O2
+ ghc-options: -W -O2
+ if flag(threaded)
+ ghc-options: -threaded
Extensions: ExistentialQuantification CPP
Executable debian-report
Hs-Source-Dirs: utils
Main-is: Report.hs
Build-Depends: base, debian, HaXml, unix
- ghc-options: -threaded -W -O2
+ ghc-options: -W -O2
+ if flag(threaded)
+ ghc-options: -threaded
C-Sources: cbits/gwinsz.c
Include-Dirs: cbits
Install-Includes: gwinsz.h
@@ -125,7 +133,9 @@
Hs-Source-Dirs: utils
Main-is: AptGetBuildDeps.hs
Build-Depends: base, debian, process
- ghc-options: -threaded -W -O2
+ ghc-options: -W -O2
+ if flag(threaded)
+ ghc-options: -threaded
Extensions: ExistentialQuantification CPP
Test-Suite debian-tests
......@@ -2,6 +2,7 @@
DEB_BUILD_DEPENDENCIES = build-arch
DEB_ENABLE_TESTS = yes
DEB_SETUP_GHC_CONFIGURE_ARGS=$(if $(wildcard /usr/lib/ghc/*/libHSrts_thr.a),,-f-threaded)
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/hlibrary.mk
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment