Source: pocketsphinx
Version: 0.8+5prealpha+1-15
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs

pocketsphinx fails to cross build from source. At the dh_install stage, 
it misses the gstreamer plugin. The upstream configure.ac opts out of 
building it when it detects cross compilation. While that may be useful 
upstream. The Debian package should not differ between a native and a 
cross build. I'm attaching a patch that drops this branch and once 
applying it, pocketsphinx cross builds successfully. I'm not sure 
whether this is upstreamable. Maybe it could be turned into some 
user-selectable conditional? Please consider carrying the patch on the 
Debian side.

Helmut
--- pocketsphinx-0.8+5prealpha+1.orig/configure.ac
+++ pocketsphinx-0.8+5prealpha+1/configure.ac
@@ -50,8 +50,7 @@
 		       gstreamer-base-$GST_MAJORMINOR >= 1.0
 		       gstreamer-plugins-base-$GST_MAJORMINOR >= 1.0],
                   HAVE_GST=yes, HAVE_GST=no)
-dnl Don't build GStreamer when cross-compiling
-AM_CONDITIONAL(BUILD_GST, test x$cross_compiling != xyes && test "x$HAVE_GST" = "xyes")
+AM_CONDITIONAL(BUILD_GST, test "x$HAVE_GST" = "xyes")
 GST_CFLAGS="$GStreamer_CFLAGS $GStreamer_ERROR"
 GST_LIBS="$GStreamer_LIBS"
 AC_SUBST(GST_MAJORMINOR)

Reply via email to