Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927632 - trying to fetch a binpkg from amd64 binhost results in "Event loop is closed" exception
Summary: trying to fetch a binpkg from amd64 binhost results in "Event loop is closed"...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on: 925481
Blocks: 377365
  Show dependency tree
 
Reported: 2024-03-23 14:25 UTC by 2857
Modified: 2024-07-20 01:41 UTC (History)
2 users (show)

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


Attachments
emerge --info (file_927632.txt,6.28 KB, text/plain)
2024-03-23 14:25 UTC, 2857
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 2857 2024-03-23 14:25:48 UTC
Created attachment 888277 [details]
emerge --info

Trying to follow 23.0 profile migration guide (https://wiki.gentoo.org/wiki/Project:Toolchain/23.0_update_instructions), step 9:

# emerge --ask --oneshot --getbinpkg sys-devel/binutils

Local copy of remote index is up-to-date and will be used.

Local copy of remote index is up-to-date and will be used.

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 1.40 s (backtrack: 0/20).

[binary     U  ] sys-libs/glibc-2.38-r10-1 [2.37-r7] USE="cet*" 
[binary     U  ] sys-devel/binutils-2.41-r5-1 [2.41-r2] USE="cet* zstd*" 

Would you like to merge these packages? [Yes/No] y

>>> Running pre-merge checks for sys-libs/glibc-2.38-r10
 * Fetching in the background:
 * /var/cache/binpkgs/sys-libs/glibc/glibc-2.38-r10-4.gpkg.tar.partial
 * To view fetch progress, run in another terminal:
 * tail -f /var/log/emerge-fetch.log

>>> Failed to emerge sys-libs/glibc-2.38-r10
[ERROR] Task was destroyed but it is pending!
task: <Task cancelling name='Task-13' coro=<BinpkgFetcher._main() running at /usr/lib/python3.11/site-packages/_emerge/BinpkgFetcher.py:114> wait_for=<Future cancelled> cb=[AsyncTaskFuture._done_callback()]>
[ERROR] Task was destroyed but it is pending!
task: <Task pending name='Task-14' coro=<PipeLogger._io_loop() running at /usr/lib/python3.11/site-packages/portage/util/_async/PipeLogger.py:98> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[PipeLogger._io_loop_done()]>
Exception ignored in: <coroutine object BinpkgFetcher._main at 0x7f205322e340>
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/_emerge/BinpkgFetcher.py", line 123, in _main
    await fetcher.async_unlock()
          ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/_emerge/BinpkgFetcher.py", line 298, in async_unlock
    result = self._lock_obj.async_unlock()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/_emerge/AsynchronousLock.py", line 93, in async_unlock
    self.scheduler.call_soon(unlock_future.set_result, None)
  File "/usr/lib/python3.11/asyncio/base_events.py", line 761, in call_soon
    self._check_closed()
  File "/usr/lib/python3.11/asyncio/base_events.py", line 519, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
[ERROR] Task was destroyed but it is pending!
task: <Task cancelling name='Task-15' coro=<BuildLogger._main() running at /usr/lib/python3.11/site-packages/portage/util/_async/BuildLogger.py:129> wait_for=<Future cancelled> cb=[BuildLogger._main_exit()]>
[ERROR] Task was destroyed but it is pending!
task: <Task pending name='Task-16' coro=<PipeLogger._io_loop() running at /usr/lib/python3.11/site-packages/portage/util/_async/PipeLogger.py:98> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[PipeLogger._io_loop_done()]>
[ERROR] Task was destroyed but it is pending!
task: <Task pending name='Task-17' coro=<SpawnProcess._main() running at /usr/lib/python3.11/site-packages/_emerge/SpawnProcess.py:190> wait_for=<Future pending cb=[AsynchronousTask.async_wait.<locals>.<lambda>() at /usr/lib/python3.11/site-packages/_emerge/AsynchronousTask.py:49, Task.task_wakeup()]> cb=[SpawnProcess._main_exit()]>
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-23 14:30:06 UTC
Is portage-3.0.63 any better?
Comment 2 2857 2024-03-23 14:37:48 UTC
Well, error is slightly different but essentially the same: 

# emerge --version
Portage 3.0.63 (python 3.11.7-final-0, default/linux/amd64/23.0/split-usr/no-multilib, gcc-13, glibc-2.37-r7, 6.1.60-gentoo-dist x86_64)

# emerge --ask --oneshot --getbinpkg sys-devel/binutils

Local copy of remote index is up-to-date and will be used.

Local copy of remote index is up-to-date and will be used.

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 1.40 s (backtrack: 0/20).

[binary     U  ] sys-libs/glibc-2.38-r10-1 [2.37-r7] USE="cet*" 
[binary     U  ] sys-devel/binutils-2.41-r5-1 [2.41-r2] USE="cet* zstd*" 

Would you like to merge these packages? [Yes/No] y

>>> Running pre-merge checks for sys-libs/glibc-2.38-r10
 * Fetching in the background:
 * /var/cache/binpkgs/sys-libs/glibc/glibc-2.38-r10-5.gpkg.tar.partial
 * To view fetch progress, run in another terminal:
 * tail -f /var/log/emerge-fetch.log

>>> Failed to emerge sys-libs/glibc-2.38-r10
[ERROR] Task was destroyed but it is pending!
task: <Task cancelling name='Task-77' coro=<BinpkgFetcher._main() done, defined at /usr/lib/python3.11/site-packages/_emerge/BinpkgFetcher.py:47> wait_for=<Future finished result=None> cb=[AsyncTaskFuture._done_callback()]>
[ERROR] Task was destroyed but it is pending!
task: <Task pending name='Task-81' coro=<ForkProcess._main() done, defined at /usr/lib/python3.11/site-packages/portage/util/_async/ForkProcess.py:180> wait_for=<Future pending cb=[AsynchronousTask.async_wait.<locals>.<lambda>() at /usr/lib/python3.11/site-packages/_emerge/AsynchronousTask.py:49, Task.task_wakeup()]> cb=[SpawnProcess._main_exit()]>
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-23 14:38:33 UTC
ack, thanks.
Comment 4 Zac Medico gentoo-dev 2024-03-23 18:35:45 UTC
I'm not able to reproduce this with any version of portage, and comment #0 seems to show the emerge process shutting down abnormally early since the even loop should still be open there.

Does the fetch succeed if you use --fetchonly?
Comment 5 2857 2024-03-23 19:54:18 UTC
It does, but then signature check fails:

# emerge --ask --oneshot --fetchonly --getbinpkg sys-devel/binutils

Local copy of remote index is up-to-date and will be used.

These are the packages that would be fetched, in order:

Calculating dependencies... done!
Dependency resolution took 1.40 s (backtrack: 0/20).

[binary     U  ] sys-libs/glibc-2.38-r10-1 [2.37-r7] USE="cet*" 
[binary     U  ] sys-devel/binutils-2.41-r5-1 [2.41-r2] USE="cet* zstd*" 

Would you like to fetch the source files for these packages? [Yes/No] y

>>> Fetching (1 of 2) sys-libs/glibc-2.38-r10::gentoo
--2024-03-23 20:52:29--  https://gentoo.osuosl.org/releases/amd64/binpackages/23.0/x86-64-v3/sys-libs/glibc/glibc-2.38-r10-1.gpkg.tar
Resolving gentoo.osuosl.org... 140.211.166.134, 64.50.233.100, 64.50.236.52, ...
Connecting to gentoo.osuosl.org|140.211.166.134|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11991040 (11M) [application/x-tar]
Saving to: ‘/var/cache/binpkgs/sys-libs/glibc/glibc-2.38-r10-6.gpkg.tar.partial’

/var/cache/binpkgs/sys-libs/ 100%[==============================================>]  11.44M   453KB/s    in 26s     

2024-03-23 20:52:56 (448 KB/s) - ‘/var/cache/binpkgs/sys-libs/glibc/glibc-2.38-r10-6.gpkg.tar.partial’ saved [11991040/11991040]

 * glibc-2.38-r10-6.gpkg.tar MD5 SHA1 size ;-) ...                       [ ok ]
