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=4c03965ef66810f1ffe3197062cff862c2607856

commit 4c03965ef66810f1ffe3197062cff862c2607856
Author: Guillem Jover <[email protected]>
AuthorDate: Thu Jan 5 12:08:56 2023 +0100

    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 | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/scripts/dpkg-genbuildinfo.pl b/scripts/dpkg-genbuildinfo.pl
index 55e07eab9..f26e396fa 100755
--- a/scripts/dpkg-genbuildinfo.pl
+++ b/scripts/dpkg-genbuildinfo.pl
@@ -287,7 +287,11 @@ sub is_cross_executable {
     if ($?) {
         print { *STDOUT } $stdout;
         print { *STDERR } $stderr;
-        subprocerr("$CC -w -x c -");
+        eval {
+            subprocerr("$CC -w -x c -");
+        };
+        warning($@);
+        return;
     }
     close $tmpfh;
     spawn(

-- 
Dpkg.Org's dpkg

Reply via email to