]> git.ipfire.org Git - thirdparty/elfutils.git/commit
PR34309: debuginfod: support relative source paths for reproducible builds
authorFrank Ch. Eigler <fche@redhat.com>
Wed, 24 Jun 2026 18:31:17 +0000 (14:31 -0400)
committerFrank Ch. Eigler <fche@elastic.org>
Fri, 26 Jun 2026 20:41:41 +0000 (16:41 -0400)
commitbcc06ae5c80dedc02dd0422b83c1905dccdc58ec
treef363fbd850e49d0ddf632ca684ecf22c4cb41885
parentb919ce271dec9009344662547b6e0e69cc1f21ff
PR34309: debuginfod: support relative source paths for reproducible builds

Relaxed constraint checks in debuginfod-client and debuginfod-find to
allow relative source filenames (e.g. those starting with '.'  or
normal filenames), supporting binaries built with options like
-fdebug-prefix-map as one way to produce reproducible builds.  Note
that such paths will not generally be resolvable by debuginfod within
packages, nor if debuginfod's startup PWD is different from the build
tree.  This is a niche function only.

Added tests/testfile-debug-map{.c,.bz2} compiled with -fdebug-prefix-map
and tests/run-debuginfod-debug-map.sh to verify.

Signed-off-By: Frank Ch. Eigler <fche@redhat.com>
Reviewed-By: Aaron Merey <amerey@redhat.com>
debuginfod/debuginfod-client.c
debuginfod/debuginfod-find.c
doc/debuginfod_find_debuginfo.3
tests/Makefile.am
tests/run-debuginfod-debug-map.sh [new file with mode: 0755]
tests/testfile-debug-map.bz2 [new file with mode: 0755]
tests/testfile-debug-map.c [new file with mode: 0644]