From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Johann =?UTF-8?Q?H=C3=B6chtl?= Newsgroups: gmane.emacs.bugs Subject: bug#74202: 31.0.50; package-el fails to delete outdated elpa packages Date: Mon, 4 Nov 2024 14:37:17 +0100 Message-ID: References: <86o72vuors.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000bd0c6206261662eb" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31047"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74202@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 04 14:39:46 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 1t7xJ3-0007rZ-DY for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Nov 2024 14:39:45 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t7xIu-0007pl-TC; Mon, 04 Nov 2024 08:39:36 -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 1t7xIQ-0007YK-CB for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2024 08:39:07 -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 1t7xIM-0002Ac-Rf for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2024 08:39:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=NdO07+lxCT0RQzLOhajFiexVA8Ogh+0UIn7xVTXnnLs=; b=ls7oEYqo7GnzaSp8Ttc3yQxZ5OzRhcR8PGt+qWx4d9Kylsyq6KJmgmqvk75ojVhPpQa26VwK2lht8XypP4WXMWrykX3oZP542LoJd6e3zMyT7EPfaA+a6rKaLPLBDfZMc4Q1tAVZKwvoUWE5vn9340zGCrgvX7JFoJXs6QlARZ/3BqCyxr/K2vR4FljamwvE/UgoMMfjSZp+mLp04I+zDxXQZv4pciXCK7cNNc1cYEgT7CEzE9FlpV9j/6gQPK8cbLjrBeko08kam6vlFDh3jbqZ8Zb1FebS2izFUmrDT/Jks+kpZl39TzmUxRrLQ2FUUCMsdwm8KROaow9yL2cIlA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t7xIM-0003EN-Lq for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2024 08:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Johann =?UTF-8?Q?H=C3=B6chtl?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Nov 2024 13:39: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.173072751512396 (code B ref 74202); Mon, 04 Nov 2024 13:39:02 +0000 Original-Received: (at 74202) by debbugs.gnu.org; 4 Nov 2024 13:38:35 +0000 Original-Received: from localhost ([127.0.0.1]:40012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t7xHv-0003Ds-9Y for submit@debbugs.gnu.org; Mon, 04 Nov 2024 08:38:35 -0500 Original-Received: from mail-yb1-f180.google.com ([209.85.219.180]:60440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t7xHt-0003Dk-Cm for 74202@debbugs.gnu.org; Mon, 04 Nov 2024 08:38:34 -0500 Original-Received: by mail-yb1-f180.google.com with SMTP id 3f1490d57ef6-e30d212b6b1so3681249276.0 for <74202@debbugs.gnu.org>; Mon, 04 Nov 2024 05:38:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730727448; x=1731332248; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=NdO07+lxCT0RQzLOhajFiexVA8Ogh+0UIn7xVTXnnLs=; b=HE9qEmt/CIF5KcRDIOwQVxYKqEH3pzeI10jXOVg/GYSAUTJ38ufW7LJkWeOLT5A4Jx 9PxsZLvPFQ8NK6oolzELbVyOCJkfN0BAkpg34cV6Iqu4vkYlAYBMIDC8tqb3i/9u3VX3 gCt+xf/7BQnRruBz74DNZ93+3jIE3OGe1gNPYzYZCpChf7/ZcrKfsJzC4iqbriioZrm/ 4eQhVlRN17WVuSxZ3ya19ACXW7tVmgUd0Xw/ICPW9rLo94w/f690cPwlU2itnDrZbW3r KUcDpc1YJY61Wd8bao+tNneS6BIGY0djHVvIz0vsePudRf3Ii4Sg81KJ2HegjXzcqzev S/vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730727448; x=1731332248; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NdO07+lxCT0RQzLOhajFiexVA8Ogh+0UIn7xVTXnnLs=; b=Rm1P/+CclkLDPD0I1eW/jPhVuTVMQ97TGNWz0Q9Cfl+Y720Lv4V9gacBN8gBA8evIA op+LQSdmcStaKRXsZXrnT7P1Q7bj8Z470+fux6ErAw0Hy1MxCf7S6VB4SGO1FzLx15Lt HYE6IS67CNEdbHJzSLPKRUMX/+Nule4aoal+XUd6c4oW1D+Icj7U5W/YoDYOuB2aQsBd 5UmBhASj3IBwuHlNY025JIG5/V98iG6nS5RQd3FzUSlmgPMYQ5GrzGbSqROZfMvhq2i0 KtcgCO8NeQKZv6t3A2NZIs7DiiUaF3X9tMDBr2AME8bD0E61Zrt3n8ax5qrotn8n6VS1 BYTw== X-Gm-Message-State: AOJu0YytZHfrycTawWjbB96RTMRkBxHvLCrkVDmS+VZzGsL5rBCHwt8B wHyTHmcg5d0dkqrqZalrWPdLKMGtHsABDla9+oen8XBkVTEO9xHFYXnsq/5VGx+G7X8lJi3cJgD Eq+8eVRuAiVtlUrIeN5PgaItb30Rg X-Google-Smtp-Source: AGHT+IFap5Nq3LufR71gEv2oqESFWdNp4CCRW/b5xHk5+cdRUDdKxF7RG+GiC36HEg6zYmkZVoGYLiyn2KcFSvBjeG0= X-Received: by 2002:a05:6902:110b:b0:e33:2851:14f with SMTP id 3f1490d57ef6-e3328510905mr3117314276.38.1730727447952; Mon, 04 Nov 2024 05:37:27 -0800 (PST) In-Reply-To: <86o72vuors.fsf@gnu.org> 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:294858 Archived-At: --000000000000bd0c6206261662eb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear Eli, thank you for your response(s). I understand that this build is not officially supported. Upon further investigation I think the culprit is likely UCRT, as the directories are created without write permissions. Former versions of Emacs, which used a different C runtime, created directories with read/write permissions. Therefore I will report the issue at the appropriate build site. Best, Johann Am Mo., 4. Nov. 2024 um 14:11 Uhr schrieb Eli Zaretskii : > [Please don't change the Subject of the responses and followups.] > > > From: Johann H=C3=B6chtl > > 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. > --000000000000bd0c6206261662eb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear Eli,

