From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller 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 21:07:09 +0200 Message-ID: References: <83k0o0vv8k.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25687"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (windows-nt) Cc: 48444@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 15 21:08:18 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 1lhze4-0006UT-Uv for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 May 2021 21:08:18 +0200 Original-Received: from localhost ([::1]:53490 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhze3-0000Oe-6D for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 May 2021 15:08:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhzdq-0000OO-Ii for bug-gnu-emacs@gnu.org; Sat, 15 May 2021 15:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37706) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhzdq-0003ks-B8 for bug-gnu-emacs@gnu.org; Sat, 15 May 2021 15:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lhzdq-0004nY-5G for bug-gnu-emacs@gnu.org; Sat, 15 May 2021 15:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Arthur Miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 May 2021 19:08: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.162110566118414 (code B ref 48444); Sat, 15 May 2021 19:08:02 +0000 Original-Received: (at 48444) by debbugs.gnu.org; 15 May 2021 19:07:41 +0000 Original-Received: from localhost ([127.0.0.1]:49252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhzdV-0004mw-AC for submit@debbugs.gnu.org; Sat, 15 May 2021 15:07:41 -0400 Original-Received: from mail-oln040092073070.outbound.protection.outlook.com ([40.92.73.70]:48578 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhzdS-0004mh-FH for 48444@debbugs.gnu.org; Sat, 15 May 2021 15:07:39 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SzG1AB7Qs+pIAtcm49tWCwMTWfU+k5LBFIfG0ROE6NUai/27KV4LKLqIBNhufyIsc7+OOr0I0WWxPuvQKPml339VFZe6Rrc0RwBP0s9PCrQZ6mCiCDz97AiLJ8iyMoYjKcSFvMoqRTyIevmh+rLstVHHGrfktBBbhqcCZcGuXX1RNNYGSqtd2aNHRJNpbJ472sloYN6veClRMK//0+GfJfapAvAunZhSMEZjjEoR5FCtH7RMfSRzZ0KFcPLMMkuDTLqNifUee/cFk/d+hmbYeyNhvbkTwDborHJexMoZkUDdvfURnut8E4XgBXUHcKvV77MWLMdtJ4Etamx/2mPI4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zxzweRCp+aCIBd2aFSC1oxru0S+rsWQKVAWAMD1VCNM=; b=bre0itNuoovflsVduU+loCveSTYjoMszP57OMriqUMg47hXqxfYKeSYr6/REw4AMV/BtO4alUJZFmp3f9AwGzokOXcSS/+MBEEls8QoidCXstjDiiNBaV9G1DmtE1ldv3kdc6Dqhzh1tai4+QeXwmbTk0STibofoOfLce5ZtElKVMHqWMOpVl+7S/dP4ftRv6DV0k1srS18bm9M5lEYQBpbP8RNG/YeMLGqmE8EsvSQ1Aq5psuFLDv8r8aa034lyle45TBMHdiAjWDgswug2sOq87IeefKe9B+0ieEXD2YA+Px/pioIR1UXuQ8tSv9bgf1mYchZhceyHoefuidew/g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zxzweRCp+aCIBd2aFSC1oxru0S+rsWQKVAWAMD1VCNM=; b=aBXhzLBT52ALpnNw75j/aCU+dC0twkvyBpWW0HK1FhigeS+F6IRlaGoiG17dFOWO3q8IOkbz8r5B0OuJlx1vvyslDQO8NrdRytmhJ6msfnNn1N7XQSJrSgATLba+YCDHvI2p6Q4Hd29dW2SC1cx/Ua3KQJ86y5BXLWr3mHscSnKYiyXNUJyAOhlWx0lcLgrqyT6LWkqCMOkPGmIoTlMGOIUD4ao8RmrooXrMQtxmmHqNtxE4CIurpOyAtKuSkK0xF6Si8eZLayP/WdmH1qKW38QsteZZFGacGq48232TCJbsA1yCKStA1gZ11vAXQMB0PvfSLbIrAIH+plo+0HXd6w== Original-Received: from HE1EUR04FT034.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::4c) by HE1EUR04HT069.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::337) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25; Sat, 15 May 2021 19:07:31 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:7e0d::4c) by HE1EUR04FT034.mail.protection.outlook.com (2a01:111:e400:7e0d::293) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25 via Frontend Transport; Sat, 15 May 2021 19:07:31 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:7002F468CF5B2325C7C9A4E68DBFF08990453F41517E3B7C4879751DEE8E974A; UpperCasedChecksum:421D309C729F5DCE2D94DBA41F41024F048C4E455D3E14811A1533AB0C39F2F5; SizeAsReceived:7501; Count:46 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::d1c1:2a0d:3b2b:4591]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::d1c1:2a0d:3b2b:4591%7]) with mapi id 15.20.4129.029; Sat, 15 May 2021 19:07:31 +0000 In-Reply-To: <83k0o0vv8k.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 15 May 2021 19:04:43 +0300") X-TMN: [v1sVTRCet4lUx6u7zDgn7tAlXT0eqvQL] X-ClientProxiedBy: HE1PR0202CA0037.eurprd02.prod.outlook.com (2603:10a6:3:e4::23) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <86mtsvn7du.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from DESKTOP-DUQ3CAI.homepc (88.206.181.40) by HE1PR0202CA0037.eurprd02.prod.outlook.com (2603:10a6:3:e4::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Sat, 15 May 2021 19:07:31 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: d0e594be-812e-4fbc-dc97-08d917d4b0a6 X-MS-TrafficTypeDiagnostic: HE1EUR04HT069: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Bk5nc2H87lMpEFNCPXXD6GEMoawGqbLqLtUyg9MegTv98ED+uTlLOsEBjYcO4AY1JaTEp2sL9UOS7+iO0qEicIBGh39pXdWro0eznKlcxeILThBHcv/CxPkinL361fsDhabrl7l4v5SkzVBceBAKL3GeJfDuNASxkxcu7LV5tHOoX9l4YTx8SFS25OwkjexRJFxQgLz5ogcymKOy+mt+OWnJvC6VbpUM07WRal/5q35zMqkq9xLbt7fgJT+XdxNM/QF9l3NYV01o2QT7Q2PC85LqR2uwQW/trSem2nvh+hypJ5ks2+YXlTPvCNAMCVoSLoa9e8mOLJEVSaJH4j/G1pyjh0tzwapC0+1UwnyMZB2g5IVPmqpXIUc46L6PPF0McXLW01My0CKLfbd23FTbQg== X-MS-Exchange-AntiSpam-MessageData: FFBfKoFrB53GU2lIIty6OfGp+FssSrUQDC37RY8lrtXMwTCOxc8tLgMrRTY+fTwv6fBqpI280/o6b9CUk0toyf8HN0WFCplXV+NN8ifEqAwr8UKLbe4LWSmm3MJ0cA31ntHPlKmKqNjkbbFG1FVQLg== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: d0e594be-812e-4fbc-dc97-08d917d4b0a6 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 May 2021 19:07:31.8088 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: HE1EUR04FT034.eop-eur04.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR04HT069 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:206619 Archived-At: Eli Zaretskii writes: >> 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. Indeed, seems to have been the problem. After I manually purged c:/msys64/usr/bin and c:/msys64/usr/bin from exec-path, I was able to install packages and create/compile init file. Any idea how it got there? I didn't have any .bashrc or custom setuped files, everything was just default as installed. It seems like path was setup by msys. I see when I start new process that exec path have those and they take precedence before mingw: ("c:/msys64/mingw64/bin" "c:/msys64/usr/bin" "c:/msys64/mingw64/bin" "C:/msys64/usr/local/bin" "C:/msys64/usr/bin" "C:/msys64/usr/bin" "C:/Windows/System32" "C:/Windows" "C:/Windows/System32/Wbem" "C:/Windows/System32/WindowsPowerShell/v1.0/" "C:/msys64/usr/bin/site_perl" "C:/msys64/usr/bin/vendor_perl" ...) Do I have any option other than to manually setq exec-path in after-init-hook? Ouupps, seems like some random text make it to the list; sorry wasn't ment, I must have sent it away by accident.