!!!
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 Wed 20 Mar 2024 10:39:00 PM CET
gpg:                using RSA key 534E4209AB49EEE1C19D96162C44695DB9F6043D
[GNUPG:] ERROR keydb_search 33554445
[GNUPG:] ERROR keydb_search 33554445
[GNUPG:] ERRSIG 2C44695DB9F6043D 1 10 01 1710970740 9 534E4209AB49EEE1C19D96162C44695DB9F6043D
[GNUPG:] NO_PUBKEY 2C44695DB9F6043D
gpg: Can't check signature: No public key
gpg: can't create `/etc/portage/gnupg/random_seed': No such file or directory
!!! Invalid binary package: '/var/cache/binpkgs/sys-libs/glibc/glibc-2.38-r10-6.gpkg.tar.partial', GPG verify failed

>>> Failed to emerge sys-libs/glibc-2.38-r10

>>> Fetching (2 of 2) sys-devel/binutils-2.41-r5::gentoo
--2024-03-23 20:52:56--  https://gentoo.osuosl.org/releases/amd64/binpackages/23.0/x86-64-v3/sys-devel/binutils/binutils-2.41-r5-1.gpkg.tar
Resolving gentoo.osuosl.org... 64.50.233.100, 64.50.236.52, 140.211.166.134, ...
Connecting to gentoo.osuosl.org|64.50.233.100|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7147520 (6.8M) [application/x-tar]
Saving to: ‘/var/cache/binpkgs/sys-devel/binutils/binutils-2.41-r5-4.gpkg.tar.partial’

