Source: gst-plugins-good1.0
Version: 1.14.4-1
Tags: patch
User: [email protected]
Usertags: rebootstrap

gst-plugins-good1.0 does not specify which moc version to use. This
results in a cross build failure:

| make[4]: Entering directory '/<<PKGBUILDDIR>>/ext/qt'
| /usr/bin/moc -o moc_qtitem.cc -DHAVE_CONFIG_H -I. -I../..   qtitem.h
| moc: could not find a Qt installation of ''
| make[4]: *** [Makefile:1127: moc_qtitem.cc] Error 1
| make[4]: Leaving directory '/<<PKGBUILDDIR>>/ext/qt'
| make[3]: *** [Makefile:1002: qt] Error 2
| make[3]: Leaving directory '/<<PKGBUILDDIR>>/ext'
| make[2]: *** [Makefile:742: all-recursive] Error 1
| make[2]: Leaving directory '/<<PKGBUILDDIR>>'
| make[1]: *** [Makefile:673: all] Error 2
| make[1]: Leaving directory '/<<PKGBUILDDIR>>'
| make: *** [/usr/share/cdbs/1/class/makefile.mk:77: 
debian/stamp-makefile-build] Error 2

There are two ways of specifying a qt version:
 * A dependency on qt<N>-default.
 * Exporting QT_SELECT=<N>.

When doing neither, you cannot expect qt tools to work (and that's what
we see during cross compilation). Source packages are supposed to always
use the latter method. The former is reserved to users.

The attached patch introduces the necessary environment variable, but
doesn't make gst-plugins-good1.0 cross buildable, because
dh_gstscancodecs fails and I have no clue how to fix that. Please close
this bug when fixing the moc invocation (e.g. by applying my patch).

Thanks to Dmitry Shachnev for pointing at QT_SELECT.

Helmut
diff --minimal -Nru gst-plugins-good1.0-1.14.4/debian/changelog 
gst-plugins-good1.0-1.14.4/debian/changelog
--- gst-plugins-good1.0-1.14.4/debian/changelog 2018-10-03 12:55:34.000000000 
+0200
+++ gst-plugins-good1.0-1.14.4/debian/changelog 2019-01-01 12:20:31.000000000 
+0100
@@ -1,3 +1,10 @@
+gst-plugins-good1.0 (1.14.4-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Export QT_SELECT to explain which moc to use. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Tue, 01 Jan 2019 12:20:31 +0100
+
 gst-plugins-good1.0 (1.14.4-1) unstable; urgency=medium
 
   * New upstream bugfix release
diff --minimal -Nru gst-plugins-good1.0-1.14.4/debian/rules 
gst-plugins-good1.0-1.14.4/debian/rules
--- gst-plugins-good1.0-1.14.4/debian/rules     2018-10-03 12:55:32.000000000 
+0200
+++ gst-plugins-good1.0-1.14.4/debian/rules     2019-01-01 12:20:18.000000000 
+0100
@@ -8,6 +8,7 @@
 # Work-around for gtk-doc bug:
 # https://bugzilla.gnome.org/show_bug.cgi?id=783926
 export PYTHONIOENCODING="utf-8"
+export QT_SELECT=5
 
 DEB_BUILD_PARALLEL = 1
 

Reply via email to