Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 184527

Summary: cross-compile check in python-2.4.4-r4 is always wrong
Product: Gentoo Linux Reporter: Philipp Riegger <bugs+gentoo>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: python
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Philipp Riegger 2007-07-07 18:28:55 UTC
When trying to cross-compile the latest python it always fails due to a wrong check. "python -V" does not only print the version but also "Python " in front of it and it prints to stderr. The following patch should fix this:

<quote>
--- python-2.4.4-r4.ebuild.orig 2007-07-07 18:22:57.000000000 +0000
+++ python-2.4.4-r4.ebuild      2007-07-07 18:23:41.000000000 +0000
@@ -56,7 +56,7 @@
        cd ${S}
 
        if tc-is-cross-compiler ; then
-               [[ $(python -V) != ${PV} ]] && \
+               [[ "$(python -V 2>&1)" != "Python ${PV}" ]] && \
                        die "Crosscompiling requires the same host and build versions."
        else
                rm "${WORKDIR}/${PV}"/*_all_crosscompile.patch
</quote>

Cross compiling fails never the less, but that's another thing.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-07-07 20:42:32 UTC

*** This bug has been marked as a duplicate of bug 184308 ***