[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#947262: ibus: Please omit ibus-tests binary package on Ubuntu/i386



Package: ibus
Version: 1.5.21-4
Severity: minor
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu focal ubuntu-patch

Dear maintainers,

In Ubuntu, we are in the process of moving the i386 architecture to a
compatibility-only layer on amd64.  We are keeping ibus on i386 because
ibus-gtk is relevant for legacy applications, but the ibus-tests package
built from this source has dependencies on other packages that are not being
kept as part of the compatibility library set (e.g. gnome-shell).

We would like to drop the ibus-tests binary package rather than keeping it
around in the Ubuntu archive and uninstallable.  Would you please consider
applying the attached patch, or something like it, to omit building this
binary package on Ubuntu?

Thanks for considering,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slangasek@ubuntu.com                                     vorlon@debian.org
diff -Nru ibus-1.5.21/debian/rules ibus-1.5.21/debian/rules
--- ibus-1.5.21/debian/rules	2019-11-12 14:17:39.000000000 -0600
+++ ibus-1.5.21/debian/rules	2019-12-23 13:21:12.000000000 -0600
@@ -6,6 +6,12 @@
 export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+
+ifeq ($(shell dpkg-vendor --is Ubuntu && echo yes) $(DEB_HOST_ARCH), yes i386)
+   skip_packages = -Nibus-tests
+endif
+
 %:
 	dh $@ --with gir,python3
 
@@ -78,3 +84,9 @@
 	rm -rf $(CURDIR)/debian/tmp-xdg-cache-home
 	rm -rf $(CURDIR)/debian/tmp-xdg-data-home
 endif
+
+override_dh_builddeb:
+	dh_builddeb ${skip_packages}
+
+override_dh_gencontrol:
+	dh_gencontrol ${skip_packages}

Reply to: