From 91c26acc3361e2e3d19e7ff7ddd04d4a02e92e31 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com>
Date: Wed, 4 Apr 2018 12:13:59 +0300
Subject: [PATCH] Disable Qt5 plugin on armhf/armel due to mesa headers being
 broken so that this package can move to testing (see #894076)

---
 debian/changelog  | 9 +++++++++
 debian/control    | 3 ++-
 debian/control.in | 3 ++-
 debian/rules      | 9 +++++++++
 4 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index c033de273..453ab7aef 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+gst-plugins-good1.0 (1.14.0-2) unstable; urgency=medium
+
+  * debian/control.in,
+    debian/rules:
+    + Disable Qt5 plugin on armhf/armel due to mesa headers being broken so
+      that this package can move to testing (see #894076).
+
+ -- Sebastian Dröge <slomo@debian.org>  Wed, 04 Apr 2018 12:12:43 +0300
+
 gst-plugins-good1.0 (1.14.0-1) unstable; urgency=medium
 
   * New upstream stable release.
diff --git a/debian/control b/debian/control
index 716bd53c9..cd124d4f1 100644
--- a/debian/control
+++ b/debian/control
@@ -54,7 +54,8 @@ Description: GStreamer plugin for PulseAudio
  for POSIX and WIN32 systems.
 
 Package: gstreamer1.0-qt5
-Architecture: any
+#Architecture: any
+Architecture: any-amd64 any-arm64 any-i386 any-mips any-mips64el any-mipsel any-ppc64el any-s390x any-alpha any-hppa any-ia64 any-m68k any-powerpc any-powerpcspe any-ppc64 any-riscv64 any-sh4 any-sparc64 any-x32
 Multi-Arch: same
 Section: graphics
 Depends: ${misc:Depends},
diff --git a/debian/control.in b/debian/control.in
index 7ea55c9a5..6d5e2b67d 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -54,7 +54,8 @@ Description: GStreamer plugin for PulseAudio
  for POSIX and WIN32 systems.
 
 Package: @GST_PKGNAME@-qt5
-Architecture: any
+#Architecture: any
+Architecture: any-amd64 any-arm64 any-i386 any-mips any-mips64el any-mipsel any-ppc64el any-s390x any-alpha any-hppa any-ia64 any-m68k any-powerpc any-powerpcspe any-ppc64 any-riscv64 any-sh4 any-sparc64 any-x32
 Multi-Arch: same
 Section: graphics
 Depends: ${misc:Depends},
diff --git a/debian/rules b/debian/rules
index 4f1777a41..a031efebd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -94,6 +94,15 @@ else
 oss4 = debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/gstreamer-$(gst_abi)/libgstoss4.so
 endif
 
+
+# workaround for mesa headers being broken (#894076)
+ifeq ($(DEB_HOST_ARCH_CPU),armel)
+CONFIG_ARGS += --disable-qt
+endif
+ifeq ($(DEB_HOST_ARCH_CPU),armhf)
+CONFIG_ARGS += --disable-qt
+endif
+
 ifeq ($(DEB_HOST_ARCH_OS),linux)
 DEFAULT_AUDIOSINK = autoaudiosink
 DEFAULT_AUDIOSRC = autoaudiosrc
-- 
GitLab