Summary: | sys-apps/portage: installed in venv fails if ROOT!=/ due to wrong profile check | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Michał Górny <mgorny> |
Component: | Core | Assignee: | Portage team <dev-portage> |
Status: | CONFIRMED --- | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Michał Górny
2022-02-07 16:03:51 UTC
My reproducer: git clone https://github.com/mgorny/gentoopm cd gentoopm tox Basically, tests work just fine with Gentoo-installed Portage but fail when run inside venv. You can then use e.g.: . .tox/py310/bin/activate export PORTAGE_CONFIGROOT=/tmp/pytest-of-<username>/pytest-current/rootcurrent/ export ROOT=${PORTAGE_CONFIGROOT} emerge |