[Pkg-haskell-commits] darcs: haskell-devscripts: Use cdbsn' $(DEB_PACKAGES) instead of parsing debian/control to see if profiling is desired.
Joachim Breitner
mail at joachim-breitner.de
Sat Mar 16 22:41:58 UTC 2013
Sat Mar 16 21:36:58 UTC 2013 Joachim Breitner <mail at joachim-breitner.de>
* Use cdbsn' $(DEB_PACKAGES) instead of parsing debian/control to see if profiling is desired.
Ignore-this: 6ebc4920dd184cb8fdde5fc2ef2e5cbf
M ./debian/changelog +2
M ./hlibrary.mk -1 +3
Sat Mar 16 21:36:58 UTC 2013 Joachim Breitner <mail at joachim-breitner.de>
* Use cdbsn' $(DEB_PACKAGES) instead of parsing debian/control to see if profiling is desired.
Ignore-this: 6ebc4920dd184cb8fdde5fc2ef2e5cbf
diff -rN -u old-haskell-devscripts//debian/changelog new-haskell-devscripts//debian/changelog
--- old-haskell-devscripts//debian/changelog 2013-03-16 22:41:58.394253957 +0000
+++ new-haskell-devscripts//debian/changelog 2013-03-16 22:41:58.422024046 +0000
@@ -2,6 +2,8 @@
* Explicitly mention which Prelude to use in dh_haskell_shlibdeps, thanks to
Clifford Beshers for the patch.
+ * Use cdbsn' $(DEB_PACKAGES) instead of parsing debian/control to see if
+ profiling is desired.
-- Joachim Breitner <nomeata at debian.org> Sun, 27 Jan 2013 19:35:58 +0100
diff -rN -u old-haskell-devscripts//hlibrary.mk new-haskell-devscripts//hlibrary.mk
--- old-haskell-devscripts//hlibrary.mk 2013-03-16 22:41:58.382206570 +0000
+++ new-haskell-devscripts//hlibrary.mk 2013-03-16 22:41:58.422024046 +0000
@@ -32,7 +32,9 @@
DEB_ENABLE_TESTS ?= no
-ENABLE_PROFILING = $(shell egrep -qe '^Package: libghc-.*-prof$$' debian/control && echo --enable-library-profiling; exit 0)
+ifneq (,$(filter libghc-$(CABAL_PACKAGE)-prof,$(DEB_PACKAGES)))
+ENABLE_PROFILING = --enable-library-profiling
+endif
NO_GHCI_FLAG = $(shell test -e /usr/bin/ghci || echo --ghc-option=-DDEBIAN_NO_GHCI; exit 0)
More information about the Pkg-haskell-commits
mailing list