Your message dated Wed, 30 May 2018 16:20:44 +0000
with message-id <[email protected]>
and subject line Bug#880692: fixed in mozjs52 52.3.1-8
has caused the Debian Bug report #880692,
regarding mozjs52: Please add support for sh4
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
880692: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=880692
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: mozjs52
Version: 52.3.1-7
Severity: normal
User: [email protected]
Usertags: sh4

Hi!

The attached patch adds support for the sh4 architecture.

The patch is based on my upstream patches which were merged in
Firefox 53 [1].

On top of that, it is necessary to build mozjs52 on sh4 with
PIE disabled as we have currently PIE disabled in gcc on sh4
due to some applications crashing with it enabled:

--- debian/rules.orig   2017-10-20 19:12:58.000000000 +0200
+++ debian/rules        2017-11-03 22:32:18.630130502 +0100
@@ -29,6 +29,12 @@
 CONFIGURE_FLAGS += --disable-ion
 endif
 
+ifeq ($(DEB_HOST_ARCH),sh4)
+CONFIGURE_FLAGS += --disable-pie
+else
+CONFIGURE_FLAGS += --enable-pie
+endif
+
 ifeq ($(DEB_HOST_ARCH_ENDIAN),little)
 ICU_DATA_FILE = icudt58l.dat
 else
@@ -75,7 +81,6 @@
                --enable-shared-js \
                --enable-gcgenerational \
                --disable-optimize \
-               --enable-pie \
                $(CONFIGURE_FLAGS)
 
 override_dh_install:

Thanks for consdideration!

Adrian

