diff options
author | James Le Cuirot <chewi@gentoo.org> | 2024-03-02 15:20:20 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-03-08 06:40:23 +0100 |
commit | 035330c42417fb6eeb920565f695877a4b20bdb7 (patch) | |
tree | 05ac2a23add0b46ef80845564f1e4d605e36aa67 /eclass | |
parent | distutils-r1.eclass: Make vars local before calling filter-lto (diff) | |
download | gentoo-035330c42417fb6eeb920565f695877a4b20bdb7.tar.gz gentoo-035330c42417fb6eeb920565f695877a4b20bdb7.tar.bz2 gentoo-035330c42417fb6eeb920565f695877a4b20bdb7.zip |
python-utils-r1.eclass: Fix python_doheader install location with ROOT
python_get_includedir is prefixed with ESYSROOT, not EPREFIX, so we need
to strip off the former, not the latter.
This is currently only used for dev-python/pillow, which I have tested.
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/python-utils-r1.eclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index 3af3cbdb075e..caa39813feec 100644 --- a/eclass/python-utils-r1.eclass +++ b/eclass/python-utils-r1.eclass @@ -884,7 +884,7 @@ python_doheader() { [[ ${EPYTHON} ]] || die 'No Python implementation set (EPYTHON is null).' local includedir=$(python_get_includedir) - local d=${includedir#${EPREFIX}} + local d=${includedir#${ESYSROOT}} ( insopts -m 0644 |