From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#35683: wishlist: addessing statefulness of .cache(s) Date: Tue, 14 May 2019 09:47:55 +0200 Message-ID: <87tvdx32ac.fsf@gnu.org> References: <878svdh2ec.fsf@roquette.mug.biscuolo.net> <20190512113242.583f9229@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:47181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQSBM-0007uh-1j for bug-guix@gnu.org; Tue, 14 May 2019 03:49:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQSBL-0005ZV-0i for bug-guix@gnu.org; Tue, 14 May 2019 03:49:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33562) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hQSBK-0005YU-JH for bug-guix@gnu.org; Tue, 14 May 2019 03:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hQSBK-00083u-8w for bug-guix@gnu.org; Tue, 14 May 2019 03:49:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20190512113242.583f9229@scratchpost.org> (Danny Milosavljevic's message of "Sun, 12 May 2019 11:32:42 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Danny Milosavljevic Cc: 35683@debbugs.gnu.org Hi Danny, Danny Milosavljevic skribis: > Better would be if the cache directory contained a "cache-protocol-versio= n" > file or something and make the client program heed it and make it clear t= he > cache if it's the wrong version, without any Guix special case (the probl= em > is not not Guix-specific anyway). I=E2=80=99d be surprised if applications and libraries using ~/.cache such = as Mesa didn=E2=80=99t have some versioning mechanism allowing them to detect = stale cache files. Overall, Guix isn=E2=80=99t special in that respect. The problem we experienced with Mesa shader caches are probably not Guix-specific. I think we should try to gather more info about the stale .cache files that trigger a Mesa crash so that we can make a useful bug report to the Mesa developers. (I=E2=80=99m saying this as someone who did not experience the crash, heheh= . :-)) Thoughts? Thanks, Ludo=E2=80=99.