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

Bug#947185: cups: Please omit cups server packages on Ubuntu/i386



Package: cups
Version: 2.3.0-7
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 cups on i386 because
libcups2 is needed by various 32-bit only binaries, but the cups server
packages built from this source have dependencies on other packages that are
not being kept as part of the compatibility library set
(cups-filters-core-drivers).

We would like to drop the cups and cups-core-drivers packages rather than
keeping them 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 cups-2.3.0/debian/rules cups-2.3.0/debian/rules
--- cups-2.3.0/debian/rules	2019-11-06 01:57:40.000000000 -0600
+++ cups-2.3.0/debian/rules	2019-12-22 11:10:53.000000000 -0600
@@ -7,6 +7,10 @@
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
+ifeq ($(shell dpkg-vendor --is Ubuntu && echo yes) $(DEB_HOST_ARCH), yes i386)
+   skip_packages = -Ncups -Ncups-core-drivers
+endif
+
 # The build system uses only DSOFLAGS but not LDFLAGS to build some libraries.
 # Add LDFLAGS to enable (hardening) build flags.
 export DSOFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
@@ -247,3 +251,9 @@
 override_dh_installpam:
 	dh_installpam -pcups-daemon --name=cups
 	dh_installpam --remaining-packages
+
+override_dh_builddeb:
+	dh_builddeb ${skip_packages}
+
+override_dh_gencontrol:
+	dh_gencontrol ${skip_packages}

Reply to: