Hi.  Here is a draft patch to enable a new bitcoin-qt package with the
Qt GUI program included.  I am not very skilled with CDBS, and thus
didn't quite succeed in changing the built rules in a sensible way.  I
am just offering this patch as a starting point for the next person
looking at this bug report.  Note, the patch isn't quite right.  I
ran out of time and just wanted to share the current status.

-- 
Happy hacking
Petter Reinholdtsen
diff -N -ur bitcoin-0.7.2-orig/debian/bitcoin-qt.install bitcoin-0.7.2/debian/bitcoin-qt.install
--- bitcoin-0.7.2-orig/debian/bitcoin-qt.install	1970-01-01 01:00:00.000000000 +0100
+++ bitcoin-0.7.2/debian/bitcoin-qt.install	2012-12-19 23:29:21.318697299 +0100
@@ -0,0 +1 @@
+bitcoin-qt usr/bin
diff -N -ur bitcoin-0.7.2-orig/debian/control bitcoin-0.7.2/debian/control
--- bitcoin-0.7.2-orig/debian/control	2012-12-12 17:57:12.000000000 +0100
+++ bitcoin-0.7.2/debian/control	2012-12-19 23:30:58.442689128 +0100
@@ -10,6 +10,7 @@
  devscripts,
  libboost-system-dev (>> 1.35) | libboost-system1.35-dev,
  libdb++-dev | libdb4.6++-dev,
+ qt4-qmake, libqt4-dev, libboost-dev,
  libssl-dev,
  pkg-config,
  libglib2.0-dev,
@@ -41,3 +42,22 @@
  .
  This package provides bitcoind, a combined daemon and CLI tool to
  interact with the daemon.
+
+Package: bitcoin-qt
+Architecture: any-alpha any-amd64 any-arm any-i386 any-ia64 any-mipsel any-sh4
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Suggests: ${cdbs:Suggests}
+Description: peer-to-peer network based digital currency - GUI
+ Bitcoin is a free open source peer-to-peer electronic cash system that
+ is completely decentralized, without the need for a central server or
+ trusted parties.  Users hold the crypto keys to their own money and
+ transact directly with each other, with the help of a P2P network to
+ check for double-spending.
+ .
+ By default connects to an IRC network to discover other peers.
+ .
+ Full transaction history is stored locally at each client.  This
+ requires several GB of space, slowly growing.
+ .
+ This package provides bitcoin-qt, a GUI tool to interact with the
+ bitcoind daemon.
diff -N -ur bitcoin-0.7.2-orig/debian/control.in bitcoin-0.7.2/debian/control.in
--- bitcoin-0.7.2-orig/debian/control.in	2012-12-03 01:43:49.000000000 +0100
+++ bitcoin-0.7.2/debian/control.in	2012-12-20 00:07:38.646696005 +0100
@@ -27,3 +27,22 @@
  .
  This package provides bitcoind, a combined daemon and CLI tool to
  interact with the daemon.
+
+Package: bitcoin-qt
+Architecture: any-alpha any-amd64 any-arm any-i386 any-ia64 any-mipsel any-sh4
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Suggests: ${cdbs:Suggests}
+Description: peer-to-peer network based digital currency - GUI
+ Bitcoin is a free open source peer-to-peer electronic cash system that
+ is completely decentralized, without the need for a central server or
+ trusted parties.  Users hold the crypto keys to their own money and
+ transact directly with each other, with the help of a P2P network to
+ check for double-spending.
+ .
+ By default connects to an IRC network to discover other peers.
+ .
+ Full transaction history is stored locally at each client.  This
+ requires several GB of space, slowly growing.
+ .
+ This package provides bitcoin-qt, a GUI tool to interact with the
+ bitcoind daemon.
diff -N -ur bitcoin-0.7.2-orig/debian/rules bitcoin-0.7.2/debian/rules
--- bitcoin-0.7.2-orig/debian/rules	2012-12-17 00:11:32.000000000 +0100
+++ bitcoin-0.7.2/debian/rules	2012-12-20 08:01:23.070698787 +0100
@@ -39,6 +39,7 @@
 DEB_MAKE_CHECK_TARGET = test_bitcoin
 build/bitcoind::
 	$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),,src/test_bitcoin)
+	$(MAKE)
 
 # work around build failure with gcc 4.7
 CXXFLAGS += -fpermissive
@@ -68,7 +69,7 @@
 CDBS_BUILD_DEPENDS += , $(call boostdep,filesystem program-options thread test)
 
 # TODO: fix support DEB_QMAKE_BUILDDIR and install binary into -qt package
-#CDBS_BUILD_DEPENDS += , qt4-qmake, libqt4-dev
+CDBS_BUILD_DEPENDS += , qt4-qmake, libqt4-dev, libboost-dev
 
 CDBS_SUGGESTS_bitcoind = db-util, db4.8-util, db4.7-util
 
@@ -77,10 +78,13 @@
 
 pre-build::
 	mkdir -p src/obj/nogui
+	qmake
 clean::
+	[ ! -f Makefile ] || make distclean
 	find src/obj -type f -not -name .gitignore -delete
 	rm -f src/bitcoind
+	rm -f build/build.h
 
 # Ensure wrapper is set executable
 binary-post-install/bitcoind::
-	chmod +x $(cdbs_curdestdir)usr/bin/bitcoind
+	chmod +x $(cdbs_curdestdir)/../bitcoind/usr/bin/bitcoind

Reply via email to