dpkg-genbuildinfo: Do not fail if the cross-compiler cannot compile
commit4c03965ef66810f1ffe3197062cff862c2607856
authorGuillem Jover <guillem@debian.org>
Thu, 5 Jan 2023 11:08:56 +0000 (5 12:08 +0100)
committerGuillem Jover <guillem@debian.org>
Thu, 5 Jan 2023 11:20:45 +0000 (5 12:20 +0100)
treeb7314b4396c2d77de3845f1c0e73fcfe95d81c48
parent4ffe050b474f07d552f5fbe2b6d313875ca50e4e
dpkg-genbuildinfo: Do not fail if the cross-compiler cannot compile

When bootstrapping a cross-compiler, it might not have some of the
required parts available, such as a libc. Catch the error, emit it as a
warning and return undef, like with the other conditions where we skip
the test. Because in the end this is just a tainting flag, and it is not
worth it failing the entire build due to that.

Closes: #1027966
scripts/dpkg-genbuildinfo.pl