/var/cache/binpkgs/sys-devel 100%[==============================================>]   6.82M   782KB/s    in 9.1s    

2024-03-23 20:53:06 (768 KB/s) - ‘/var/cache/binpkgs/sys-devel/binutils/binutils-2.41-r5-4.gpkg.tar.partial’ saved [7147520/7147520]

 * binutils-2.41-r5-4.gpkg.tar MD5 SHA1 size ;-) ...                     [ ok ]
!!!
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 Wed 20 Mar 2024 10:34:45 PM CET
gpg:                using RSA key 534E4209AB49EEE1C19D96162C44695DB9F6043D
[GNUPG:] ERROR keydb_search 33554445
[GNUPG:] ERROR keydb_search 33554445
[GNUPG:] ERRSIG 2C44695DB9F6043D 1 10 01 1710970485 9 534E4209AB49EEE1C19D96162C44695DB9F6043D
[GNUPG:] NO_PUBKEY 2C44695DB9F6043D
gpg: Can't check signature: No public key
gpg: can't create `/etc/portage/gnupg/random_seed': No such file or directory
!!! Invalid binary package: '/var/cache/binpkgs/sys-devel/binutils/binutils-2.41-r5-4.gpkg.tar.partial', GPG verify failed

>>> Failed to emerge sys-devel/binutils-2.41-r5
 * 
 * The following 2 packages have failed to build, install, or execute
 * postinst:
 * 
 *  (sys-libs/glibc-2.38-r10-1:2.2/2.2::gentoo, binary scheduled for merge)
 *  (sys-devel/binutils-2.41-r5-1:2.41/2.41::gentoo, binary scheduled for merge)
 *
Comment 6 2857 2024-03-23 19:57:22 UTC
I think I'm missing some essential portage bits for that. Anyway, GnuPG is installed:

# eix gnupg

[U] app-crypt/gnupg
     Available versions:  2.2.41^t ~2.2.42-r1^t 2.2.42-r2^t ~2.4.3-r1^t ~2.4.4^t ~2.4.4-r1^t {bzip2 doc ldap nls readline selinux +smartcard ssl test (+)tofu tools tpm usb user-socket verify-sig wks-server}
     Installed versions:  2.2.41^t(10:22:57 PM 08/13/2023)(bzip2 nls readline smartcard ssl -doc -ldap -selinux -test -tofu -tools -usb -user-socket -verify-sig -wks-server)
     Homepage:            https://gnupg.org/
     Description:         The GNU Privacy Guard, a GPL OpenPGP implementation
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-23 19:58:27 UTC
By any chance, do you have a smartcard plugged in? That failure looks a bit different to the usual "broken keyring in /etc/portage/gnupg" thing.

(I had to do https://github.com/projg2/getuto/commit/9c9185c4d635b0403e71e6ffa609c8964250c11b to getuto, I wonder if we need to do the same in Portage.)
Comment 8 2857 2024-03-23 20:24:05 UTC
Sam - no cards I'm aware of (it's rented dedicated server in a datacenter).

# pcsc_scan

