This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=2bec078d3be86aef7106f67f7e7a919c5e53ed3e commit 2bec078d3be86aef7106f67f7e7a919c5e53ed3e (HEAD -> main) Author: Guillem Jover <[email protected]> AuthorDate: Thu Dec 1 22:41:44 2022 +0100 dpkg-genbuildinfo: Do not fail if there is no cross-comiler When bootstrapping an architecture, or even on circumstances where we might be cross-compiling using a language other than C/C++ we cannot expect such cross-compiler to be present. In those cases simply ignore the taint check. Fixes: commit 36a7770f03e9e4d1865d25ad74b27d82c07b6f84 Closes: #1025273 --- scripts/dpkg-genbuildinfo.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/dpkg-genbuildinfo.pl b/scripts/dpkg-genbuildinfo.pl index 7f4eaf1b9..96028f9d0 100755 --- a/scripts/dpkg-genbuildinfo.pl +++ b/scripts/dpkg-genbuildinfo.pl @@ -36,6 +36,7 @@ use Dpkg::Gettext; use Dpkg::Checksums; use Dpkg::ErrorHandling; use Dpkg::IPC; +use Dpkg::Path qw(find_command); use Dpkg::Arch qw( get_build_arch get_host_arch @@ -263,6 +264,12 @@ sub is_cross_executable { # the host architecture by cross-compiling and executing a small # host-arch binary. my $CC = debarch_to_gnutriplet($host_arch) . '-gcc'; + + # If we do not have a cross-compiler, we might be in the process of + # building one or cross-compiling using a language other than C/C++, + # and aborting the build is then not very useful. + return if ! find_command($CC); + my $crossprog = <<~'CROSSPROG'; #include <unistd.h> int main() { write(1, "ok", 2); return 0; } -- Dpkg.Org's dpkg

