From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 42657 invoked by alias); 6 Feb 2020 20:46:08 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 42320 invoked by uid 48); 6 Feb 2020 20:46:04 -0000 From: "mark at klomp dot org" To: elfutils-devel@sourceware.org Subject: [Bug debuginfod/25502] debuginfod client should default to XDG cache Date: Thu, 06 Feb 2020 20:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: debuginfod X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2020-q1/txt/msg00074.txt https://sourceware.org/bugzilla/show_bug.cgi?id=3D25502 Mark Wielaard changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mark at klomp dot org --- Comment #1 from Mark Wielaard --- This seems like a good idea. But since we already have code in production t= hat 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 ex= ist yet. --=20 You are receiving this mail because: You are on the CC list for the bug.