Source: kpty Version: 5.98.0-1 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
kpty fails to cross build from source, because it requires specifying the location of utempter for cross builds, but the packaging doesn't do that yet. I'm attaching a patch for your convenience. I am slightly wondering though whether utempter could provide a pkg-config file containing its location. Do you think that would be useful? Helmut
diff --minimal -Nru kpty-5.98.0/debian/changelog kpty-5.98.0/debian/changelog --- kpty-5.98.0/debian/changelog 2022-09-18 23:11:43.000000000 +0200 +++ kpty-5.98.0/debian/changelog 2022-11-13 04:58:07.000000000 +0100 @@ -1,3 +1,10 @@ +kpty (5.98.0-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Specify location of utempter. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sun, 13 Nov 2022 04:58:07 +0100 + kpty (5.98.0-1) unstable; urgency=medium [ Aurélien COUDERC ] diff --minimal -Nru kpty-5.98.0/debian/rules kpty-5.98.0/debian/rules --- kpty-5.98.0/debian/rules 2022-07-28 00:29:51.000000000 +0200 +++ kpty-5.98.0/debian/rules 2022-11-13 04:58:06.000000000 +0100 @@ -2,12 +2,18 @@ # -*- makefile -*- export DEB_BUILD_MAINT_OPTIONS = hardening=+all +include /usr/share/dpkg/architecture.mk + +cmake_extra_args := +ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) +cmake_extra_args += -DUTEMPTER_EXECUTABLE=/usr/lib/$(DEB_HOST_MULTIARCH)/utempter/utempter +endif %: dh $@ --with kf5,pkgkde_symbolshelper --buildsystem kf5 --without build_stamp override_dh_auto_configure: - dh_auto_configure -- -DBUILD_QCH=ON + dh_auto_configure -- -DBUILD_QCH=ON $(cmake_extra_args) override_dh_auto_test: # Disable dh_auto_test at build time