> [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1329194

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [email protected]
`. `'   Freie Universitaet Berlin - [email protected]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
Description: Add support for sh4
 Based on upstreamed patches in Firefox.
 See: https://bugzilla.mozilla.org/show_bug.cgi?id=1329194
 .
Author: John Paul Adrian Glaubitz <[email protected]>
Last-Update: 2017-11-03

--- mozjs52-52.3.1.orig/build/moz.configure/init.configure
+++ mozjs52-52.3.1/build/moz.configure/init.configure
@@ -380,6 +380,9 @@ def split_triplet(triplet):
     elif cpu.startswith('aarch64'):
         canonical_cpu = 'aarch64'
         endianness = 'little'
+    elif cpu == 'sh4':
+        canonical_cpu = 'sh4'
+        endianness = 'little'
     else:
         die('Unknown CPU type: %s' % cpu)
 
--- mozjs52-52.3.1.orig/js/src/jit/AtomicOperations.h
+++ mozjs52-52.3.1/js/src/jit/AtomicOperations.h
@@ -328,6 +328,8 @@ AtomicOperations::isLockfree(int32_t siz
 # include "jit/mips-shared/AtomicOperations-mips-shared.h"
 #elif defined(__ppc__) || defined(__PPC__)
 # include "jit/none/AtomicOperations-ppc.h"
+#elif defined(__sh__)
+# include "jit/none/AtomicOperations-ppc.h"
 #elif defined(__sparc__)
 # include "jit/none/AtomicOperations-sparc.h"
 #elif defined(JS_CODEGEN_NONE)
--- mozjs52-52.3.1.orig/mfbt/tests/TestPoisonArea.cpp
+++ mozjs52-52.3.1/mfbt/tests/TestPoisonArea.cpp
@@ -154,6 +154,9 @@
 #elif defined __s390__
 #define RETURN_INSTR 0x07fe0000 /* br %r14 */
 
+#elif defined __sh__
+#define RETURN_INSTR 0x0b000b00 /* rts; rts */
+
 #elif defined __aarch64__
 #define RETURN_INSTR 0xd65f03c0 /* ret */
 
--- mozjs52-52.3.1.orig/python/mozbuild/mozbuild/configure/constants.py
+++ mozjs52-52.3.1/python/mozbuild/mozbuild/configure/constants.py
@@ -50,6 +50,7 @@ CPU_bitness = {
     'ppc64': 64,
     's390': 32,
     's390x': 64,
+    'sh4': 32,
     'sparc': 32,
     'sparc64': 64,
     'x86': 32,
@@ -85,6 +86,7 @@ CPU_preprocessor_checks = OrderedDict((
     ('sparc', '__sparc__'),
     ('mips64', '__mips64'),
     ('mips32', '__mips__'),
+    ('sh4', '__sh__'),
 ))
 
 assert sorted(CPU_preprocessor_checks.keys()) == sorted(CPU.POSSIBLE_VALUES)
--- 
mozjs52-52.3.1.orig/python/mozbuild/mozbuild/test/configure/test_toolchain_configure.py
+++ 
mozjs52-52.3.1/python/mozbuild/mozbuild/test/configure/test_toolchain_configure.py
@@ -1037,6 +1037,9 @@ class LinuxCrossCompileToolchainTest(Bas
         'mips-unknown-linux-gnu': big_endian + {
             '__mips__': 1,
         },
+        'sh4-unknown-linux-gnu': little_endian + {
+            '__sh__': 1,
+        },
     }
 
     PLATFORMS['powerpc64le-unknown-linux-gnu'] = \

--- End Message ---
--- Begin Message ---
Source: mozjs52
Source-Version: 52.3.1-8

We believe that the bug you reported is fixed in the latest version of
mozjs52, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jeremy Bicha <[email protected]> (supplier of updated mozjs52 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 30 May 2018 12:01:49 -0400
Source: mozjs52
Binary: libmozjs-52-0 libmozjs-52-dev
Architecture: source
Version: 52.3.1-8
Distribution: unstable
Urgency: medium
Maintainer: Debian GNOME Maintainers 
<[email protected]>
Changed-By: Jeremy Bicha <[email protected]>
Description:
 libmozjs-52-0 - SpiderMonkey JavaScript library
 libmozjs-52-dev - SpiderMonkey JavaScript library - development headers
Closes: 879589 880692 880693 887494 887496 897117 897178
Changes:
 mozjs52 (52.3.1-8) unstable; urgency=medium
 .
   [ Jeremy Bicha ]
   * Update Vcs fields for migration to https://salsa.debian.org/
   * Update debian/gbp.conf
 .
   [ John Paul Adrian Glaubitz ]
   * Add patch to fix Python build issues on alpha and ia64:
     - alpha-ia64-python-build-fixes.patch (Closes: #879589, #887496)
   * Add patch to add build support for sh4:
     - sh4-support.patch (Closes: #880692)
   * Disable PIE on sh4
   * Refresh patch for build support for m68k:
     - m68k-support.patch (Closes: #880693)
   * Add patch to add build support for sparc64:
     - sparc64-support.patch (Closes: #887494)
   * Ignore testsuite failures on ia64 (Closes: #897117)
   * Add patch to add build support for ia64:
     - ia64-support.patch (Closes: #897178)
Checksums-Sha1:
 b98c5c5e5a960610f07bd80ed74d3b00ba2e6e2d 2188 mozjs52_52.3.1-8.dsc
 e206c1a15202d78cd660d728323c1b7f7a18a4f8 74584 mozjs52_52.3.1-8.debian.tar.xz
 983f7db7f1da0008fcf14e30a4b65a609f93d5e0 10764 
mozjs52_52.3.1-8_source.buildinfo
Checksums-Sha256:
 043acc5db7c97a39b606d7fc9e7d316199760cc250d687c7c4df5ff9312819d5 2188 
mozjs52_52.3.1-8.dsc
 9523d605c75a4c52d7ff4b053fd7e8cff2c72429d01161c34f3c19ac6525b767 74584 
mozjs52_52.3.1-8.debian.tar.xz
 0216672193b5d2e23c31fab2111f51f4fb0f5f167662d06840e39911520d7092 10764 
mozjs52_52.3.1-8_source.buildinfo
Files:
 536cc5bf0fe596b707fa6c4d1b5df396 2188 libs optional mozjs52_52.3.1-8.dsc
 84197f8f216e5fd7282d069e758899c5 74584 libs optional 
mozjs52_52.3.1-8.debian.tar.xz
 f7c17a9a346986ac40831dce1594f737 10764 libs optional 
mozjs52_52.3.1-8_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEETQvhLw5HdtiqzpaW5mx3Wuv+bH0FAlsOy18ACgkQ5mx3Wuv+
bH3d6RAA1bfBfmCOlWFGRAKIuD0SYNL2tjCjpxwhrlP2MHNsdAaJdBRYXf277gPK
jMCFlAt7lcTnlH5KTVLX0MKNlE/crO+ReN7hzMa/RjxQl8uDUwZaHCQFGCt7YleZ
EzoA5u6/a4u8J4H2dJOfIpy0YnkjpT5xrE7jCwQukBweZ+FOb6Zs0mlPvrIPPnHs
uURYwQctL5Pfl4ralbt92H7kDT5cH1yjfr2ipec9uO2RGZEQTX0irQ6B4lJzOXjg
PckOjz7VvZ31cmRG7TPaABsywHuLqYhsYK6PG/0C9yV0VQFtepbKvtxgjWNY6Dk4
U+MObTCKMCz2wOrZsH2Oa519fqiNykNfJ86I9y0LxepJ0k/9zbqcjLo0ioU97SI3
e4xzK+ra1qgO89H0P7TWJO0roW6CiuvGOdDAP2Byi8ZqOQb9Ce+FkcPnFEu9UhhF
3wbzu1bBqRUwQwiu2ZHdWdw9zB4rLMrWUdwxtANNtSDsRLpJG/FIPP3f6On9xCIL
JISBM9otfoJ0pbwXFdo9D8PNrXII8PxGw7mm1ompXu2MIH4Q9VRJXL7WTehZxM/A
JbIZONNGHX9f30vpaE2LWR0solTOK9KNUgEE96MeLl0W2eMDqcSmzhsjR8k3cqQL
IpIZ+5fjkXAOA3u8g2WIymxeITCXVnRRq0DQeAIh3te/t0UaSc8=
=6XkH
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to