Ports/vim: Override uname
output to fix compilation on macOS
`vim` does not use a mechanism like `config.sub` for determining the canonical system name from the `--target` triple passed to `configure`. Instead, it directly executes the `uname` executable on the host. This leads to it trying to build macOS-specific files on Mac hosts even if we are compiling for a different platform. To make cross-compilation possible, developers added a way to override `uname`'s output with environment variables. Let's set these. See vim/vim#9338 Obsoletes #11426 Co-Authored-By: unixinspace <unixinspace@users.noreply.github.com>
This commit is contained in:
parent
7b0b501418
commit
17b363b596
Notes:
sideshowbarker
2024-07-17 05:21:12 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/17b363b596 Pull-request: https://github.com/SerenityOS/serenity/pull/20310 Reviewed-by: https://github.com/timschumi ✅
1 changed files with 3 additions and 0 deletions
|
@ -14,6 +14,9 @@ export vim_cv_tgetent=zero
|
|||
export vim_cv_terminfo=yes
|
||||
export vim_cv_toupper_broken=no
|
||||
export vim_cv_tty_group=world
|
||||
export vim_cv_uname_output='SerenityOS'
|
||||
export vim_cv_uname_r_output='1.0-dev'
|
||||
export vim_cv_uname_m_output="${SERENITY_ARCH}"
|
||||
|
||||
post_install() {
|
||||
run ln -sf vim "${SERENITY_INSTALL_ROOT}/usr/local/bin/vi"
|
||||
|
|
Loading…
Add table
Reference in a new issue