Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 830599

Summary: perl-core/CPAN-2.290.0-r1: Fatal: can't create directory '/root/.gnupg': Permission denied
Product: Gentoo Linux Reporter: Samuel Bernardo <samuelbernardo.mail>
Component: Current packagesAssignee: Gentoo Perl team <perl>
Status: RESOLVED WORKSFORME    
Severity: normal CC: sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
build.log/emerge --info
emerge --info -v
Patch to skip import of PAUSE public keys into users GnuPG keychain

Description Samuel Bernardo 2022-01-04 14:30:43 UTC
Created attachment 761297 [details]
build log

http://dpaste.com/DNUDAE659

Not expected the load of a gpg key in /root...
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-04 14:34:04 UTC
Please always upload things to Bugzilla, don't link to pastes as they may expire.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-04 14:34:15 UTC
Created attachment 761298 [details]
build.log/emerge --info
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2022-01-04 15:18:49 UTC
Please add also the output of "emerge --info -v" as attachment...
Comment 4 Samuel Bernardo 2022-01-04 19:48:32 UTC
Created attachment 761320 [details]
emerge --info -v
Comment 5 Samuel Bernardo 2022-01-04 19:48:46 UTC
(In reply to Andreas K. Hüttel from comment #3)
> Please add also the output of "emerge --info -v" as attachment...

Done
Comment 6 kamal 2022-01-05 12:01:35 UTC
I had the same problem. CPAN tries to import the PAUSE public keys into the user's keychain for some reason.

A related bug has been around for a while:
rt.cpan.org/Public/Bug/Display.html?id=28952

I could get it to emerge by just skipping the import (see attached patch below). However, I do not know wether this will break something later.
Comment 7 kamal 2022-01-05 12:02:33 UTC
Created attachment 761360 [details, diff]
Patch to skip import of PAUSE public keys into users GnuPG keychain
Comment 8 Samuel Bernardo 2022-01-06 00:54:26 UTC
(In reply to kamal from comment #7)
> Created attachment 761360 [details, diff] [details, diff]
> Patch to skip import of PAUSE public keys into users GnuPG keychain

Thank you for sharing the patch.
Applied it to current version and worked as expected.
Everything seems to be working as expected.