This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]