Source: linphone
Version: 3.6.1-4
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

linphone cannot satisfy its cross Build-Depends, because it
(transitively) requests libxml-parser-perl for multiple architectures.
It really doesn't need that library directly, but its autoconf checks
for intltool happen to check for prerequisites of intltool. intltool
itself is marked Multi-Arch: foreign and thus selects the build
architecture libxml-parser-perl while Build-Depends are treated as host
architecture otherwise, thus the conflict. I think dropping the
dependency is the way to go as linphone should not assume how intltool
is implemented.

Then it fails finding libupnp with the build architecture pkg-config.
Making the uses substitutable is the missing piece to makes linphone
cross buildable. Please consider applying the attached patch.

Helmut
diff --minimal -Nru linphone-3.6.1/debian/changelog 
linphone-3.6.1/debian/changelog
--- linphone-3.6.1/debian/changelog     2018-06-20 19:46:03.000000000 +0200
+++ linphone-3.6.1/debian/changelog     2018-07-11 09:32:53.000000000 +0200
@@ -1,3 +1,12 @@
+linphone (3.6.1-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Drop unused Build-Depends libxml-parser-perl, really uses intltool.
+    + cross.patch: Don't hard code pkg-config.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Wed, 11 Jul 2018 09:32:53 +0200
+
 linphone (3.6.1-4) unstable; urgency=medium
 
   * Team upload fixing some issues in sid while waiting for the
diff --minimal -Nru linphone-3.6.1/debian/control linphone-3.6.1/debian/control
--- linphone-3.6.1/debian/control       2018-06-20 19:46:03.000000000 +0200
+++ linphone-3.6.1/debian/control       2018-07-11 09:32:50.000000000 +0200
@@ -50,7 +50,6 @@
                libv4l-dev [linux-any],
                libvpx-dev,
                libxext-dev,
-               libxml-parser-perl,
                libxv-dev,
                mesa-common-dev,
                pkg-config,
diff --minimal -Nru linphone-3.6.1/debian/patches/cross.patch 
linphone-3.6.1/debian/patches/cross.patch
--- linphone-3.6.1/debian/patches/cross.patch   1970-01-01 01:00:00.000000000 
+0100
+++ linphone-3.6.1/debian/patches/cross.patch   2018-07-11 09:32:53.000000000 
+0200
@@ -0,0 +1,22 @@
+--- linphone-3.6.1.orig/configure.ac
++++ linphone-3.6.1/configure.ac
+@@ -184,7 +184,7 @@
+ 
+ if test "$build_upnp" != "false" ; then
+       PKG_CHECK_MODULES([LIBUPNP], [libupnp], 
+-              [if  pkg-config --atleast-version=1.6 "libupnp < 1.7"; then
++              [if $PKG_CONFIG --atleast-version=1.6 "libupnp < 1.7"; then
+                       build_upnp=true
+               else
+                       AC_MSG_ERROR([libupnp >= 1.6 < 1.5 required.])
+--- linphone-3.6.1.orig/mediastreamer2/configure.ac
++++ linphone-3.6.1/mediastreamer2/configure.ac
+@@ -569,7 +569,7 @@
+ 
+ if test "$build_upnp" != "false" ; then
+       PKG_CHECK_MODULES([LIBUPNP], [libupnp], 
+-              [if  pkg-config --atleast-version=1.6 "libupnp < 1.7"; then
++              [if $PKG_CONFIG --atleast-version=1.6 "libupnp < 1.7"; then
+                       build_upnp=true
+                       old_CFLAGS="$CFLAGS"
+                       CFLAGS="$CFLAGS $LIBUPNP_CFLAGS"
diff --minimal -Nru linphone-3.6.1/debian/patches/series 
linphone-3.6.1/debian/patches/series
--- linphone-3.6.1/debian/patches/series        2018-06-20 19:46:03.000000000 
+0200
+++ linphone-3.6.1/debian/patches/series        2018-07-11 09:32:53.000000000 
+0200
@@ -11,3 +11,4 @@
 ffmpeg_4.0.patch
 wizard-relax-domain.patch
 wizard-relax-username.patch
+cross.patch

Reply via email to