Source: ibus-client-clutter
Version: 0.0+git20090728.a936bacf-7
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

ibus-client-clutter fails to cross build from source, because it
generates an invalid dependency on glib. The libglib2.0-0 package
happens to have two instances during cross builds, so the query in
debian/rules constructs the dependency twice without separating them
with a comma. The attached patch restricts it to only the host
architecture instance and makes ibus-client-clutter cross buildable.
Please consider applying it.

Helmut
diff --minimal -Nru 
ibus-client-clutter-0.0+git20090728.a936bacf/debian/changelog 
ibus-client-clutter-0.0+git20090728.a936bacf/debian/changelog
--- ibus-client-clutter-0.0+git20090728.a936bacf/debian/changelog       
2021-03-27 12:33:11.000000000 +0100
+++ ibus-client-clutter-0.0+git20090728.a936bacf/debian/changelog       
2021-09-05 20:56:46.000000000 +0200
@@ -1,3 +1,10 @@
+ibus-client-clutter (0.0+git20090728.a936bacf-7.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Fix glib dependency syntax. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 05 Sep 2021 20:56:46 +0200
+
 ibus-client-clutter (0.0+git20090728.a936bacf-7) unstable; urgency=medium
 
   [ Andreas Beckmann <a...@debian.org> ]
diff --minimal -Nru ibus-client-clutter-0.0+git20090728.a936bacf/debian/rules 
ibus-client-clutter-0.0+git20090728.a936bacf/debian/rules
--- ibus-client-clutter-0.0+git20090728.a936bacf/debian/rules   2021-03-27 
12:26:39.000000000 +0100
+++ ibus-client-clutter-0.0+git20090728.a936bacf/debian/rules   2021-09-05 
20:56:44.000000000 +0200
@@ -4,6 +4,7 @@
 DEB_VERSION := $(shell dpkg-parsechangelog | grep Version: | sed -e 
's/Version: //')
 DEB_UPSTREAM_VERSION := $(shell echo $(DEB_VERSION) | sed -e 's/-[^-]*$$//')
 
+include /usr/share/dpkg/architecture.mk
 include /usr/share/cdbs/1/class/autotools.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/rules/autoreconf.mk
@@ -14,7 +15,7 @@
 DEB_CONFIGURE_EXTRA_FLAGS += --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)\
 
 # tighten libglib2.0-0 dependency due to glib_check_version() usage (#985453)
-DEB_DH_GENCONTROL_ARGS_ibus-clutter = -- -V'glib:Depends=$(shell dpkg-query -f 
'$${package} (>= $${source:Upstream-Version})' -W libglib2.0-0)'
+DEB_DH_GENCONTROL_ARGS_ibus-clutter = -- -V'glib:Depends=$(shell dpkg-query -f 
'$${package} (>= $${source:Upstream-Version})' -W 
'libglib2.0-0:${DEB_HOST_ARCH}')'
 
 GIT_URL = git://git.moblin.org/ibus-client-clutter
 

Reply via email to