From nobody@FreeBSD.org  Sun Jan 29 11:36:55 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5F920106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 29 Jan 2012 11:36:55 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 4EC4E8FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 29 Jan 2012 11:36:55 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q0TBat0g005387
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 29 Jan 2012 11:36:55 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q0TBatvS005386;
	Sun, 29 Jan 2012 11:36:55 GMT
	(envelope-from nobody)
Message-Id: <201201291136.q0TBatvS005386@red.freebsd.org>
Date: Sun, 29 Jan 2012 11:36:55 GMT
From: Jean-Sbastien Pdron <dumbbell@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: www/firefox: patch to fix build on sparc64
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         164596
>Category:       ports
>Synopsis:       www/firefox: patch to fix build on sparc64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gecko
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 29 11:40:11 UTC 2012
>Closed-Date:    Sun Jan 29 18:47:08 UTC 2012
>Last-Modified:  Sun Jan 29 18:50:11 UTC 2012
>Originator:     Jean-Sbastien Pdron
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->gecko 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Jan 29 11:40:22 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=164596 
State-Changed-From-To: open->closed 
State-Changed-By: flo 
State-Changed-When: Sun Jan 29 18:47:07 UTC 2012 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=164596 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/164596: commit references a PR
Date: Sun, 29 Jan 2012 18:45:20 +0000 (UTC)

 flo         2012-01-29 18:44:54 UTC
 
   FreeBSD ports repository
 
   Modified files:
     www/firefox/files    patch-js-src-configure.in 
   Log:
   fix build on sparc64
   
   PR:             ports/164596
   Submitted by:   dumbbell
   
   Revision  Changes    Path
   1.5       +22 -6     ports/www/firefox/files/patch-js-src-configure.in
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