PC/SC device scanner
V 1.7.1 (c) 2001-2022, Ludovic Rousseau <ludovic.rousseau@free.fr>
SCardEstablishContext: Service not available.

# eix keys-gentoo

[I] sec-keys/openpgp-keys-gentoo-release
     Available versions:  20230329^t {test}
     Installed versions:  20230329^t(09:06:14 PM 08/13/2023)(-test)
     Homepage:            https://www.gentoo.org/downloads/signatures/
     Description:         OpenPGP keys used for Gentoo releases (snapshots, stages)
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-23 20:25:26 UTC
OK, thanks.

Is this your first time using binpkgs on this machine? If so, could you try:
mv /etc/portage/gnupg{,.bak} && getuto
Comment 10 2857 2024-03-23 20:31:56 UTC
I think so, yes. 

# mv /etc/portage/gnupg{,.bak} && getuto
mv: cannot stat '/etc/portage/gnupg': No such file or directory

# getuto
 * Initializing /etc/portage/gnupg ...
gpg: Generating Portage local OpenPGP trust key
gpg: done
gpg: checking the trustdb
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: key BB572E0E2D182910: no user ID
gpg: key BB572E0E2D182910: no user ID
gpg: key 9E6438C817072058: no user ID
gpg: key 9E6438C817072058: no user ID
gpg: key DB6B8C1F96D8BF6D: no user ID
gpg: key DB6B8C1F96D8BF6D: no user ID
gpg: key A13D0EF1914E7A72: no user ID
gpg: key A13D0EF1914E7A72: no user ID

pub  rsa4096/A13D0EF1914E7A72
     created: 2018-05-28  expires: 2024-07-01  usage: C   
     trust: unknown       validity: unknown
 Primary key fingerprint: EF95 38C9 E8E6 4311 A52C  DEDF A13D 0EF1 914E 7A72

     Gentoo repository mirrors (automated git signing key) <repomirrorci@gentoo.org>

This key is due to expire on 2024-07-01.

The signature will be marked as non-exportable.

gpg: "F748E9B3C47E393CC24C8FAF7C2AC09CD98F2EDF" is not the primary fingerprint

pub  rsa4096/DB6B8C1F96D8BF6D
     created: 2011-11-25  expires: 2024-07-01  usage: C   
     trust: unknown       validity: unknown
 Primary key fingerprint: DCD0 5B71 EAB9 4199 527F  44AC DB6B 8C1F 96D8 BF6D

     Gentoo ebuild repository signing key (Automated Signing Key) <infrastructure@gentoo.org>
     Gentoo Portage Snapshot Signing Key (Automated Signing Key)

This key is due to expire on 2024-07-01.

The signature will be marked as non-exportable.

gpg: "E1D6ABB63BFCFB4BA02FDF1CEC590EEAC9189250" is not the primary fingerprint

pub  dsa1024/9E6438C817072058
     created: 2004-07-20  expires: 2025-07-01  usage: SC  
     trust: unknown       validity: unknown
 Primary key fingerprint: D99E AC73 79A8 50BC E47D  A5F2 9E64 38C8 1707 2058

     Gentoo Linux Release Engineering (Gentoo Linux Release Signing Key) <releng@gentoo.org>

This key is due to expire on 2025-07-01.

The signature will be marked as non-exportable.

gpg: "C7FAC844D6122F080E1821A10403710E1415B4ED" is not the primary fingerprint

pub  rsa4096/BB572E0E2D182910
     created: 2009-08-25  expires: 2024-07-01  usage: SC  
     trust: unknown       validity: unknown
 Primary key fingerprint: 13EB BDBE DE7A 1277 5DFD  B1BA BB57 2E0E 2D18 2910

     Gentoo Linux Release Engineering (Automated Weekly Release Key) <releng@gentoo.org>

This key is due to expire on 2024-07-01.

The signature will be marked as non-exportable.

gpg: "534E4209AB49EEE1C19D96162C44695DB9F6043D" is not the primary fingerprint
gpg: next trustdb check due at 2024-07-01                                                                     [ ok ]


# emerge --ask --oneshot --fetchonly --getbinpkg sys-devel/binutils

Local copy of remote index is up-to-date and will be used.

Local copy of remote index is up-to-date and will be used.

These are the packages that would be fetched, in order:

Calculating dependencies... done!
Dependency resolution took 1.46 s (backtrack: 0/20).

