0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-08-12 08:03:05 +00:00
Files
termux-packages/x11-packages/thunderbird/0003-configure-fix-rustflags.patch
Robert Kirkman 0c687b97ed bump(x11/thunderbird): 137.0.1
- Fixes #24070

- makes the `mozconfig.cfg`, `build.sh` and patches of `thunderbird` very similar to `firefox`, except for places where `thunderbird` is different

- `disable-systray-x86_64.patch`: fixes the build of `thunderbird` 136.0.1 for x86_64 Termux specifically. has been tested at runtime on a bare metal 64-bit Android-x86 device, and behaves as expected (uniform behavior with other architectures of Termux `thunderbird` 136.0.1)

- `toolbar-based-custom-compose-window-width-for-ralfwerner.patch`: hardcoded custom dimensions of the edit window formatting toolbar to provide a workaround for edit window minimum text wrapping width high-dpi-scaling low-resolution situations in HTML mode while preserving the formatting toolbar functionality

- `icu-22132.patch`: fixes a bug in `libicu` that has been happening for a long time, which causes these features of `thunderbird` to begin functioning:
  - Search Bar
  - Address Book
  - Customize Toolbars
  - Calendar
  - Tasks
  - Chat
  - Settings Button
  - Hamburger Button
2025-04-05 11:14:51 -05:00

45 lines
1.6 KiB
Diff

--- a/build/moz.configure/rust.configure
+++ b/build/moz.configure/rust.configure
@@ -514,17 +514,27 @@
assert_rust_compile(host, rustc_target, rustc)
return rustc_target
+option("--custom-rust-target-triple", nargs=1, help="Customize Rust Target Triple")
+
+@depends("--custom-rust-target-triple")
+def get_custom_rust_target_triple(custom_rust_target_triple):
+ if custom_rust_target_triple:
+ return custom_rust_target_triple[0]
+ return None
@depends(
- rustc, target, c_compiler, rust_supported_targets, arm_target, when=rust_compiler
+ get_custom_rust_target_triple, rustc, target, c_compiler, rust_supported_targets, arm_target, when=rust_compiler
)
@checking("for rust target triplet")
def rust_target_triple(
- rustc, target, compiler_info, rust_supported_targets, arm_target
+ custom_rust_target_triple, rustc, target, compiler_info, rust_supported_targets, arm_target
):
- rustc_target = detect_rustc_target(
- target, compiler_info, arm_target, rust_supported_targets
- )
+ if custom_rust_target_triple:
+ rustc_target = custom_rust_target_triple
+ else:
+ rustc_target = detect_rustc_target(
+ target, compiler_info, arm_target, rust_supported_targets
+ )
assert_rust_compile(target, rustc_target, rustc)
return rustc_target
@@ -599,8 +609,6 @@
# ==============================================================
-option(env="RUSTFLAGS", nargs=1, help="Rust compiler flags")
-set_config("RUSTFLAGS", depends("RUSTFLAGS")(lambda flags: flags))
# Rust compiler flags