Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716046 - sys-apps/portage: sys-apps/portage upgrade triggers .../._portage_reinstall_..../bin/ebuild.sh: .../build-info/${PF}.ebuild: No such file or directory
Summary: sys-apps/portage: sys-apps/portage upgrade triggers .../._portage_reinstall_....
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-03 17:17 UTC by Matthew Thode ( prometheanfire )
Modified: 2020-04-03 19:27 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 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2020-04-03 17:17:32 UTC
install portage first due to bug in env vars not being passed when portage installs itself and re-inits

Found it as part of https://review.opendev.org/#/c/717177

Reproducible: Always

Steps to Reproduce:
change python versions, run through this as a test

https://github.com/openstack/diskimage-builder/blob/f1d7e902e39264a0dd9584d7da11e7e62339d0a6/diskimage_builder/elements/gentoo/pre-install.d/02-gentoo-04-install-desired-python

the review linked above has a fix within that same file
Comment 1 Zac Medico gentoo-dev 2020-04-03 17:23:43 UTC
Would be nice to have some more context around this error pasted in #gentoo-dev:

> 2020-04-03 05:47:48.493 | /var/tmp/portage/._portage_reinstall_.4b7qcxim/bin/ebuild.sh: line 609: /var/tmp/portage/dev-python/lxml-4.5.0/build-info/lxml-4.5.0.ebuild: No such file or directory

Like what ebuild phase was it? This code can possibly run in more than one phase, the condition in ebuild.sh looks like this:

> 	if [[ $EBUILD_PHASE = setup && $EMERGE_FROM = ebuild ]] || \
> 		[[ $EBUILD_PHASE = depend || ! -f $T/environment || \
> 		-f $PORTAGE_BUILDDIR/.ebuild_changed || \
> 		" ${FEATURES} " == *" noauto "* ]] ; then
Comment 2 Zac Medico gentoo-dev 2020-04-03 17:52:16 UTC
If /var/tmp/portage/dev-python/lxml-4.5.0/build-info/lxml-4.5.0.ebuild is unexpectedly missing, it could be an indication that the build directory lock did not function as expected, which could have the same cause as bug 714480.
Comment 3 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2020-04-03 18:33:36 UTC
maybe, this is all within a tmpfs