Skip to content

Commit 514f180

Browse files
authored
Merge pull request #240723 from Homebrew/libunistring-fix
libunistring: fix iconv support on Tahoe
2 parents c6d657b + c2fe3c1 commit 514f180

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Formula/lib/libunistring.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ def install
2323
# This is also why we skip `make check`.
2424
# https://github.com/coreutils/gnulib/commit/bab130878fe57086921fa7024d328341758ed453
2525
# https://savannah.gnu.org/bugs/?65686
26-
ENV["am_cv_func_iconv_works"] = "yes" if OS.mac? && [:sequoia, :tahoe].include?(MacOS.version)
26+
use_iconv_workaround = OS.mac? && MacOS.version >= :sonoma
27+
ENV["am_cv_func_iconv_works"] = "yes" if use_iconv_workaround
2728
system "./configure", "--disable-silent-rules", *std_configure_args
2829
system "make"
29-
system "make", "check" if !OS.mac? || MacOS.version < :sonoma || MacOS.version > :tahoe
30+
system "make", "check" unless use_iconv_workaround
3031
system "make", "install"
3132
end
3233

0 commit comments

Comments
 (0)