Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184527 - cross-compile check in python-2.4.4-r4 is always wrong
Summary: cross-compile check in python-2.4.4-r4 is always wrong
Status: RESOLVED DUPLICATE of bug 184308
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-07 18:28 UTC by Philipp Riegger
Modified: 2007-07-07 20:42 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 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 ***