Bug#852357: ptlib FTCBFS: uses build architecture pkg-config to locate sdl

Helmut Grohne helmut at subdivi.de
Mon Jan 23 20:25:24 UTC 2017


Source: ptlib
Version: 2.10.11~dfsg-2.1
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

ptlib fails to cross build from source, because it uses the build
architecture pkg-config to locate sdl and thus fails finding sdl.
Replacing "pkg-config" with "$PKG_CONFIG" fixes the issue and makes a
cross build run into #852355. Please consider appying the attached
patch.

Helmut
-------------- next part --------------
diff --minimal -Nru ptlib-2.10.11~dfsg/debian/changelog ptlib-2.10.11~dfsg/debian/changelog
--- ptlib-2.10.11~dfsg/debian/changelog	2016-11-30 18:58:13.000000000 +0100
+++ ptlib-2.10.11~dfsg/debian/changelog	2017-01-23 21:16:08.000000000 +0100
@@ -1,3 +1,10 @@
+ptlib (2.10.11~dfsg-2.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Add patch cross (Closes: #-1).
+
+ -- Helmut Grohne <helmut at subdivi.de>  Mon, 23 Jan 2017 21:16:08 +0100
+
 ptlib (2.10.11~dfsg-2.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff --minimal -Nru ptlib-2.10.11~dfsg/debian/patches/cross ptlib-2.10.11~dfsg/debian/patches/cross
--- ptlib-2.10.11~dfsg/debian/patches/cross	1970-01-01 01:00:00.000000000 +0100
+++ ptlib-2.10.11~dfsg/debian/patches/cross	2017-01-23 21:16:08.000000000 +0100
@@ -0,0 +1,33 @@
+From: Helmut Grohne <helmut at subdivi.de>
+Subject: use triplet-prefixed tools to facilitate cross building
+
+Index: ptlib-2.10.11~dfsg/configure.ac
+===================================================================
+--- ptlib-2.10.11~dfsg.orig/configure.ac
++++ ptlib-2.10.11~dfsg/configure.ac
+@@ -1576,8 +1576,8 @@
+                        HAS_SDL=1
+                        AC_DEFINE(P_SDL, 1, "SDL found")
+                        STDCCFLAGS="$STDCCFLAGS ${SDL_CFLAGS}"
+-                       LDFLAGS="$LDFLAGS `pkg-config --libs-only-L sdl`"
+-                       ENDLDLIBS="$ENDLDLIBS `pkg-config --libs-only-l sdl`"
++                       LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs-only-L sdl`"
++                       ENDLDLIBS="$ENDLDLIBS `$PKG_CONFIG --libs-only-l sdl`"
+                       ],[HAS_SDL=])
+   fi
+ fi
+Index: ptlib-2.10.11~dfsg/configure
+===================================================================
+--- ptlib-2.10.11~dfsg.orig/configure
++++ ptlib-2.10.11~dfsg/configure
+@@ -9997,8 +9997,8 @@
+ $as_echo "#define P_SDL 1" >>confdefs.h
+ 
+                        STDCCFLAGS="$STDCCFLAGS ${SDL_CFLAGS}"
+-                       LDFLAGS="$LDFLAGS `pkg-config --libs-only-L sdl`"
+-                       ENDLDLIBS="$ENDLDLIBS `pkg-config --libs-only-l sdl`"
++                       LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs-only-L sdl`"
++                       ENDLDLIBS="$ENDLDLIBS `$PKG_CONFIG --libs-only-l sdl`"
+ 
+ fi
+   fi
diff --minimal -Nru ptlib-2.10.11~dfsg/debian/patches/series ptlib-2.10.11~dfsg/debian/patches/series
--- ptlib-2.10.11~dfsg/debian/patches/series	2015-11-06 18:40:25.000000000 +0100
+++ ptlib-2.10.11~dfsg/debian/patches/series	2017-01-23 21:16:08.000000000 +0100
@@ -2,4 +2,5 @@
 bison-fix
 ppc64el-arm64-mips64.diff
 gcc-5_support
-no-sslv3
\ No newline at end of file
+no-sslv3
+cross


More information about the Pkg-voip-maintainers mailing list