Source: freetype Version: 2.12.1+dfsg-3 Severity: minor Tags: patch User: helm...@debian.org Usertags: rebootstrap
freetype builds a udeb package. It would be nice to be able to opt out of building it via the noudeb build profile. I'm attaching a patch for your convenience. Helmut
diff --minimal -Nru freetype-2.12.1+dfsg/debian/changelog freetype-2.12.1+dfsg/debian/changelog --- freetype-2.12.1+dfsg/debian/changelog 2022-06-19 13:55:46.000000000 +0200 +++ freetype-2.12.1+dfsg/debian/changelog 2022-11-27 21:38:00.000000000 +0100 @@ -1,3 +1,10 @@ +freetype (2.12.1+dfsg-3.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Support the noudeb build profile. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sun, 27 Nov 2022 21:38:00 +0100 + freetype (2.12.1+dfsg-3) unstable; urgency=medium * debian/control: Raise Standards-Version to 4.6.1 (no changes needed). diff --minimal -Nru freetype-2.12.1+dfsg/debian/control freetype-2.12.1+dfsg/debian/control --- freetype-2.12.1+dfsg/debian/control 2022-06-18 14:02:18.000000000 +0200 +++ freetype-2.12.1+dfsg/debian/control 2022-11-27 21:36:58.000000000 +0100 @@ -133,6 +133,7 @@ Section: debian-installer Architecture: any Package-Type: udeb +Build-Profiles: <!noudeb> Depends: ${shlibs:Depends}, ${misc:Depends} Description: FreeType 2 font engine for the debian-installer The FreeType project is a team of volunteers who develop free, diff --minimal -Nru freetype-2.12.1+dfsg/debian/rules freetype-2.12.1+dfsg/debian/rules --- freetype-2.12.1+dfsg/debian/rules 2022-06-19 13:32:08.000000000 +0200 +++ freetype-2.12.1+dfsg/debian/rules 2022-11-27 21:37:59.000000000 +0100 @@ -27,20 +27,28 @@ dh_autoreconf ./autogen.sh override_dh_auto_configure: +ifeq (,$(filter noudeb,$(DEB_BUILD_PROFILES))) dh_auto_configure --builddir=$(udeb_builddir) -- $(configure_flags) --without-brotli --without-librsvg +endif dh_auto_configure -- $(configure_flags) override_dh_auto_build: +ifeq (,$(filter noudeb,$(DEB_BUILD_PROFILES))) dh_auto_build --builddir=$(udeb_builddir) +endif dh_auto_build dh_auto_build --sourcedir=ft2demos -- TOP_DIR=$(CURDIR) override_dh_auto_install: +ifeq (,$(filter noudeb,$(DEB_BUILD_PROFILES))) dh_auto_install --builddir=$(udeb_builddir) --destdir=$(udeb_installdir) +endif dh_auto_install override_dh_install: +ifeq (,$(filter noudeb,$(DEB_BUILD_PROFILES))) dh_install -p libfreetype6-udeb --sourcedir=$(udeb_installdir) +endif sed -i -e '/dependency_libs/s/'.*'//' debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libfreetype.la dh_install -p freetype2-demos -XREADME dh_install --remaining-packages