From fccdaa986f67f820df2914bef851d5fed77abac8 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 1 Jun 2022 18:23:59 +0100 Subject: added thunderbird and qt5 --- repo/thunderbird/fix-rust-target.patch | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 repo/thunderbird/fix-rust-target.patch (limited to 'repo/thunderbird/fix-rust-target.patch') diff --git a/repo/thunderbird/fix-rust-target.patch b/repo/thunderbird/fix-rust-target.patch new file mode 100644 index 0000000..9342063 --- /dev/null +++ b/repo/thunderbird/fix-rust-target.patch @@ -0,0 +1,31 @@ +Allow us to just set RUST_TARGEt ourselves instead of hacking around in mozilla's +weird custom build system... + +--- a/build/moz.configure/rust.configure ++++ b/build/moz.configure/rust.configure +@@ -225,7 +225,9 @@ + data.setdefault(key, []).append(namespace(rust_target=t, target=info)) + return data + +- ++@imports('os') ++@imports(_from='mozbuild.util', _import='ensure_unicode') ++@imports(_from='mozbuild.util', _import='system_encoding') + def detect_rustc_target( + host_or_target, compiler_info, arm_target, rust_supported_targets + ): +@@ -340,13 +342,13 @@ + + return None + +- rustc_target = find_candidate(candidates) ++ rustc_target = os.environ['RUST_TARGET'] + + if rustc_target is None: + die("Don't know how to translate {} for rustc".format(host_or_target.alias)) + +- return rustc_target ++ return ensure_unicode(rustc_target, system_encoding) + + + @imports('os') -- cgit v1.2.1