diff options
| author | Frank Ch. Eigler <fche@redhat.com> | 2025-07-02 18:40:30 -0400 |
|---|---|---|
| committer | Frank Ch. Eigler <fche@elastic.org> | 2025-07-02 18:42:49 -0400 |
| commit | aaca65212b5b7ec3fc7ac89820ad43fccee32078 (patch) | |
| tree | f45018040883103118df516ea13ab11477ee2c34 | |
| parent | debugedit.at: Deal with readelf with --wide default for buildid matching (diff) | |
PR32760: find-debuginfo: handle static libraries quietly!
A newly done "ar r foo.a" archive-initialization command results in an unconditional output to stderr. Choke it off to /dev/null. Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
| -rwxr-xr-x | scripts/find-debuginfo.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/find-debuginfo.in b/scripts/find-debuginfo.in index 1a4f2a0..b211a3c 100755 --- a/scripts/find-debuginfo.in +++ b/scripts/find-debuginfo.in | |||
| @@ -512,7 +512,7 @@ do_ar_file() | |||
| 512 | # versions to a new archive, in order. | 512 | # versions to a new archive, in order. |
| 513 | 513 | ||
| 514 | # Create empty output .a; mktemp would create a 0-byte file, which ar rv doesn't like | 514 | # Create empty output .a; mktemp would create a 0-byte file, which ar rv doesn't like |
| 515 | ${AR} r "$tmpa" # no members | 515 | ${AR} r "$tmpa" 2>/dev/null # no members, suppress "ar: creating foo.a" message |
| 516 | 516 | ||
| 517 | ${AR} tvO "$f" | while read line; do | 517 | ${AR} tvO "$f" | while read line; do |
| 518 | local pattern='^[rwx-]+ [0-9]+/[0-9]+ +([0-9]+) (.................) (.*) (0x[0-9a-f]+)$' | 518 | local pattern='^[rwx-]+ [0-9]+/[0-9]+ +([0-9]+) (.................) (.*) (0x[0-9a-f]+)$' |
