]> git.pld-linux.org Git - packages/mozjs91.git/commitdiff
- try with updated x32-rust patch
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 5 Apr 2022 16:23:43 +0000 (18:23 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 5 Apr 2022 16:23:43 +0000 (18:23 +0200)
mozjs-x32-rust.patch
mozjs91.spec

index b9747dedbdca9aff9eb680a44bd7ee645c4a2d4a..d8e38fed3c00b77612c51ee50923fe29d55d584d 100644 (file)
@@ -1,19 +1,31 @@
---- firefox-78.2.0/build/moz.configure/rust.configure.orig     2020-08-17 20:33:34.000000000 +0200
-+++ firefox-78.2.0/build/moz.configure/rust.configure  2020-10-07 18:29:15.458050574 +0200
-@@ -406,16 +406,6 @@
- rust_host_triple = rust_triple_alias(host, host_c_compiler)
--@depends(host, rust_host_triple, rustc_info.host)
--def validate_rust_host_triple(host, rust_host, rustc_host):
--    if rust_host != rustc_host:
--        if host.alias == rust_host:
+--- firefox-91.7.1/build/moz.configure/rust.configure.orig     2022-03-13 15:31:36.000000000 +0100
++++ firefox-91.7.1/build/moz.configure/rust.configure  2022-04-05 18:19:56.821912735 +0200
+@@ -462,28 +462,6 @@ def rust_host_triple(
+     rustc_target = detect_rustc_target(
+         host, compiler_info, arm_target, rust_supported_targets
+     )
+-    if rustc_target != rustc_host:
+-        if host.alias == rustc_target:
 -            configure_host = host.alias
 -        else:
--            configure_host = '{}/{}'.format(host.alias, rust_host)
--        die("The rust compiler host ({}) is not suitable for the configure host ({})."
--            .format(rustc_host, configure_host))
+-            configure_host = "{}/{}".format(host.alias, rustc_target)
+-        die(
+-            dedent(
+-                """\
+-        The rust compiler host ({rustc}) is not suitable for the configure host ({configure}).
 -
+-        You can solve this by:
+-        * Set your configure host to match the rust compiler host by editing your
+-        mozconfig and adding "ac_add_options --host={rustc}".
+-        * Or, install the rust toolchain for {configure}, if supported, by running
+-        "rustup default stable-{rustc_target}"
+-        """.format(
+-                    rustc=rustc_host,
+-                    configure=configure_host,
+-                    rustc_target=rustc_target,
+-                )
+-            )
+-        )
+     assert_rust_compile(host, rustc_target, rustc)
+     return rustc_target
  
- set_config('RUST_TARGET', rust_target_triple)
- set_config('RUST_HOST_TARGET', rust_host_triple)
index 758a7b919708651dbf3d4d8f776ee9d094dcc2b6..1d1e7992074032d2b0c4de350869f8c327664e64 100644 (file)
@@ -80,7 +80,7 @@ Pliki nagłówkowe do biblioteki JavaScript.
 %patch2 -p1
 %patch3 -p1
 %ifarch x32
-#%patch4 -p1
+%patch4 -p1
 %endif
 %patch5 -p1
 
This page took 0.148445 seconds and 4 git commands to generate.