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

Bug 916958

Summary: sys-apps/portage: ^c can lead to Portage attempting to create a binpkg prematurely (and fortunately failing)
Product: Portage Development Reporter: Michał Górny <mgorny>
Component: CoreAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal CC: gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=900226
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: dev-python:Faker-19.13.0:20231106-105326.log
emerge --info

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-11-06 10:56:46 UTC
Created attachment 874148 [details]
dev-python:Faker-19.13.0:20231106-105326.log

I've ^c-ed Portage, and got a suspicious error:

>>> Source prepared.
^c
/usr/lib/portage/python3.12/misc-functions.sh: line 517: /tmp/portage/dev-python/Faker-19.13.0/build-info/BUILD_ID: No such file or directory
usage: compose <package_cpv> <binpkg_path> <metadata_dir> <image_dir>
Argument 3 is not a directory: '/tmp/portage/dev-python/Faker-19.13.0/build-info'
 * ERROR: dev-python/Faker-19.13.0::gentoo failed (package phase):
 *   Failed to create binpkg file
 * 
 * Call stack:
 *   misc-functions.sh, line 671:  Called __dyn_package
 *   misc-functions.sh, line 558:  Called die
 * The specific snippet of code:
 *                      die "Failed to create binpkg file"

It looks as if it jumped prematurely into binpkg creation rather than gracefully terminating.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-11-06 10:57:34 UTC
Created attachment 874149 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-06 11:02:27 UTC
From the summary, I was expecting this to be a dupe of bug 900226, but it's not...