Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 92695 - glibc ebuild runs tests when doing a native cross compile
Summary: glibc ebuild runs tests when doing a native cross compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 92692
  Show dependency tree
 
Reported: 2005-05-15 05:11 UTC by Radek Podgorny
Modified: 2005-05-17 15:25 UTC (History)
0 users

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 Radek Podgorny 2005-05-15 05:11:12 UTC
The current glibc ebuild runs some simple tests at the end of the build procedure to verify the build went fine. (line 497 and on it glibc-2.3.5.ebuild) These test fail when cross-compiling glibc because it's obvious I cannot run the target-system binaries.

Also, the lines 540-544 don't make much sense on a cross-compiled system and should be executed conditionally only if ${ROOT}="/"
Comment 1 SpanKY gentoo-dev 2005-05-15 20:02:34 UTC
a cross-compiling setup will never reach the simple sanity checks

ive fixed the iconv stuff in the latest 3 ebuilds
Comment 2 Radek Podgorny 2005-05-17 03:56:52 UTC
Let's take a deeper look into the ebuild. The native tests should be skipped
when is_crosscompile() returns true. is_crosscompile returns true if CHOST and
CTARGET (which is previously taken from CHOST) differ. When cross-compiling a
native build (to be used on other system) CHOST = CTARGET!

See http://podgorny.cz/moin/GentooOnIpaq how to reproduce...
Comment 3 SpanKY gentoo-dev 2005-05-17 05:30:42 UTC
again, this is because you didnt provide enough info off the bat :p
Comment 4 SpanKY gentoo-dev 2005-05-17 15:25:55 UTC
added a CBUILD!=CHOST check before doing the ld-* tests