[binary     U  ] sys-libs/glibc-2.38-r10-1 [2.37-r7] USE="cet*" 
[binary     U  ] sys-devel/binutils-2.41-r5-1 [2.41-r2] USE="cet* zstd*" 

Would you like to fetch the source files for these packages? [Yes/No] y

>>> Fetching (1 of 2) sys-libs/glibc-2.38-r10::gentoo
--2024-03-23 21:30:47--  https://gentoo.osuosl.org/releases/amd64/binpackages/23.0/x86-64-v3/sys-libs/glibc/glibc-2.38-r10-1.gpkg.tar
Resolving gentoo.osuosl.org... 64.50.236.52, 140.211.166.134, 64.50.233.100, ...
Connecting to gentoo.osuosl.org|64.50.236.52|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11991040 (11M) [application/x-tar]
Saving to: ‘/var/cache/binpkgs/sys-libs/glibc/glibc-2.38-r10-7.gpkg.tar.partial’

/var/cache/binpkgs/sys-libs/ 100%[==============================================>]  11.44M   675KB/s    in 18s     

2024-03-23 21:31:06 (664 KB/s) - ‘/var/cache/binpkgs/sys-libs/glibc/glibc-2.38-r10-7.gpkg.tar.partial’ saved [11991040/11991040]

 * glibc-2.38-r10-7.gpkg.tar MD5 SHA1 size ;-) ...                       [ ok ]

>>> Fetching (2 of 2) sys-devel/binutils-2.41-r5::gentoo
--2024-03-23 21:31:06--  https://gentoo.osuosl.org/releases/amd64/binpackages/23.0/x86-64-v3/sys-devel/binutils/binutils-2.41-r5-1.gpkg.tar
Resolving gentoo.osuosl.org... 64.50.233.100, 64.50.236.52, 140.211.166.134, ...
Connecting to gentoo.osuosl.org|64.50.233.100|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7147520 (6.8M) [application/x-tar]
Saving to: ‘/var/cache/binpkgs/sys-devel/binutils/binutils-2.41-r5-5.gpkg.tar.partial’

/var/cache/binpkgs/sys-devel 100%[==============================================>]   6.82M   871KB/s    in 8.2s    

2024-03-23 21:31:15 (855 KB/s) - ‘/var/cache/binpkgs/sys-devel/binutils/binutils-2.41-r5-5.gpkg.tar.partial’ saved [7147520/7147520]

 * binutils-2.41-r5-5.gpkg.tar MD5 SHA1 size ;-) ...                     [ ok ]


