]> git.ipfire.org Git - thirdparty/elfutils.git/commit
PR 30991: srcfiles tarball feature
authorHousam Alamour <halamour@redhat.com>
Tue, 6 Feb 2024 00:18:05 +0000 (19:18 -0500)
committerAaron Merey <amerey@redhat.com>
Tue, 6 Feb 2024 00:20:03 +0000 (19:20 -0500)
commit75fb8c0152892873fc0a905d228f50d6dfd3dc0d
tree11351a47792b3d9d78972215e8e0539615fb2190
parentcc44ac6740797a23cd0af0cb22bd828d569224b8
PR 30991: srcfiles tarball feature

* srcfiles.cxx: Introduce new --zip option that places all the
    source files associated with a specified dwarf/elf file
    into a zip file and sends it to stdout. Files may be
    fetched from debuginfod (if applicable) or locally as
    a backup.
    Added -b option to disable the backup of checking
    for files locally in -z mode.

* run-srcfiles-self.sh: Added test-case for the new zip
    feature that archives the source files of the srcfiles
    tool and checks archive integrity. An additional test
    ensures that if debuginfod is enabled, the files are
    fetched and archived properly while maintaing integrity.

* debuginfod-subr.sh: On very slow/remote storage, it can
    take O(minute) to finish indexing the entire elfutils
    build tree, so a wait_ready4 shell function is one
    way to let a longer debuginfod wait operation work.

* srcfiles.1, NEWS: Added documentation for the new zip feature.

* configure.ac: Simplify check for libarchive for srcfiles.cxx
    by integrating it into the same check for debuginfod.

* Makefile.am: build with local copy of debuginfod-client.

Example:
% ./src/srcfiles -z -e /bin/ls > output.zip

https://sourceware.org/bugzilla/show_bug.cgi?id=30991

Signed-off-by: Housam Alamour <halamour@redhat.com>
NEWS
configure.ac
debuginfod/debuginfod.cxx
doc/srcfiles.1
src/Makefile.am
src/srcfiles.cxx
tests/debuginfod-subr.sh
tests/run-srcfiles-self.sh