Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936322 - Error message for failed binpkg verification could be prettier
Summary: Error message for failed binpkg verification could be prettier
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-20 01:41 UTC by Sam James
Modified: 2024-07-20 01:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-20 01:41:18 UTC
With portage-3.0.65, I'd forgot to setup getuto first, and got this:
```
[binary   R    ] sys-libs/glibc-2.39-r6-2:2.2::gentoo  USE="multiarch ssp (static-libs) -audit -caps* (-cet) -compile-locales (-custom-cflags) -doc -gd -hash-sysv-compat -headers-only (-
multilib) -multilib-bootstrap -nscd -perl -profile (-selinux) (-stack-realign) -suid -systemd* -systemtap -test (-vanilla)" 15,650 KiB

Total: 1 package (1 reinstall, 1 binary), Size of downloads: 15,650 KiB

>>> Running pre-merge checks for sys-libs/glibc-2.39-r6
--2024-07-19 18:37:36--  https://gentoo.osuosl.org/releases/sparc/binpackages/23.0/64/sys-libs/glibc/glibc-2.39-r6-2.gpkg.tar
Resolving gentoo.osuosl.org... 2600:3404:200:237::2, 2605:bc80:3010::134, 2600:3402:200:227::2, ...
Connecting to gentoo.osuosl.org|2600:3404:200:237::2|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16025600 (15M) [application/x-tar]
Saving to: ‘/var/cache/binpkgs/sparc64/niagara4/sys-libs/glibc/glibc-2.39-r6-2.gpkg.tar.partial’

/var/cache/binpkgs/sparc64/niagara4/sys-libs/g 100%[==================================================================================================>]  15.28M  12.4MB/s    in 1.2s

2024-07-19 18:37:38 (12.4 MB/s) - ‘/var/cache/binpkgs/sparc64/niagara4/sys-libs/glibc/glibc-2.39-r6-2.gpkg.tar.partial’ saved [16025600/16025600]

!!!
gpg: keyblock resource '/etc/portage/gnupg/pubring.kbx': No such file or directory                                                                                                        [GNUPG:] ERROR add_keyblock_resource 33587281                                                                                                                                             [GNUPG:] PLAINTEXT 74 0                                                                                                                                                                   [GNUPG:] NEWSIG                                                                                                                                                                           gpg: Signature made Mon 03 Jun 2024 04:31:16 PM PDT                                                                                                                                       gpg:                using RSA key 534E4209AB49EEE1C19D96162C44695DB9F6043D                                                                                                                [GNUPG:] ERROR keydb_search 33554445                                                                                                                                                      [GNUPG:] ERROR keydb_search 33554445                                                                                                                                                      [GNUPG:] ERRSIG 2C44695DB9F6043D 1 10 01 1717457476 9 534E4209AB49EEE1C19D96162C44695DB9F6043D                                                                                            [GNUPG:] NO_PUBKEY 2C44695DB9F6043D                                                                                                                                                       gpg: Can't check signature: No public key                                                                                                                                                 [GNUPG:] FAILURE gpg-exit 33554433                                                                                                                                                        gpg: can't create `/etc/portage/gnupg/random_seed': No such file or directory                                                                                                             !!! Invalid binary package: '/var/cache/binpkgs/sparc64/niagara4/sys-libs/glibc/glibc-2.39-r6-2.gpkg.tar.partial', GPG verify failed                                                       * Binary package is not usable                                                                                                                                                           >>> Failed to emerge sys-libs/glibc-2.39-r6                                                                                                                                                                                                                                                                                                                                          * Messages for package sys-libs/glibc-2.39-r6:                                                                                                                                                                                                                                                                                                                                      * Binary package is not usable                                                                                                                                                            *                                                                                                                                                                                         * The following package has failed to build, install, or execute postinst:                                                                                                                *                                                                                                                                                                                         *  (sys-libs/glibc-2.39-r6-2:2.2/2.2::gentoo, binary scheduled for merge)                                                                                                                 *                                                                                                                                                                                        
```

I think the error is mostly fine but I was expecting it to be prettified like with eerror (see bug 927632).
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-20 01:45:35 UTC
Looks like we prettify it in lib/_emerge/BinpkgPrefetcher.py but not in lib/_emerge/Scheduler.py, so BinpkgPrefetcher vs BinpkgFetcher?