Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
DESTDIR
handling for terminfo installation (#3426)
## Description: Fix `DESTDIR` handling when installing terminfo database files by using `install_path` instead of `install_prefix`. This ensures files are correctly installed under `$DESTDIR/$prefix` during packaging. ## Changes: - Replace `b.install_prefix` with `b.install_path` for terminfo database installation paths - This change properly respects the `DESTDIR` environment variable during installation ## Testing: I've verified this fix by: 1. Setting `DESTDIR=/tmp/ghostty` 2. Building with: ```bash DESTDIR=/tmp/ghostty \ zig build \ --prefix /usr \ --system /tmp/offline-cache/p \ -Doptimize=ReleaseFast \ -Dcpu=baseline ``` 3. Confirming files are correctly installed to: ``` /tmp/ghostty/usr/share/terminfo/ghostty.terminfo /tmp/ghostty/usr/share/terminfo/ghostty.termcap ``` The files are now properly installed under `$DESTDIR/$prefix` path structure as expected. cc @BratishkaErik - Since you suggested this fix in #3152, would you mind reviewing this implementation? Fixes #3152
- Loading branch information