Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715354 - x11-base/xcb-proto-1.14 doesn't respect PYTHON_TARGETS
Summary: x11-base/xcb-proto-1.14 doesn't respect PYTHON_TARGETS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-29 20:29 UTC by Thomas Capricelli
Modified: 2020-03-31 21:09 UTC (History)
1 user (show)

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 Thomas Capricelli 2020-03-29 20:29:39 UTC
I emerge x11-base/xcb-proto-1.14 with PYTHON_TARGETS="python3_6* python3_7 -python3_8", but only 3.6 files are installed:

equery files xcb-proto
 * Searching for xcb-proto ...
 * Contents of x11-base/xcb-proto-1.14:
/usr
/usr/lib
/usr/lib/pkgconfig
/usr/lib/pkgconfig/xcb-proto.pc
/usr/lib64
/usr/lib64/pkgconfig
/usr/lib64/pkgconfig/xcb-proto.pc
/usr/lib64/python3.6
/usr/lib64/python3.6/site-packages
/usr/lib64/python3.6/site-packages/xcbgen
/usr/lib64/python3.6/site-packages/xcbgen/__init__.py
/usr/lib64/python3.6/site-packages/xcbgen/__pycache__
/usr/lib64/python3.6/site-packages/xcbgen/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/xcbgen/__pycache__/__init__.cpython-36.opt-2.pyc
/usr/lib64/python3.6/site-packages/xcbgen/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/xcbgen/__pycache__/align.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/xcbgen/__pycache__/align.cpython-36.opt-2.pyc
/usr/lib64/python3.6/site-packages/xcbgen/__pycache__/align.cpython-36.pyc
/usr/lib64/python3.6/site-packages/xcbgen/__pycache__/error.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/xcbgen/__pycache__/error.cpython-36.opt-2.pyc
/usr/lib64/python3.6/site-packages/xcbgen/__pycache__/error.cpython-36.pyc
/usr/lib64/python3.6/site-packages/xcbgen/__pycache__/expr.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/xcbgen/__pycache__/expr.cpython-36.opt-2.pyc
/usr/lib64/python3.6/site-packages/xcbgen/__pycache__/expr.cpython-36.pyc
/usr/lib64/python3.6/site-packages/xcbgen/__pycache__/matcher.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/xcbgen/__pycache__/matcher.cpython-36.opt-2.pyc
/usr/lib64/python3.6/site-packages/xcbgen/__pycache__/matcher.cpython-36.pyc
/usr/lib64/python3.6/site-packages/xcbgen/__pycache__/state.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/xcbgen/__pycache__/state.cpython-36.opt-2.pyc
/usr/lib64/python3.6/site-packages/xcbgen/__pycache__/state.cpython-36.pyc
/usr/lib64/python3.6/site-packages/xcbgen/__pycache__/xtypes.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/xcbgen/__pycache__/xtypes.cpython-36.opt-2.pyc
/usr/lib64/python3.6/site-packages/xcbgen/__pycache__/xtypes.cpython-36.pyc
/usr/lib64/python3.6/site-packages/xcbgen/align.py
/usr/lib64/python3.6/site-packages/xcbgen/error.py
/usr/lib64/python3.6/site-packages/xcbgen/expr.py
/usr/lib64/python3.6/site-packages/xcbgen/matcher.py
/usr/lib64/python3.6/site-packages/xcbgen/state.py
/usr/lib64/python3.6/site-packages/xcbgen/xtypes.py
/usr/share
/usr/share/doc
(+... other non-python files)

Reproducible: Always
Comment 1 Matt Turner gentoo-dev 2020-03-31 21:09:41 UTC
Fixed by

commit 6cf75d7c54903a2126db2da905688c0b6d6d61ef
Author: James Le Cuirot <chewi@gentoo.org>
Date:   Fri Mar 27 23:31:05 2020 +0000

    x11-base/xcb-proto: Install 1.14 for the correct Python versions
    
    On my system, I had 3.7 and 3.8 selected but it was installing for
    2.7, even though that's not one of the targets! 2.7 had accidentally
    become my eselected Python. configure was picking this up, detecting
    the sitedir, and locking it into the Makefile, preventing
    python_foreach_impl from having any effect. It is simpler and safer to
    override the Makefile's pythondir with the sitedir value returned by
    the eclass.
    
    Package-Manager: Portage-2.3.96, Repoman-2.3.20
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/15143
    Signed-off-by: Matt Turner <mattst88@gentoo.org>