Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jan 2012 11:36:55 GMT
From:      Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/164596: www/firefox: patch to fix build on sparc64
Message-ID:  <201201291136.q0TBatvS005386@red.freebsd.org>
Resent-Message-ID: <201201291140.q0TBeBFL069469@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         164596
>Category:       ports
>Synopsis:       www/firefox: patch to fix build on sparc64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 29 11:40:11 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Jean-Sébastien Pédron
>Release:        FreeBSD 9.0-RC1 sparc64
>Organization:
The FreeBSD Project
>Environment:
FreeBSD soho.dumbbell.fr 9.0-RC1 FreeBSD 9.0-RC1 #0: Wed Oct 19 05:23:43 UTC 2011     root@heller.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  sparc64
>Description:
The following bug report proposes a patch that fix the build on sparc64 for me:
https://bugzilla.mozilla.org/show_bug.cgi?id=653551

The patch I used is a previous version (which I attached to this PR), I didn't try the last version.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# HG changeset patch
# Parent 32715cbd4422e3128ff02bb95bdbe280142a7ab7
# User Landry Breuil <landry@openbsd.org>
Don't enable methodjit/Asm and friends on sparc64

diff --git a/js/src/configure.in b/js/src/configure.in
--- a/js/src/configure.in
+++ b/js/src/configure.in
@@ -2777,24 +2777,26 @@ arm*-*)
     ENABLE_METHODJIT=1
     ENABLE_MONOIC=1
     ENABLE_POLYIC=1
     ENABLE_POLYIC_TYPED_ARRAY=1
     AC_DEFINE(JS_CPU_ARM)
     AC_DEFINE(JS_NUNBOX32)
     ;;
 sparc*-*)
+    if test ! "$HAVE_64BIT_OS" ; then
     ENABLE_TRACEJIT=1
     NANOJIT_ARCH=Sparc
     ENABLE_METHODJIT=1
     ENABLE_MONOIC=1
     ENABLE_POLYIC=1
     ENABLE_POLYIC_TYPED_ARRAY=1
     AC_DEFINE(JS_CPU_SPARC)
     AC_DEFINE(JS_NUNBOX32)
+    fi
     ;;
 esac
 
 MOZ_ARG_DISABLE_BOOL(methodjit,
 [  --disable-methodjit           Disable method JIT support],
   ENABLE_METHODJIT= )
 
 MOZ_ARG_DISABLE_BOOL(monoic,


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201291136.q0TBatvS005386>