Source: udo Version: 6.4.1-8 Tags: patch User: [email protected] Usertags: ftcbfs
udo fails to cross build from source, becuse it passes host compiler flags to the native build pass and the native compiler doesn't like that. Using *_FOR_BUILD flags fixes this. While at it, I also propose using dh_auto_build for consistency. I'm attaching a patch for your convenience. Helmut
diff -Nru udo-6.4.1/debian/changelog udo-6.4.1/debian/changelog --- udo-6.4.1/debian/changelog 2024-05-04 16:53:29.000000000 +0200 +++ udo-6.4.1/debian/changelog 2025-09-22 19:55:06.000000000 +0200 @@ -1,3 +1,10 @@ +udo (6.4.1-9) UNRELEASED; urgency=medium + + * Fix FTCBFS: Correctly compute build flags for cross compilation. + (Closes: #-1) + + -- Helmut Grohne <[email protected]> Mon, 22 Sep 2025 19:55:06 +0200 + udo (6.4.1-8) unstable; urgency=medium * QA upload. diff -Nru udo-6.4.1/debian/rules udo-6.4.1/debian/rules --- udo-6.4.1/debian/rules 2024-05-04 16:38:34.000000000 +0200 +++ udo-6.4.1/debian/rules 2025-09-22 19:55:06.000000000 +0200 @@ -5,6 +5,8 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-format +include /usr/share/dpkg/buildflags.mk + %: dh $@ @@ -14,8 +16,9 @@ dh_auto_clean override_dh_auto_build: - $(MAKE) -C Source -f Makefile.debian \ - CFLAGS="$(CFLAGS) $(CPPFLAGS) -D__LINUX__" LDFLAGS="$(LDFLAGS)" + dpkg-architecture -f -a$(DEB_BUILD_ARCH) -f -c \ + dh_auto_build --reload-all-buildenv-variables --sourcedirectory=Source --buildsystem=makefile -- \ + -f Makefile.debian CFLAGS="$(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) -D__LINUX__" LDFLAGS="$(LDFLAGS_FOR_BUILD)" mkdir -p eng/html/images mkdir -p ger/html/images Source/udo --nroff -q -o udo.1 $(CURDIR)/Guide/eng/manual/manpage.u