getuto did it, thanks!
Comment 11 Zac Medico gentoo-dev 2024-03-23 21:35:45 UTC
(In reply to 2857 from comment #2)
> Well, error is slightly different but essentially the same: 
> 
> # emerge --version
> Portage 3.0.63 (python 3.11.7-final-0,
> default/linux/amd64/23.0/split-usr/no-multilib, gcc-13, glibc-2.37-r7,
> 6.1.60-gentoo-dist x86_64)
> 
> # emerge --ask --oneshot --getbinpkg sys-devel/binutils
> 
> Local copy of remote index is up-to-date and will be used.
> 
> Local copy of remote index is up-to-date and will be used.
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> Dependency resolution took 1.40 s (backtrack: 0/20).
> 
> [binary     U  ] sys-libs/glibc-2.38-r10-1 [2.37-r7] USE="cet*" 
> [binary     U  ] sys-devel/binutils-2.41-r5-1 [2.41-r2] USE="cet* zstd*" 
> 
> Would you like to merge these packages? [Yes/No] y
> 
> >>> Running pre-merge checks for sys-libs/glibc-2.38-r10
>  * Fetching in the background:
>  * /var/cache/binpkgs/sys-libs/glibc/glibc-2.38-r10-5.gpkg.tar.partial
>  * To view fetch progress, run in another terminal:
>  * tail -f /var/log/emerge-fetch.log
> 
> >>> Failed to emerge sys-libs/glibc-2.38-r10

It looks like the "GPG verify failed" error message went to /var/log/emerge-fetch.log since the fix for bug 921327 includes capturing of stdout and stderr. We should at least pass down the log path so that it's included with the "Failed to emerge sys-libs/glibc-2.38-r10" message.

This looks like harmless noise that we can suppress by canceling any running prefetchers before the Scheduler _merge method returns (they get garbage collected after _main_loop_cleanup calls self._prefetchers.clear()):

> [ERROR] Task was destroyed but it is pending!
> task: <Task cancelling name='Task-77' coro=<BinpkgFetcher._main() done,
> defined at /usr/lib/python3.11/site-packages/_emerge/BinpkgFetcher.py:47>
> wait_for=<Future finished result=None> cb=[AsyncTaskFuture._done_callback()]>
> [ERROR] Task was destroyed but it is pending!
> task: <Task pending name='Task-81' coro=<ForkProcess._main() done, defined
> at /usr/lib/python3.11/site-packages/portage/util/_async/ForkProcess.py:180>
> wait_for=<Future pending cb=[AsynchronousTask.async_wait.<locals>.<lambda>()
> at /usr/lib/python3.11/site-packages/_emerge/AsynchronousTask.py:49,
> Task.task_wakeup()]> cb=[SpawnProcess._main_exit()]>
Comment 12 Larry the Git Cow gentoo-dev 2024-03-28 14:48:38 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=08a2bc3800ea2e997716903244ec041339b45b06

commit 08a2bc3800ea2e997716903244ec041339b45b06
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2024-03-24 22:11:54 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2024-03-28 14:47:49 +0000

    BinpkgPrefetcher: Emit eerror message for binarytree inject failure
    
    Since it is confusing when emerge exits due to an error that only shows
    in the fetch log, emit an eerror message when binarytree inject fails:
    
    >>> Running pre-merge checks for sys-libs/glibc-2.38-r10
     * Fetching in the background:
     * /var/cache/binpkgs/sys-libs/glibc/glibc-2.38-r10-5.gpkg.tar.partial
     * To view fetch progress, run in another terminal:
     * tail -f /var/log/emerge-fetch.log
    >>> Failed to emerge sys-libs/glibc-2.38-r10
    
     * Messages for package sys-libs/glibc-2.38-r10:
    
     * Binary package is not usable:
     *      !!!
     *      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 Wed 20 Mar 2024 10:34:45 PM CET
     *      gpg:                using RSA key 534E4209AB49EEE1C19D96162C44695DB9F6043D
     *      [GNUPG:] ERROR keydb_search 33554445
     *      [GNUPG:] ERROR keydb_search 33554445
     *      [GNUPG:] ERRSIG 2C44695DB9F6043D 1 10 01 1710970485 9 534E4209AB49EEE1C19D96162C44695DB9F6043D
     *      [GNUPG:] NO_PUBKEY 2C44695DB9F6043D
     *      !!! Invalid binary package: '/var/cache/binpkgs/sys-devel/binutils/binutils-2.41-r5-4.gpkg.tar.partial', GPG verify failed
    
    Fixes: 0ff49114cec7 ("binarytree: Handle inject failures")
    Bug: https://bugs.gentoo.org/927632
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 lib/_emerge/BinpkgPrefetcher.py | 35 ++++++++++++++++++++++++++++++-----
 1 file changed, 30 insertions(+), 5 deletions(-)
Comment 13 Larry the Git Cow gentoo-dev 2024-04-28 00:32:40 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1e53b9368c215451e3af78b557d8b86a2db9677

commit f1e53b9368c215451e3af78b557d8b86a2db9677
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-04-28 00:31:29 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-04-28 00:31:29 +0000

    sys-apps/portage: add 3.0.64
    
    Closes: https://bugs.gentoo.org/925481
    Closes: https://bugs.gentoo.org/675748
    Closes: https://bugs.gentoo.org/712222
    Closes: https://bugs.gentoo.org/920330
    Closes: https://bugs.gentoo.org/925213
    Closes: https://bugs.gentoo.org/925863
    Closes: https://bugs.gentoo.org/925888
    Closes: https://bugs.gentoo.org/925907
    Closes: https://bugs.gentoo.org/926048
    Closes: https://bugs.gentoo.org/926221
    Closes: https://bugs.gentoo.org/927059
    Closes: https://bugs.gentoo.org/927632
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/portage/Manifest              |   1 +
 sys-apps/portage/portage-3.0.64.ebuild | 242 +++++++++++++++++++++++++++++++++
 2 files changed, 243 insertions(+)