]> 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:25:43 +0000 (00:25 +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 225f37e6c97dee4a7451ab85a5dbde9158d9656e..c7499817705c3ad7ef5113870c404e01c4f37509 100755 (executable)
@@ -274,6 +274,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
@@ -283,7 +287,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),