Move the main package Requires directive before subpackage definitions in the RPM spec file. The Requires statement for the main 'wezterm' metapackage must appear before any %package subpackage sections to be properly recognized by RPM. This fixes the issue where installing the 'wezterm' virtual package would install nothing, while installing wezterm-common and wezterm-mux-server separately worked correctly.
The BUILD_REQUIRES heredoc was using a quoted delimiter ('BREQEOF'),
which prevented shell variable expansion of ${TAR_NAME}. This caused
RPM build errors when the spec file received the literal string
"wezterm-${TAR_NAME}.tar.gz" instead of the expanded filename.
Changed to an unquoted delimiter (BREQEOF) to enable variable expansion.
I was trying to debug an issue I'm seeing with wezterm and figured I
would try to use the terminal for my day-to-day with trace logds enabled
while I try to figure it out.
Unfortunately it turned out to be disruptive enough to make the terminal
almost unusable. I narrowed at least *that* part down to the fact that
printing out each log message would result in about screenful worth of
`write(2)` syscalls, many of them printing just one space character each
(padding? debug structure identation?)
Although it would be ideal to use a line-based buffered writer here,
pre-formatting the log string to a String before printing seemed like a
straightforward quick solution and it works amazingly well!
The JS that removes the `$` prefix from copied text expects a `console`
code block, but the BSD instructions were using `bash` code blocks. This
switches those code blocks to `console`.
The selector used `button.md-clipboard`, but the copy button does not
have this class, causing the selector to fail to match. This switches
that class for the current copy button's class.
Uses RPM subpackages (%package -n) with a single spec file - the standard approach for generating multiple binary RPMs from one build. This allows wezterm-mux-server to be installed without GUI dependencies (X11, Wayland, fontconfig, mesa-libEGL, etc).
Changes:
- wezterm-common: CLI launcher and utilities, requires only openssl
- wezterm-gui: GUI terminal with desktop integration, requires GUI libraries
- wezterm-mux-server: Headless multiplexer server, requires only openssl
- wezterm: Metapackage requiring all three for backward compatibility
Single %build section compiles all binaries together. Works for both COPR (source RPM) and binary RPM builds.
When using WebGPU front end, creating and closing windows will cause
VM:IOSurface memory leak, due to an unreleased object reference.
Also with some other trivial memory leak prevention measures.
Fixes a bunch of warnings like this:
```
warning: hiding a lifetime that's elided elsewhere is confusing
--> window/src/os/macos/window.rs:670:23
|
670 | fn display_handle(&self) -> Result<DisplayHandle, HandleError> {
| ^^^^^ ------------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
= note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
|
670 | fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError> {
| ++++
```
This lint was added in Rust 1.89: https://github.com/rust-lang/rust/issues/141787
Prevent printing two backtraces.
env-bootstrap/src/lib.rs's `register_panic_hook()` already prints a
backtrace unconditionally, setting `RUST_BACKTRACE=1` causes a duplicate
to be printed.
Now that validating service menu items doesn't loop forever, it can be
re-enabled.
It still won't have all possible services listed until/unless validation
is implemented more thoroughly, but some are already present.
These crates are all deprecated in favor of the new objc2 crate,
but the migration to objc2 is non-trivial. Meanwhile, the volume
of deprecation warnings is overwhelming and getting in the way.
Pin these deps back to a versions prior to the mass deprecation
so that we're not drowning in spew in the meantime.
The current `pct_to_glyph` algorithm would unintentionally produce `\u{f0aa6}`
for percentages in the range 96..=100.
Use a different algorithm that:
* uses an empty circle for the first 5%
* uses a filled circle for the last 5%
* has a roughly even distribution for the rest of the range