Source: kodi Version: 2:21.2+dfsg-1 Tags: patch User: [email protected] Usertags: ftcbfs
kodi fails to cross build from source, because it passes host compiler flags to the build compiler during its native pass. Those flags are set up by dh when entering the override and inherited into the cmake invocation. What is needed here is recomputing the flags for the build architecture. I'm attaching a patch for your convenience. Helmut
diff --minimal -Nru kodi-21.2+dfsg/debian/changelog kodi-21.2+dfsg/debian/changelog --- kodi-21.2+dfsg/debian/changelog 2025-01-16 00:24:00.000000000 +0100 +++ kodi-21.2+dfsg/debian/changelog 2025-02-04 20:02:29.000000000 +0100 @@ -1,3 +1,11 @@ +kodi (2:21.2+dfsg-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Correctly compute compiler flags for the native pass. + (Closes: #-1) + + -- Helmut Grohne <[email protected]> Tue, 04 Feb 2025 20:02:29 +0100 + kodi (2:21.2+dfsg-1) unstable; urgency=high * New upstream version 21.2+dfsg diff --minimal -Nru kodi-21.2+dfsg/debian/rules kodi-21.2+dfsg/debian/rules --- kodi-21.2+dfsg/debian/rules 2025-01-16 00:24:00.000000000 +0100 +++ kodi-21.2+dfsg/debian/rules 2025-02-04 20:02:29.000000000 +0100 @@ -213,13 +213,15 @@ # We are cross-compiling! # Produce the JsonSchemaBuilder and TexturePacker # prerequisites for the build architecture - cmake \ + eval `dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dpkg-buildflags --export=sh`; \ + cmake \ -G"Unix Makefiles" \ -Stools/depends/native/JsonSchemaBuilder/src \ -B$(CURDIR)/native-tools/JsonSchemaBuilder \ -DCMAKE_INSTALL_PREFIX=$(CURDIR)/native-tools cd $(CURDIR)/native-tools/JsonSchemaBuilder && make -j install - cmake \ + eval `dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dpkg-buildflags --export=sh`; \ + cmake \ -G"Unix Makefiles" \ -Stools/depends/native/TexturePacker/src \ -B$(CURDIR)/native-tools/TexturePacker \

