Source: libmtp Version: 1.1.21-3.1 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
libmtp fails to cross build from source, because it configures for the build architecture and thus fails finding required dependencies. It actually configures twice. While the second time - issued by debhelper - would configure for the host architecture, it is the first attempt during autogen.sh that is both unnecessary and failing. Skipping it makes the native build faster and the cross build succeed. I'm attaching a patch for your convenience. Helmut
diff --minimal -Nru libmtp-1.1.21/debian/changelog libmtp-1.1.21/debian/changelog --- libmtp-1.1.21/debian/changelog 2024-02-28 15:18:19.000000000 +0100 +++ libmtp-1.1.21/debian/changelog 2024-03-25 07:43:18.000000000 +0100 @@ -1,3 +1,10 @@ +libmtp (1.1.21-3.2) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Configure only once for the host architecture. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Mon, 25 Mar 2024 07:43:18 +0100 + libmtp (1.1.21-3.1) unstable; urgency=medium * Non-maintainer upload. diff --minimal -Nru libmtp-1.1.21/debian/rules libmtp-1.1.21/debian/rules --- libmtp-1.1.21/debian/rules 2024-02-28 15:18:18.000000000 +0100 +++ libmtp-1.1.21/debian/rules 2024-03-25 07:43:17.000000000 +0100 @@ -32,7 +32,7 @@ dh $@ execute_before_dh_autoreconf: - ./autogen.sh + NOCONFIGURE=1 ./autogen.sh override_dh_auto_configure: # Save file modified by configure