From 6eedd35707fc162022b440084b9fde42091db6e1 Mon Sep 17 00:00:00 2001 From: Alexander Hill Date: Wed, 14 Jan 2026 21:28:29 -0500 Subject: [PATCH] Fixed configuration of zsh --- sources/zsh/zsh.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sources/zsh/zsh.spec b/sources/zsh/zsh.spec index a33c8ac..db4db80 100644 --- a/sources/zsh/zsh.spec +++ b/sources/zsh/zsh.spec @@ -1,13 +1,23 @@ # Maintainer: Alexander Hill SRC_HASH="9b8d1ecedd5b5e81fbf1918e876752a7dd948e05c1a0dba10ab863842d45acd5" SRC_NAME="zsh" +SRC_REVISION=1 SRC_URL="https://www.zsh.org/pub/zsh-5.9.tar.xz" SRC_VERSION="5.9" build() { tar xf ../$SRC_FILENAME cd zsh-$SRC_VERSION/ - ./configure $TT_AUTOCONF_COMMON --enable-multibyte --enable-libc-musl + # NOTE: Zsh uses a lot of tests made of main functions that are missing a + # return type. Because of this, clang throws an error, causing the + # test to fail. The result is a binary where command substitution + # locks the shell up. To fix this, we pass -Wno-implicit-int to the + # configure script. ~ahill + CFLAGS="$CFLAGS -Wno-implicit-int" \ + ./configure \ + $TT_AUTOCONF_COMMON \ + --enable-multibyte \ + --enable-libc-musl make -O -j $TT_PROCS }