diff options
author | Mark Wielaard <[email protected]> | 2024-09-09 10:24:07 +0200 |
---|---|---|
committer | Mark Wielaard <[email protected]> | 2024-09-10 15:42:53 +0200 |
commit | 1ccbd384375d4c84aecc6dc382d372f5979a1f0c (patch) | |
tree | 355c391f82ff19e01924cf1dcdc12b1bacc87e0b /src | |
parent | 1d5e9508f0607c7109280f76261e617f9851566b (diff) |
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/srcfiles.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/srcfiles.cxx b/src/srcfiles.cxx index 09d50f8d..c466b307 100644 --- a/src/srcfiles.cxx +++ b/src/srcfiles.cxx @@ -349,9 +349,9 @@ void zip_files() else cerr << "Error: Invalid build ID length (" << bits_length << ")." << endl; } - #endif if (!no_backup) + #endif /* ENABLE_LIBDEBUGINFOD */ /* Files could not be located using debuginfod, search locally */ if (fd < 0) fd = open(file_path.c_str(), O_RDONLY); |