Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503228 - x11-libs/libxcb - xcb-proto python check should use --host-root
Summary: x11-libs/libxcb - xcb-proto python check should use --host-root
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: PATCH
: 503830 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-03-02 20:21 UTC by James Le Cuirot
Modified: 2014-07-29 14:27 UTC (History)
2 users (show)

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


Attachments
libxcb-python-check-deps.patch (libxcb-python-check-deps.patch,430 bytes, patch)
2014-03-02 20:21 UTC, James Le Cuirot
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Le Cuirot gentoo-dev 2014-03-02 20:21:07 UTC
Created attachment 371582 [details, diff]
libxcb-python-check-deps.patch

Continuing from bug #472224 and in the same manner as bug #499234...

When building in a ROOT, xcb-proto does not get installed to ROOT because it is only in DEPEND. has_version checks ROOT by default so python_check_deps fails even though DEPEND is satisfied. xcb-proto (and Python) really is a host build dependency so adding --host-root to the has_version call fixes the check and allows libxcb to build, even when cross-compiling. Note that python_check_deps already checks for Python itself in / and not ROOT because it wouldn't make sense to execute the Python located in ROOT. See attached patch.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-07-29 14:20:35 UTC
*** Bug 503830 has been marked as a duplicate of this bug. ***
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-07-29 14:23:49 UTC
-9999 fixed...

[master 3580394] x11-libs/libxcb: Fix finding Python when building in a root, bug #503228. Patch by James Le Cuirot.
 2 files changed, 1 insertion(+), 2 deletions(-)
 delete mode 100644 x11-libs/libxcb/Manifest
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-07-29 14:27:36 UTC
+  29 Jul 2014; Michał Górny <mgorny@gentoo.org> libxcb-1.10.ebuild,
+  libxcb-1.9.3-r1.ebuild:
+  Fix finding Python when building in a root, bug #503228. Patch by James Le
+  Cuirot.