Patch abi-compliance-checker to avoid endless loop

This commit is contained in:
Pierce Lopez 2024-02-20 07:56:24 +01:00 committed by Azat Khuzhin
parent 798547ac20
commit 7eddd5262a
3 changed files with 22 additions and 0 deletions

View File

@ -991,6 +991,9 @@ jobs:
abi-compliance-checker
pkgdiff
vtable-dumper
# FIXME: clone git repo or report to debian
- name: Patch abi-compliance-checker to avoid endless loop
run: sudo patch /usr/bin/abi-compliance-checker < extra/abi-check/debian.patch
- name: Generate
shell: bash
run: |

View File

@ -80,6 +80,10 @@ jobs:
pkgdiff
vtable-dumper
# FIXME: clone git repo or report to debian
- name: Patch abi-compliance-checker to avoid endless loop
run: sudo patch /usr/bin/abi-compliance-checker < extra/abi-check/debian.patch
- name: Generate
shell: bash
run: |

View File

@ -0,0 +1,15 @@
--- /usr/bin/abi-compliance-checker 2024-02-20 03:34:20.805679599 +0000
+++ /usr/bin/abi-compliance-checker 2024-02-20 03:34:32.095652901 +0000
@@ -9343,9 +9343,9 @@
exitStatus("Not_Found", "can't find \"tar\" command");
}
chdir($UnpackDir);
- my @res = child_exec("$TarCmd -xvzf \"$Path\" >\"$TmpDir/null\"");
- if($res[0]) {
- exitStatus("Error", "can't extract \'$Path\' ($res[0]): $res[1]");
+ system("$TarCmd -xvzf \"$Path\" >\"$TmpDir/null\"");
+ if($?) {
+ exitStatus("Error", "can't extract \'$Path\' ($?): $!");
}
chdir($In::Opt{"OrigDir"});
my @Contents = cmdFind($UnpackDir, "f");