Source: otf2 Version: 3.1.1-3 Tags: patch User: [email protected] Usertags: ftcbfs
otf2 fails to cross build from source, because it uses the build architecture compiler. The project has opinions on compilers and overrides them by default. One may opt out of this by passing --with-custom-compilers and then it cross builds. I'm attaching a patch for your convenience. I also compared a native build with and without this additional option to see whether it would result in undesired changes. The only file that changes is /usr/share/otf2/otf2.summary and that contains all configure arguments. Helmut
diff -Nru otf2-3.1.1/debian/changelog otf2-3.1.1/debian/changelog --- otf2-3.1.1/debian/changelog 2025-08-13 22:58:26.000000000 +0200 +++ otf2-3.1.1/debian/changelog 2025-09-04 11:39:10.000000000 +0200 @@ -1,3 +1,10 @@ +otf2 (3.1.1-3.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Use provided compilers. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Thu, 04 Sep 2025 11:39:10 +0200 + otf2 (3.1.1-3) unstable; urgency=medium * patches/rename: Rename in otf2-config too. diff -Nru otf2-3.1.1/debian/rules otf2-3.1.1/debian/rules --- otf2-3.1.1/debian/rules 2025-07-19 22:54:44.000000000 +0200 +++ otf2-3.1.1/debian/rules 2025-09-04 11:39:10.000000000 +0200 @@ -19,7 +19,7 @@ override_dh_auto_configure: dh_auto_configure -- \ CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" FFLAGS="$(FFLAGS)" FCFLAGS="$(FCFLAGS)" \ - --enable-backend-test-runs + --enable-backend-test-runs --with-custom-compilers override_dh_auto_build: dh_auto_build -- generate=true

