From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#48108: Wishlist: Command to remove redundant eln cache directories [native-comp] Date: Mon, 28 Nov 2022 14:44:47 +0200 Message-ID: <83sfi3nt8g.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11537"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 48108@debbugs.gnu.org, stefankangas@gmail.com To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 28 13:45:19 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ozdVf-0002p8-Dp for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Nov 2022 13:45:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ozdVR-00053R-0s; Mon, 28 Nov 2022 07:45:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozdVP-00052Z-SW for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2022 07:45:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ozdVP-0004SI-HJ for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2022 07:45:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ozdVO-0003xp-Do for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2022 07:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Nov 2022 12:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48108 X-GNU-PR-Package: emacs Original-Received: via spool by 48108-submit@debbugs.gnu.org id=B48108.166963946415217 (code B ref 48108); Mon, 28 Nov 2022 12:45:02 +0000 Original-Received: (at 48108) by debbugs.gnu.org; 28 Nov 2022 12:44:24 +0000 Original-Received: from localhost ([127.0.0.1]:48390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozdUm-0003xM-C5 for submit@debbugs.gnu.org; Mon, 28 Nov 2022 07:44:24 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41020) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozdUl-0003xG-4G for 48108@debbugs.gnu.org; Mon, 28 Nov 2022 07:44:23 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozdUf-0004OK-Mz; Mon, 28 Nov 2022 07:44:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Dve+9GwuzeSa0Q63PVFmmcKbRSE+5lnYiBMI4lvFTw4=; b=CE9kUiz2EeIr PogrHYDe+lYEfbTIX8zClKM5BfDJMx/Czx21OZOsUrG4BnkQgaaK+9WsqFMRafj61oQwNCiY3h0Gs 9mmMNkTCnNo6uzsGkbhOs3OnAC9tqL+4SdAB9s3WSVgvkVv260cPgpbNo7ew6GBZymJZYbSIw+nPg fWYjHeDih+1/ARdhDdWA8iveZwwhWhLsAjjZ10fzXqp/IzPRHCUaPXIqhRQCjrX68S/QQzznYly43 QYznnL1BfXS1ieR4hnmGHPFYfQEQT2nD/m6WGVwM4afQqEgca1H379prx4kZN/ryekOlMdAQCh+JC T1k/4NEf73ScVwlE76n+eg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozdUe-000542-T4; Mon, 28 Nov 2022 07:44:17 -0500 In-Reply-To: (message from Juanma Barranquero on Mon, 28 Nov 2022 09:39:14 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:249290 Archived-At: > From: Juanma Barranquero > Date: Mon, 28 Nov 2022 09:39:14 +0100 > Cc: Eli Zaretskii , Stefan Kangas , > Lars Ingebrigtsen > > `native-compile-prune-cache' does not remove the preloaded/ subdir (or its contents) of the native-lisp/ > directories, and consequently does not remove the directories themselves. > > For example, after running it I still have *.eln files in the following directories (comp-native-version-dir = > "29.0.50-c0f9fe8e"): > > ~/.emacs.d/.eln-cache/29.0.50-c0f9fe8e > D:\Devel\emacs\repo\trunk\native-lisp\29.0.50-57ea32b2\preloaded > D:\Devel\emacs\repo\trunk\native-lisp\29.0.50-7c1dd663\preloaded > D:\Devel\emacs\repo\trunk\native-lisp\29.0.50-a22e1c10\preloaded > D:\Devel\emacs\repo\trunk\native-lisp\29.0.50-c0f9fe8e\preloaded > > which means the command deleted the stale cache in ~/.emacs.d/, but not the ones in the source tree. > > Is that intended? AFAIR, yes. The command is intended to help users to clean up the eln-cache of files _they_ compile, but it isn't supposed to touch *.eln files installed as part of Emacs. That's for sysadmins. And besides, on many systems the preloaded *.eln files are not writable by "normal" users. See bug#48108, where this was discussed.