Summary: | eu-elfcompress exit code changed to a error if 'Nothing to do' | ||
---|---|---|---|
Product: | elfutils | Reporter: | Vitaly Chikunov <vt> |
Component: | tools | Assignee: | Dmitry V. Levin <ldv> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | elfutils-devel, mark |
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: | 2021-05-12 00:00:00 |
Description
Vitaly Chikunov
2021-05-12 10:46:27 UTC
Correction of copy-paste: + eu-elfcompress --verbose ./usr/lib/debug/lib/modules/5.10.35-std-def-alt1/fs/unicode/zunicode.ko.debug processing: ./usr/lib/debug/lib/modules/5.10.35-std-def-alt1/fs/unicode/zunicode.ko.debug Nothing to do. xargs: /usr/lib/rpm/process-debuginfo: exited with status 255; aborting error: Bad exit status from /usr/src/tmp/rpm-tmp.71446 (%install) Command exited with non-zero status 1 Yes, that looks like a unintended bug. The code should have set res = 0 before goto cleanup. Excuse me for referencing the wrong commit. It was another copy-paste error. 0df0e8e Timm Bäder 2021-02-17 09:45 +0100 522│ if (foutput == NULL && get_sections (sections, shnum) == 0) ed62996 Mark Wielaard 2018-07-21 17:07 +0200 523│ { ed62996 Mark Wielaard 2018-07-21 17:07 +0200 524│ if (verbose > 0) ed62996 Mark Wielaard 2018-07-21 17:07 +0200 525│ printf ("Nothing to do.\n"); ed62996 Mark Wielaard 2018-07-21 17:07 +0200 526│ fnew = NULL; c497478 Timm Bäder 2021-03-02 09:05 +0100 527│ goto cleanup; ed62996 Mark Wielaard 2018-07-21 17:07 +0200 528│ } ed62996 Mark Wielaard 2018-07-21 17:07 +0200 529│ Kudos to Dmitry for the quick fix! Fixed by commit 43ac25c2de7ba21fb8f9e4d4db0c01c1408da0b8. |