]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Handle debian's libtool-bin change
authorTravis Cross <tc@traviscross.com>
Thu, 30 Oct 2014 00:19:52 +0000 (00:19 +0000)
committerTravis Cross <tc@traviscross.com>
Thu, 30 Oct 2014 00:27:22 +0000 (00:27 +0000)
The libtool binary used to be contained in the libtool package.  As of
current sid/jessie the libtool package contains everything about
libtool but the libtool binary, and we need to install libtool-bin to
get the libtool binary itself.  Which is to say that Debian decided to
make the libtool package architecture-independent.

Without this commit the FS debian packaging will not build/bootstrap
on sid/jessie.

debian/bootstrap.sh

index 650dfb8ecd711a0cf588ff2e41ad8e044542f7a4..01165c557c6d77b1300f1f85e2509ef1c00858f7 100755 (executable)
@@ -271,6 +271,10 @@ list_freeswitch_all_dbg_replaces () {
 }
 
 print_source_control () {
+  local libtool_dep="libtool, libtool-bin"
+  if test "$codename" = wheezy || test "$codename" = squeeze; then
+    libtool_dep="libtool"
+  fi
 cat <<EOF
 Source: freeswitch
 Section: comm
@@ -280,7 +284,7 @@ Build-Depends:
 # for debian
  debhelper (>= 8.0.0),
 # bootstrapping
- automake (>= 1.9), autoconf, libtool,
+ automake (>= 1.9), autoconf, ${libtool_dep},
 # core build
  dpkg-dev (>= 1.15.8.12), gcc (>= 4:4.4.5), g++ (>= 4:4.4.5),
  libc6-dev (>= 2.11.3), make (>= 3.81),