]> git.ipfire.org Git - thirdparty/elfutils.git/commit
srcfiles: Fix compile with --disable-libdebuginfod
authorMark Wielaard <mark@klomp.org>
Mon, 9 Sep 2024 08:24:07 +0000 (10:24 +0200)
committerMark Wielaard <mark@klomp.org>
Tue, 10 Sep 2024 13:42:53 +0000 (15:42 +0200)
commit1ccbd384375d4c84aecc6dc382d372f5979a1f0c
tree355c391f82ff19e01924cf1dcdc12b1bacc87e0b
parent1d5e9508f0607c7109280f76261e617f9851566b
srcfiles: Fix compile with --disable-libdebuginfod

The eu-srcfiles --no-backup option is only valid when build with
libdebuginfod support. Adjust the ENABLE_LIBDEBUGINFOD conditional
to not use no_backup anywhere. Also only run the run-srcfiles-self.sh
test when debuginfod is enabled.

     * src/srcfiles.cxx (zip_files): Move endif ENABLE_LIBDEBUGINFOD
     after no_backup check.
     * tests/Makefile.am (TESTS): Only add run-srcfiles-self.sh
     if DEBUGINFOD and !DUMMY_LIBDEBUGINFOD.
     * tests/run-srcfiles.self.sh: Use local DEBUGINFOD_CACHE_PATH.

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

Signed-off-by: Mark Wielaard <mark@klomp.org>
src/srcfiles.cxx
tests/Makefile.am
tests/run-srcfiles-self.sh