<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>210039</bug_id>
          
          <creation_ts>2008-02-13 19:37 0000</creation_ts>
          <short_desc>nspr has broken 64bit checking</short_desc>
          <delta_ts>2008-02-14 11:11:04 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>vapier@gentoo.org</reporter>
          <assigned_to>mozilla@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-02-13 19:37:30 0000</bug_when>
            <thetext>here is the current code:
    if use amd64 || use ppc64 || use ia64 || use s390; then
        myconf=&quot;${myconf} --enable-64bit&quot;
    else
        myconf=&quot;&quot;
    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 &gt; &quot;${T}&quot;/test.c
$(tc-getCC) -c &quot;${T}&quot;/test.c -o &quot;${T}&quot;/test.o
case $(file &quot;${T}&quot;/test.o) in
    *64-bit*) myconf=&quot;${myconf} --enable-64bit&quot;
    *32-bit*) ;;
    *) die &quot;FAIL&quot;;;
esac</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2008-02-14 11:11:04 0000</bug_when>
            <thetext>Added, thanks</thetext>
          </long_desc>
      
    </bug>

</bugzilla>