Source: gulkan Version: 0.15.1-2.1 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
gulkan fails to cross build from source, because it passes host compiler flags to the build architecture compiler. For instance cross building on amd64 for arm64 passes -mbranch-protection=standard and the amd64 gcc doesn't like that. This is due to a recent change in dpkg's default build flags. Looking closer this happens during the documentation build, not while building the library. This build pass is only required for the -doc package, so rather than fixing this, I suggest excluding this build pass from an arch-only build (and cross builds always are arch-only). Using reproducible builds, I verified that this change does not affect package contents (compared a native full build to a native arch-only build) and yes, this fixes the cross build. I note that this also speeds up building on buildds, so that's a nice side effect. I'm attaching a patch for your convenience. Helmut
diff --minimal -Nru gulkan-0.15.1/debian/changelog gulkan-0.15.1/debian/changelog --- gulkan-0.15.1/debian/changelog 2022-01-06 13:39:04.000000000 +0100 +++ gulkan-0.15.1/debian/changelog 2024-01-13 10:35:25.000000000 +0100 @@ -1,3 +1,10 @@ +gulkan (0.15.1-2.2) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Properly split documentation build. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sat, 13 Jan 2024 10:35:25 +0100 + gulkan (0.15.1-2.1) unstable; urgency=medium * Non-maintainer upload. diff --minimal -Nru gulkan-0.15.1/debian/rules gulkan-0.15.1/debian/rules --- gulkan-0.15.1/debian/rules 2020-07-18 02:04:33.000000000 +0200 +++ gulkan-0.15.1/debian/rules 2024-01-13 10:35:23.000000000 +0100 @@ -6,8 +6,7 @@ override_dh_auto_test: # Skip test due to required a vulkan driver or it failures. -override_dh_auto_build: - dh_auto_build +override_dh_auto_build-indep: meson build -Dapi_doc=true ninja -C build gulkan-doc