From owner-svn-ports-all@freebsd.org Fri Oct 16 19:31:13 2015 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DB99AA16D06; Fri, 16 Oct 2015 19:31:13 +0000 (UTC) (envelope-from jmmv@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A3AED810; Fri, 16 Oct 2015 19:31:13 +0000 (UTC) (envelope-from jmmv@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t9GJVC51047200; Fri, 16 Oct 2015 19:31:12 GMT (envelope-from jmmv@FreeBSD.org) Received: (from jmmv@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t9GJVCOF047199; Fri, 16 Oct 2015 19:31:12 GMT (envelope-from jmmv@FreeBSD.org) Message-Id: <201510161931.t9GJVCOF047199@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jmmv set sender to jmmv@FreeBSD.org using -f From: Julio Merino Date: Fri, 16 Oct 2015 19:31:12 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r399507 - head/lang/spidermonkey170/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Oct 2015 19:31:14 -0000 Author: jmmv (src committer) Date: Fri Oct 16 19:31:12 2015 New Revision: 399507 URL: https://svnweb.freebsd.org/changeset/ports/399507 Log: Fix build on 64-bit big-endian machines. Approved by: kwm (maintainer), bapt (mentor) Differential Revision: https://reviews.freebsd.org/D3397 Added: head/lang/spidermonkey170/files/patch-jsval.h (contents, props changed) Added: head/lang/spidermonkey170/files/patch-jsval.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/spidermonkey170/files/patch-jsval.h Fri Oct 16 19:31:12 2015 (r399507) @@ -0,0 +1,19 @@ +Fix build on 64-bit big-endian machines. + +The jsuword type does not exist (which causes the build to break). +Trying to define "word" as size_t triggers a static assertion due to +jsval_layout growing too big. + +Therefore, do as the 64-bit little endian code path and just avoid +defining the "word" field. Tested on ppc64. + +--- jsval.h.orig 2015-08-15 10:28:43.716780000 -0400 ++++ jsval.h 2015-08-16 22:54:21.456094000 -0400 +@@ -304,7 +304,6 @@ typedef union jsval_layout + int32_t i32; + uint32_t u32; + JSWhyMagic why; +- jsuword word; + } payload; + } s; + double asDouble;