Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210039 - nspr has broken 64bit checking
Summary: nspr has broken 64bit checking
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-13 19:37 UTC by SpanKY
Modified: 2023-05-27 09:16 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 SpanKY gentoo-dev 2008-02-13 19:37:30 UTC
here is the current code:
    if use amd64 || use ppc64 || use ia64 || use s390; then
        myconf="${myconf} --enable-64bit"
    else
        myconf=""
    fi

problems:
 - s390 is not a 64bit arch ... s390x is ... but s390x is not a KEYWORD.  s390 and s390x both use the s390 KEYWORD.
 - 64bit mips is ignored

if the build system is so terrible it cannot do the 64bit detection itself, then use the toolchain to produce an object and run file on it:
echo > "${T}"/test.c
$(tc-getCC) -c "${T}"/test.c -o "${T}"/test.o
case $(file "${T}"/test.o) in
    *64-bit*) myconf="${myconf} --enable-64bit"
    *32-bit*) ;;
    *) die "FAIL";;
esac
Comment 1 Raúl Porcel (RETIRED) gentoo-dev 2008-02-14 11:11:04 UTC
Added, thanks