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#74202: 31.0.50; package-el fails to delete outdated elpa packages Date: Mon, 04 Nov 2024 15:11:51 +0200 Message-ID: <86o72vuors.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38062"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74202@debbugs.gnu.org To: Johann =?UTF-8?Q?H=C3=B6chtl?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 04 14:12:15 2024 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 1t7wsQ-0009jf-UP for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Nov 2024 14:12:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t7wsI-0004y3-Kz; Mon, 04 Nov 2024 08:12:08 -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 1t7wsF-0004xX-8E for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2024 08:12:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t7wsE-0007HK-W9 for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2024 08:12:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=4dw5lRyWp3mJwVxtPFR1HS6tPlMOyUEf+neceIejfDc=; b=aNxMRVJB36V0f0t32r+TkoT33/DbhjTWpPsCExcG+gRb1GQ0SInHLKtjWCGeZ+ta9EW83Ro7kyyb/tzv71vUUD/CQfkzfMgNwAeWq9x6Hd9fz0K23OJCqp0gx835KDOuAPYbWuu7uzDqheuB4afGq1ZVUxL+NKLetSHYDzkc+CcnWh17uOrejDLo8nAaaAGcIEQBcATEv7Y2nkwd1QMf9I2ilJNBP71W9FhVfAif1BJmDimggwcpt55sCgUEM6pbo6dscne/dn0DSrcGoPeTmJs5n8I8NhnQ2x0GG4DWpMuTnQRyhdcbdwIeIhtFK5gFMuNu82w4arM0HP0Iv8oaxA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t7wsE-0002Js-QG for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2024 08:12: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, 04 Nov 2024 13:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74202 X-GNU-PR-Package: emacs Original-Received: via spool by 74202-submit@debbugs.gnu.org id=B74202.17307259218907 (code B ref 74202); Mon, 04 Nov 2024 13:12:02 +0000 Original-Received: (at 74202) by debbugs.gnu.org; 4 Nov 2024 13:12:01 +0000 Original-Received: from localhost ([127.0.0.1]:39806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t7wsD-0002JX-8y for submit@debbugs.gnu.org; Mon, 04 Nov 2024 08:12:01 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45210) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t7wsB-0002JJ-2Y for 74202@debbugs.gnu.org; Mon, 04 Nov 2024 08:11:59 -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 1t7ws5-0007Ep-J4; Mon, 04 Nov 2024 08:11:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=4dw5lRyWp3mJwVxtPFR1HS6tPlMOyUEf+neceIejfDc=; b=n7Rpf6k9T7Efh4mGLwXi wkCb1AbjcwGa4Ez0jWOHYmbVWH+Mwb4GZm+W1zgWItQMV0iiQJivhwqLmZuxzc6rYj4OGZl32ZHUl B8fTvxhULkOH8me+KtxrD1T28ZZHsv3HN7pkxIv567NLGn4u6EHBJyQWBs6U/F2qZ3tGV1YmT34eW 1+YP8OyXVZbrJWLfV7I8QFLle0n1dPHbJ7htlTOzv0GJFJjZ52/8/2eUirUd9tM3PmZ6s0QQKGD/s vd+gNLDDSVakMudQdJIJt8fXXEL8Wh5UiciUrUW7l+8chw8xV9LQHU/JWgPZwhRDAhBj+STtwpwoZ a1qy2ZOuSQk2wg==; In-Reply-To: (message from Johann =?UTF-8?Q?H=C3=B6chtl?= on Mon, 4 Nov 2024 09:06:12 +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:294851 Archived-At: [Please don't change the Subject of the responses and followups.] > From: Johann Höchtl > Date: Mon, 4 Nov 2024 09:06:12 +0100 > > The full error message is: > > Error when expiring the cache: (permission-denied Removing directory Permission denied > c:/Users/HoechtlJ/OneDrive - WKO Online/Dokumente/.emacs.d/url/cache/HoechtlJ/https/org/gnu/www) What is the Lisp code which triggers this error message? IOW, please show the Lisp code which "expires the cache". > The directory unfortunately contains blanks, so it's possibly not a permission error at all but emacs actually > trying to delete another directory but the one for which the error message gets printed? Why would blanks in the directory name cause Emacs to try to delete a different directory? Emacs doesn't delete directories via the shell, where this could be a problem, it deletes them by calling Windows APIs. Since this directory seems to be on OneDrive, I suspect that these are not "normal" Windows files, but some kind of junction points or some other filesystem wizardry that Emacs doesn't understand. Please try producing a standalone self-contained recipe for reproducing the problem starting from "emacs -Q", preferably without installing any ELPA packages. Since the issue is with removing files from a directory, presumably the problem has nothing to do with package.el per se, but with basic file I/O, and so you should be able to find a way of reproducing it by simply removing files from a directory, perhaps if the directory is on OneDrive.