[DHG_packages] 02/06: happy: Implement a stage1 profile build for bootstrapping.

Colin Watson cjwatson at moszumanska.debian.org
Tue Dec 22 02:42:04 UTC 2015


This is an automated email from the git hooks/post-receive script.

cjwatson pushed a commit to branch master
in repository DHG_packages.

commit 4c4a40bea16b7d2c38874ec69d0e9e517e456893
Author: Colin Watson <cjwatson at debian.org>
Date:   Tue Dec 22 02:33:52 2015 +0000

    happy: Implement a stage1 profile build for bootstrapping.
---
 p/happy/debian/changelog | 6 ++++++
 p/happy/debian/control   | 5 +++--
 p/happy/debian/rules     | 7 +++++++
 3 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/p/happy/debian/changelog b/p/happy/debian/changelog
index 154a905..d85fc40 100644
--- a/p/happy/debian/changelog
+++ b/p/happy/debian/changelog
@@ -1,3 +1,9 @@
+happy (1.19.5-5) UNRELEASED; urgency=medium
+
+  * Implement a stage1 profile build for bootstrapping.
+
+ -- Colin Watson <cjwatson at debian.org>  Tue, 22 Dec 2015 01:54:14 +0000
+
 happy (1.19.5-4) unstable; urgency=medium
 
   * Switch Vcs-Git/Vcs-Browser headers to new location.
diff --git a/p/happy/debian/control b/p/happy/debian/control
index 1646f71..a6f376e 100644
--- a/p/happy/debian/control
+++ b/p/happy/debian/control
@@ -6,7 +6,8 @@ Uploaders: Iain Lane <laney at ubuntu.com>
 Standards-Version: 3.9.6
 Build-Depends: cdbs (>= 0.4.59),
                haskell-devscripts (>= 0.10),
-               debhelper (>= 9),
+               debhelper (>= 9.20141010),
+               dpkg-dev (>= 1.17.14),
                autoconf,
                docbook-utils,
                ghc (>= 7.10),
@@ -14,7 +15,7 @@ Build-Depends: cdbs (>= 0.4.59),
                docbook-xml,
                xsltproc,
                libghc-mtl-dev,
-               happy
+               happy <!stage1>
 Homepage: http://www.haskell.org/happy
 Vcs-Git: git://git.debian.org/git/pkg-haskell/DHG_packages.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-haskell/DHG_packages.git/
diff --git a/p/happy/debian/rules b/p/happy/debian/rules
index 9aee53e..3af4434 100755
--- a/p/happy/debian/rules
+++ b/p/happy/debian/rules
@@ -13,6 +13,13 @@ include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/hlibrary.mk
 include /usr/share/cdbs/1/rules/utils.mk
 
+ifneq (,$(filter stage1,$(DEB_BUILD_PROFILES)))
+DEB_SETUP_GHC_CONFIGURE_ARGS += --with-happy=/bin/true
+
+cleanbuilddir/happy::
+	cp -a dist/build/happy/happy-tmp/*.hs src/
+endif
+
 clean::
 	[ ! -f doc/config.mk ] || $(MAKE) -C doc clean
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-haskell/DHG_packages.git



More information about the Pkg-haskell-commits mailing list