From 93fda87cf88be8508a1075b9995d9efe0088b4c0 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 6 Nov 2012 19:26:50 +0100 Subject: [PATCH] debian: Make the package creation work on debian squeeze (stable) the dh_autoreconf application did not honor the sourcedirectory option back then. Override the target and call autoreconf from the right directory. The libdbi development package is called libdbi0-dev. Use this name for Debian stable but it should work for Ubuntu as well. --- debian/control | 2 +- debian/rules | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/control b/debian/control index d9b347365..e0d75aa74 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: openbsc Section: net Priority: optional Maintainer: Harald Welte -Build-Depends: debhelper (>= 7.0.0~), autotools-dev, pkg-config, libgtp-dev, libosmocore-dev, libosmo-sccp-dev, libdbi-dev, dh-autoreconf, libosmo-abis-dev, libdbd-sqlite3 +Build-Depends: debhelper (>= 7.0.0~), autotools-dev, pkg-config, libgtp-dev, libosmocore-dev, libosmo-sccp-dev, libdbi0-dev, dh-autoreconf, libosmo-abis-dev, libdbd-sqlite3 Standards-Version: 3.8.4 Homepage: http://openbsc.osmocom.org/ Vcs-Git: git://bs11-abis.gnumonks.org/openbsc.git diff --git a/debian/rules b/debian/rules index cac108d1e..89f96ccb8 100755 --- a/debian/rules +++ b/debian/rules @@ -20,6 +20,10 @@ VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/[+-].*//' -e 's/~//g') %: dh --sourcedirectory=openbsc --with autoreconf $@ +# This is needed for debian stable (squeeze) +override_dh_autoreconf: + cd openbsc && autoreconf --install --force + override_dh_auto_configure: echo $(VERSION) > openbsc/.tarball-version dh_auto_configure --sourcedirectory=openbsc -- --enable-nat --enable-osmo-bsc