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#48444: 28.0.50; package.el wrong path for package-gnupghome-dir on win10 Date: Sat, 15 May 2021 19:04:43 +0300 Message-ID: <83k0o0vv8k.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17380"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48444@debbugs.gnu.org To: arthur.miller@live.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 15 18:05:43 2021 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 1lhwnP-0004JQ-2B for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 May 2021 18:05:43 +0200 Original-Received: from localhost ([::1]:58762 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhwnN-0006L3-S4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 May 2021 12:05:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34782) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhwmn-0006Jy-Kf for bug-gnu-emacs@gnu.org; Sat, 15 May 2021 12:05:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37555) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhwmk-0006hY-Jr for bug-gnu-emacs@gnu.org; Sat, 15 May 2021 12:05:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lhwmk-0004Sf-EK for bug-gnu-emacs@gnu.org; Sat, 15 May 2021 12:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 May 2021 16:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48444 X-GNU-PR-Package: emacs Original-Received: via spool by 48444-submit@debbugs.gnu.org id=B48444.162109469917137 (code B ref 48444); Sat, 15 May 2021 16:05:02 +0000 Original-Received: (at 48444) by debbugs.gnu.org; 15 May 2021 16:04:59 +0000 Original-Received: from localhost ([127.0.0.1]:49101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhwmg-0004SL-TI for submit@debbugs.gnu.org; Sat, 15 May 2021 12:04:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41126) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhwme-0004S6-Li for 48444@debbugs.gnu.org; Sat, 15 May 2021 12:04:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47652) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhwmZ-0006eu-4Z; Sat, 15 May 2021 12:04:51 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4296 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 1lhwmU-0004na-3M; Sat, 15 May 2021 12:04:46 -0400 In-Reply-To: (arthur.miller@live.com) 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" Xref: news.gmane.io gmane.emacs.bugs:206610 Archived-At: > From: arthur.miller@live.com > Date: Sat, 15 May 2021 17:07:58 +0200 > > Recipe: start Emacs started -Q flag from mingw64 bash prompt (msys2). > > I have freshly installed msys2 + deps + Emacs 28.0.50 from > master. Package installation failes due to some problem with how path for > `package-gnupghome-dir' is interpreted/setuped. Don't know really, > haven't investigated myself. Paths originally evals to: > "c:/Users/arthu/.emacs.d/elpa/gnupg" which is correct, but somehow > Emacs/package.el does not understands it or pass it wrongly to gpg; > since gpg ends up with this path: > > /c/Users/arthu/.emacs.d/c:/Users/arthu/.emacs.d/elpa/gnupg/pubring.kbx. > > I am pasting the error I get when trying go install a package: > > Failed to verify signature archive-contents.sig: > No public key for 066DAFCB81E42C40 created at 2021-05-13T23:10:01+0200 using RSA > Command output: > gpg: keyblock resource '/c/Users/arthu/.emacs.d/c:/Users/arthu/.emacs.d/elpa/gnupg/pubring.kbx': No such file or directory > gpg: Signature made Thu May 13 23:10:01 2021 > gpg: using RSA key C433554766D3DDC64221BFAA066DAFCB81E42C40 > gpg: Can't check signature: No public key > > If I setq path to use Unix prefix '/c/...' instead of 'C:/...' things > seems to work: > > (setq package-gnupghome-dir "/c/Users/arthu/.emacs.d/elpa/gnupg") > > Not sure if it is Emacs bug or on gpg side, but it is an issue. Looks like you are mixing MSYS2 executables and native Windows (a.k.a. "MinGW") executables, and that is at least part of the problem if not all of it. You should only use MinGW executables with a MinGW Emacs.