Package: src:mozjs24
Version: 24.2.0-2
Severity: normal
Tags: patch

Hi!
mozjs24 fails to build on x32, as it tries to use amd64 JIT.  The wildcard
it uses to match the architecture is too permissive.  The attached patch
fixes this.  The patch comes from the iceweasel patch set.

Note that you need to re-run autoconf manually in js/src and commit the
generated configure to quiltage, as it's not done during build.


-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (600, 'unstable'), (500, 'unreleased'), (50, 'experimental')
Architecture: x32 (x86_64)

Kernel: Linux 3.18.5-x32 (SMP w/6 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Description: Disable the js JIT on x32.
Author: Adam Borowski <kilob...@angband.pl>
--- iceweasel-34.0.orig/js/src/configure.in
+++ iceweasel-34.0/js/src/configure.in
@@ -1998,6 +1998,8 @@ fi
 dnl Configure JIT support
 
 case "$target" in
+x86_64*-gnux32)
+    ;;
 i?86-*)
     ENABLE_ION=1
     AC_DEFINE(JS_CPU_X86)

Reply via email to