[Bug debuginfod/25502] debuginfod client should default to XDG cache

mark at klomp dot org sourceware-bugzilla@sourceware.org
Thu Feb 6 20:46:00 GMT 2020


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

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at klomp dot org

--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
This seems like a good idea. But since we already have code in production that
uses the current cache dir I think we need to honor that if it exists.

So the lookup would be something like:
- If $DEBUGINFOD_CACHE_PATH set use that.
- If $HOME set and $HOME/.debuginfod_client_cache exists use that.
- If $HOME not set and /.debuginfod_client_cache exists use that.
- If $XDG_CACHE_HOME set use $XDG_CACHE_HOME/.debuginfod_client
- If $HOME set use $HOME/.cache/.debuginfod_client
- Use /.cache/debuginfod

I assume we need to create the $HOME/.cache or /.cache dir if it doesn't exist
yet.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Elfutils-devel mailing list