Files
termux-packages/x11-packages/thunderbird/0013-fix-rust-compile.patch

39 lines
1.6 KiB
Diff

--- a/toolkit/components/extensions/storage/moz.build
+++ b/toolkit/components/extensions/storage/moz.build
@@ -11,7 +11,7 @@
# a delegate for consumers to use instead. Android Components can then provide
# an implementation of the delegate that's backed by the Rust component. For
# details, please see bug 1626506, comment 4.
-if CONFIG["MOZ_WIDGET_TOOLKIT"] != "android":
+if False:
EXTRA_JS_MODULES += [
"ExtensionStorageComponents.sys.mjs",
]
--- a/toolkit/library/rust/shared/Cargo.toml
+++ b/toolkit/library/rust/shared/Cargo.toml
@@ -112,7 +112,7 @@
[target.'cfg(any(target_os = "macos",target_os = "ios", all(target_os = "windows", not(target_arch = "aarch64"))))'.dependencies]
osclientcerts = { path = "../../../../security/manager/ssl/osclientcerts" }
-[target.'cfg(not(target_os = "android"))'.dependencies]
+[target.'cfg(target_os = "android")'.dependencies]
gkrust-uniffi-components = { path = "../../../components/uniffi-bindgen-gecko-js/components/", features = ["xpcom"] }
gkrust-uniffi-fixtures = { path = "../../../components/uniffi-bindgen-gecko-js/fixtures/", features = ["xpcom"], optional = true }
viaduct = "0.1"
--- a/toolkit/library/rust/shared/lib.rs
+++ b/toolkit/library/rust/shared/lib.rs
@@ -96,13 +96,11 @@ extern crate trust_anchors;
))]
extern crate osclientcerts;
-#[cfg(not(target_os = "android"))]
extern crate gkrust_uniffi_components;
#[cfg(feature = "uniffi_fixtures")]
extern crate uniffi_bindgen_gecko_js_test_fixtures;
-#[cfg(not(target_os = "android"))]
extern crate viaduct;
extern crate gecko_logger;