[Pkg-bitcoin-devel] [patch] Backport current git source to Squeeze

Petter Reinholdtsen pere at hungry.com
Fri Dec 21 18:24:34 UTC 2012


Hi.

I promised Jonas on IRC to send him the patch I used to be able to
build the current collab-maint git source on Debian Squeeze.  Here it
is.

-- 
Happy hacking
Petter Reinholdtsen
-------------- next part --------------
diff --git a/debian/changelog b/debian/changelog
index 284070f..0a14f90 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+bitcoin (0.7.2-2.0.squeeze.0) squeeze; urgency=low
+
+  * Backport to Debian Squeeze.
+  * Disable UPnP support, because libminiupnpc-dev do not exist in
+    Squeeze.
+  * Drop dbus support, because it fail to build in Squeeze.
+
+ -- Petter Reinholdtsen <pere at hungry.com>  Thu, 20 Dec 2012 23:26:13 +0100
+
 bitcoin (0.7.2-2) UNRELEASED; urgency=low
 
   [ Scott Howard ]
diff --git a/debian/control b/debian/control
index 2aff9d7..61084be 100644
--- a/debian/control
+++ b/debian/control
@@ -4,10 +4,9 @@ Priority: optional
 Maintainer: Debian Bitcoin Packaging Team <pkg-bitcoin-devel at lists.alioth.debian.org>
 Uploaders: Jonas Smedegaard <dr at jones.dk>, Micah Anderson <micah at debian.org>,
  Scott Howard <showard at debian.org>
-Build-Depends: cdbs,
- debhelper,
+Build-Depends: cdbs (>= 0.4.70~),
  dh-buildinfo,
- devscripts,
+ devscripts (>= 2.10.7~),
  libboost-system-dev,
  libboost-filesystem-dev,
  libboost-program-options-dev,
@@ -16,7 +15,6 @@ Build-Depends: cdbs,
  libdb++-dev | libdb4.8++-dev,
  libssl-dev,
  pkg-config,
- libminiupnpc-dev,
  qt4-qmake,
  libqt4-dev,
  libqrencode-dev
diff --git a/debian/rules b/debian/rules
index ab9c814..57ba29f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -76,7 +76,13 @@ bdbstablever = 4.8
 CDBS_BUILD_DEPENDS += , libdb$(bdbver)++-dev | libdb$(bdbstablever)++-dev
 CDBS_SUGGESTS_bitcoind = db$(bdbver)-util, db$(bdbstablever)-util
 
-CDBS_BUILD_DEPENDS += , libssl-dev, pkg-config, libminiupnpc-dev
+CDBS_BUILD_DEPENDS += , libssl-dev, pkg-config
+
+# Debian Squeeze lack UPnP library
+#CDBS_BUILD_DEPENDS += , libminiupnpc-dev
+# Debian Squeeze lack the UPnP libraries
+DEB_MAKE_BUILD_TARGET += USE_UPNP=-
+DEB_MAKE_CHECK_TARGET += USE_UPNP=-
 
 # Build dependencies for the bitcoin-qt package
 CDBS_BUILD_DEPENDS += , qt4-qmake, libqt4-dev, libqrencode-dev
@@ -87,7 +93,10 @@ DEB_INSTALL_DOCS_ALL =
 pre-build::
 	mkdir -p src/obj/nogui
 	mkdir -p debian/home/.bitcoin
-	qmake USE_DBUS=1 USE_QRCODE=1
+
+	# Drop USE_DBUS=1 because it fail to build in Squeeze
+	# Disable UPnP because libraries are missing in Squeeze
+	qmake USE_UPNP=- USE_QRCODE=1
 
 clean::
 	[ ! -f Makefile ] || make distclean # Clean up after qmake


More information about the Pkg-bitcoin-devel mailing list