thank you for your= response(s). I understand that this build is not officially supported. Upo= n further investigation I think the culprit is likely UCRT, as the director= ies are created without write permissions. Former versions of Emacs, which = used a different C runtime, created directories with read/write permissions= .

Therefore I will report the issue at the appropr= iate build site.

Best, Johann

<= div class=3D"gmail_quote">
Am Mo., 4. = Nov. 2024 um 14:11=C2=A0Uhr schrieb Eli Zaretskii <eliz@gnu.org>:
[Please don't change the Subject of the responses and = followups.]

> From: Johann H=C3=B6chtl <johann.hoechtl@gmail.com>
> Date: Mon, 4 Nov 2024 09:06:12 +0100
>
> The full error message is:
>
> Error when expiring the cache: (permission-denied Removing directory P= ermission denied
> c:/Users/HoechtlJ/OneDrive - WKO Online/Dokumente/.emacs.d/url/cache/H= oechtlJ/https/org/gnu/www)

What is the Lisp code which triggers this error message?=C2=A0 IOW, please<= br> 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 mes= sage gets printed?

Why would blanks in the directory name cause Emacs to try to delete a
different directory?=C2=A0 Emacs doesn't delete directories via the she= ll,
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 s= ome
other filesystem wizardry that Emacs doesn't understand.=C2=A0 Please t= ry
producing a standalone self-contained recipe for reproducing the
problem starting from "emacs -Q", preferably without installing a= ny
ELPA packages.=C2=A0 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.
--000000000000bd0c6206261662eb--