Index: ps/trunk/libraries/source/spidermonkey/FixRust150.diff =================================================================== --- ps/trunk/libraries/source/spidermonkey/FixRust150.diff (nonexistent) +++ ps/trunk/libraries/source/spidermonkey/FixRust150.diff (revision 24941) @@ -0,0 +1,65 @@ + +# HG changeset patch +# User Emilio Cobos Álvarez +# Date 1609006565 0 +# Node ID 0e8f444683cb9c4079d3b2250f32f986043ea582 +# Parent 55097a5cf353f1b2a2228820bdf26bb69a1372a0 +Bug 1684261 - Fix build with rust nightly. r=jrmuizel, a=RyanVM + +Fixes errors like: + + dependency (nix) specification is ambiguous. Only one of `branch`, `tag` or `rev` is allowed. + +I've left the most specific dependency, but for wgpu the rev is not +right, so I've kept the branch which effectively preserves behavior. + +Differential Revision: https://phabricator.services.mozilla.com/D100485 + +diff --git a/.cargo/config.in b/.cargo/config.in +--- a/.cargo/config.in ++++ b/.cargo/config.in +@@ -1,16 +1,16 @@ + # This file contains vendoring instructions for cargo. + # It was generated by `mach vendor rust`. + # Please do not edit. + + [source."https://github.com/shravanrn/nix/"] +-branch = "r0.13.1" + git = "https://github.com/shravanrn/nix/" + replace-with = "vendored-sources" ++rev = "4af6c367603869a30fddb5ffb0aba2b9477ba92e" + + [source."https://github.com/mozilla/rkv"] + git = "https://github.com/mozilla/rkv" + replace-with = "vendored-sources" + rev = "e3c3388e6632cf55e08d773b32e58b1cab9b2731" + + [source."https://github.com/mozilla/neqo"] + git = "https://github.com/mozilla/neqo" +diff --git a/Cargo.lock b/Cargo.lock +--- a/Cargo.lock ++++ b/Cargo.lock +@@ -3200,7 +3200,7 @@ + [[package]] + name = "nix" + version = "0.13.1" +-source = "git+https://github.com/shravanrn/nix/?branch=r0.13.1#4af6c367603869a30fddb5ffb0aba2b9477ba92e" ++source = "git+https://github.com/shravanrn/nix/?rev=4af6c367603869a30fddb5ffb0aba2b9477ba92e#4af6c367603869a30fddb5ffb0aba2b9477ba92e" + dependencies = [ + "bitflags", + "cc", +diff --git a/Cargo.toml b/Cargo.toml +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -60,8 +60,8 @@ + [patch.crates-io] + packed_simd = { git = "https://github.com/hsivonen/packed_simd", rev="3541e3818fdc7c2a24f87e3459151a4ce955a67a" } + rlbox_lucet_sandbox = { git = "https://github.com/PLSysSec/rlbox_lucet_sandbox/", rev="d510da5999a744c563b0acd18056069d1698273f" } +-nix = { git = "https://github.com/shravanrn/nix/", branch = "r0.13.1", rev="4af6c367603869a30fddb5ffb0aba2b9477ba92e" } +-spirv_cross = { git = "https://github.com/kvark/spirv_cross", branch = "wgpu3", rev = "20191ad2f370afd6d247edcb9ff9da32d3bedb9c" } ++nix = { git = "https://github.com/shravanrn/nix/", rev="4af6c367603869a30fddb5ffb0aba2b9477ba92e" } ++spirv_cross = { git = "https://github.com/kvark/spirv_cross", branch = "wgpu3" } + # failure's backtrace feature might break our builds, see bug 1608157. + failure = { git = "https://github.com/badboy/failure", rev = "64af847bc5fdcb6d2438bec8a6030812a80519a5" } + failure_derive = { git = "https://github.com/badboy/failure", rev = "64af847bc5fdcb6d2438bec8a6030812a80519a5" } + Property changes on: ps/trunk/libraries/source/spidermonkey/FixRust150.diff ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: ps/trunk/libraries/source/spidermonkey/patch.sh =================================================================== --- ps/trunk/libraries/source/spidermonkey/patch.sh (revision 24940) +++ ps/trunk/libraries/source/spidermonkey/patch.sh (revision 24941) @@ -1,51 +1,55 @@ #!/bin/sh # Apply patches if needed # This script gets called from build.sh. # Mozglue symbols need to be linked against static builds. # https://bugzilla.mozilla.org/show_bug.cgi?id=1588340 patch -p1 < ../FixMozglue.diff # Update library names to have separate debug/release libraries. patch -p1 < ../RenameLibs.diff # Fix ~SharedArrayRawBufferRefs symbol not found. # See https://bugzilla.mozilla.org/show_bug.cgi?id=1644600 # Many thanks to bellaz89 for finding this and reporting it patch -p1 < ../FixSharedArray.diff # Fix public export on MSVC (C2487) # https://bugzilla.mozilla.org/show_bug.cgi?id=1614243 # (mentionned in the comments, no patch/commit found) patch -p1 < ../FixPublicExport.diff # Fix Rooted not working on VS17 # https://bugzilla.mozilla.org/show_bug.cgi?id=1679736 # (Landed in 85) patch -p1 < ../FixMSVCRootedVoid.diff # Two SDK-related issues. # -ftrivial-auto-var-init is clang 8, # but apple-clang 10.0.0 (the maximum in 10.13) # doesn't actually have it, so patch it out. # Secondly, there is a 'max SDK version' in SM, # which is set to 10.15.4 in SM78. # Upstream has changed this to 10.11 at the moment, # so this patches it to an arbitrarily high Mac OS 11 patch -p1 < ../FixMacBuild.diff # Fix FP access breaking compilation on RPI3+ # https://bugzilla.mozilla.org/show_bug.cgi?id=1526653 # https://bugzilla.mozilla.org/show_bug.cgi?id=1536491 patch -p1 < ../FixRpiUnalignedFpAccess.diff +# Bug 1684261 upstreamed from 78.8: https://hg.mozilla.org/releases/mozilla-esr78/rev/0e8f444683cb +# Note that this isn't quite the upstream patch to match our version. +patch -p1 < ../FixRust150.diff + # Patch those separately, as they might interfere with normal behaviour. if [ "$(uname -s)" = "FreeBSD" ]; then # https://svnweb.freebsd.org/ports/head/lang/spidermonkey78/files/patch-js_moz.configure?view=log patch -p1 < ../FixFreeBSDReadlineDetection.diff # https://svnweb.freebsd.org/ports/head/lang/spidermonkey78/files/patch-third__party_rust_cc_.cargo-checksum.json?view=log patch -p1 < ../FixFreeBSDCargoChecksum.diff # https://svnweb.freebsd.org/ports/head/lang/spidermonkey78/files/patch-third__party_rust_cc_src_lib.rs?view=log patch -p1 < ../FixFreeBSDRustThirdPartyOSDetection.diff fi