summaryrefslogtreecommitdiff
path: root/libre/iceweasel/rust-static-disable-network-test-on-static-libraries.patch
diff options
context:
space:
mode:
authorgrizzlyuser <grizzlyuser@protonmail.com>2020-12-30 17:00:23 +0200
committerbill-auger <mr.j.spam.me@gmail.com>2021-01-12 00:47:06 -0500
commit4449a163ea5b65de394ebf27b338c81bcd1fe093 (patch)
tree76032d5c695c736d4761d8a998b87d9f04344005 /libre/iceweasel/rust-static-disable-network-test-on-static-libraries.patch
parente7d4e45c8301b29204aab4446078d85c3c2b6632 (diff)
libre/iceweasel: 84.0.1 from upstreams, update patches
Diffstat (limited to 'libre/iceweasel/rust-static-disable-network-test-on-static-libraries.patch')
-rw-r--r--libre/iceweasel/rust-static-disable-network-test-on-static-libraries.patch35
1 files changed, 17 insertions, 18 deletions
diff --git a/libre/iceweasel/rust-static-disable-network-test-on-static-libraries.patch b/libre/iceweasel/rust-static-disable-network-test-on-static-libraries.patch
index 95c2df7e5..81d536cd9 100644
--- a/libre/iceweasel/rust-static-disable-network-test-on-static-libraries.patch
+++ b/libre/iceweasel/rust-static-disable-network-test-on-static-libraries.patch
@@ -1,15 +1,14 @@
-diff --git a/config/makefiles/rust.mk b/config/makefiles/rust.mk
-index 58606db50f..9c4d5b9279 100644
---- a/config/makefiles/rust.mk
-+++ b/config/makefiles/rust.mk
-@@ -305,17 +305,17 @@ $(RUST_LIBRARY_FILE): force-cargo-library-build
+diff -rauN a/config/makefiles/rust.mk b/config/makefiles/rust.mk
+--- a/config/makefiles/rust.mk 2020-10-13 20:23:09.920635480 +0200
++++ b/config/makefiles/rust.mk 2020-10-13 20:24:02.273994137 +0200
+@@ -310,17 +310,17 @@
# the chance of proxy bypasses originating from rust code.
- # The check only works when rust code is built with -Clto but without MOZ_LTO_RUST.
+ # The check only works when rust code is built with -Clto but without MOZ_LTO_RUST_CROSS.
# Sanitizers and sancov also fail because compiler-rt hooks network functions.
-ifndef MOZ_PROFILE_GENERATE
-ifeq ($(OS_ARCH), Linux)
-ifeq (,$(rustflags_sancov)$(MOZ_ASAN)$(MOZ_TSAN)$(MOZ_UBSAN))
--ifndef MOZ_LTO_RUST
+-ifndef MOZ_LTO_RUST_CROSS
-ifneq (,$(filter -Clto,$(cargo_rustc_flags)))
- $(call py_action,check_binary,--target --networking $@)
-endif
@@ -17,17 +16,17 @@ index 58606db50f..9c4d5b9279 100644
-endif
-endif
-endif
-+# ifndef MOZ_PROFILE_GENERATE
-+# ifeq ($(OS_ARCH), Linux)
-+# ifeq (,$(rustflags_sancov)$(MOZ_ASAN)$(MOZ_TSAN)$(MOZ_UBSAN))
-+# ifndef MOZ_LTO_RUST
-+# ifneq (,$(filter -Clto,$(cargo_rustc_flags)))
-+# $(call py_action,check_binary,--target --networking $@)
-+# endif
-+# endif
-+# endif
-+# endif
-+# endif
++#ifndef MOZ_PROFILE_GENERATE
++#ifeq ($(OS_ARCH), Linux)
++#ifeq (,$(rustflags_sancov)$(MOZ_ASAN)$(MOZ_TSAN)$(MOZ_UBSAN))
++#ifndef MOZ_LTO_RUST_CROSS
++#ifneq (,$(filter -Clto,$(cargo_rustc_flags)))
++# $(call py_action,check_binary,--target --networking $@)
++#endif
++#endif
++#endif
++#endif
++#endif
force-cargo-library-check:
$(call CARGO_CHECK) --lib $(cargo_target_flag) $(rust_features_flag)