Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 877703 - sys-apps/pkgcore: does not override INSTALL_PREFIX anymore
Summary: sys-apps/pkgcore: does not override INSTALL_PREFIX anymore
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: PkgCore (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Arthur Zamarin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-20 03:42 UTC by Michał Górny
Modified: 2022-11-07 17:58 UTC (History)
1 user (show)

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


Attachments
pkgcore-fix-INSTALL_PREFIX.patch (pkgcore-fix-INSTALL_PREFIX.patch,1.24 KB, patch)
2022-10-21 06:15 UTC, Arthur Zamarin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-10-20 03:42:30 UTC
Seems to be a regression from PEP517 switch.  Apparently, setup.py used to hardcode install paths in _config.py when `setup.py install` was used.  Now we use wheels, so it instead uses sys.prefix to locate it.  This breaks when venv with system site-packages is used because pkgcore tries to find its config files in the venv instead of the actual install location.
Comment 1 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2022-10-21 06:15:58 UTC
Created attachment 824903 [details, diff]
pkgcore-fix-INSTALL_PREFIX.patch
Comment 2 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2022-11-07 17:58:18 UTC
Fixed with pkgcore using flit + wrapper as build backend