File tree Expand file tree Collapse file tree
actions/universal-package Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,10 +31,15 @@ runs:
3131 # version and stomp what we have here.
3232 brew update
3333
34- # Patch the official Homebrew formula to explicitly build for min deployment target and a universal binary. We
35- # also need to explicitly use system Clang because Homebrew's bundled clang script tries to inject -march
34+ # Patch the official Homebrew formula to explicitly build for min deployment target and a universal binary.
35+ #
36+ # We also need to explicitly use system Clang because Homebrew's bundled clang script tries to inject -march
3637 # compiler flags that will cause universal builds to fail as Clang does not like that.
38+ #
39+ # We also manually depend on GNU libiconv as Apple iconv is broken since macOS 14. This is necessary as MacVim
40+ # itself it built against it and we need both to match.
3741 brew cat ${formula} | \
42+ sed '/^[[:blank:]]*def install$/a\'$'\n depends_on "libiconv"\n' | \
3843 sed '/^[[:blank:]]*def install$/a\'$'\n ENV["MACOSX_DEPLOYMENT_TARGET"] = "'${MACOSX_DEPLOYMENT_TARGET}$'"\n' | \
3944 sed '/^[[:blank:]]*def install$/a\'$'\n ENV["CC"] = "/usr/bin/clang"\n' | \
4045 sed '/^[[:blank:]]*def install$/a\'$'\n ENV["CFLAGS"] = "-arch x86_64 -arch arm64"\n' | \
Original file line number Diff line number Diff line change @@ -111,7 +111,8 @@ jobs:
111111
112112 - name : Install packages
113113 run : |
114- brew install --quiet libtool
114+ # GNU iconv is installed to work around broken Apple iconv
115+ brew install --quiet libtool libiconv
115116
116117 - name : Install packages for testing
117118 run : |
Original file line number Diff line number Diff line change 1- # Use Homebrew libiconv to work around broken Apple version. Use static linking
2- # as we don't want our binary releases to pull in third-party dependencies.
1+ # Use Homebrew GNU libiconv to work around broken Apple version. Use static
2+ # linking as we don't want our binary releases to pull in third-party
3+ # dependencies.
34#
45# If gettext is configured in the build, this only works libintl is also built
56# against Homebrew libiconv (which is not the default in Homebrew).
You can’t perform that action at this time.
0 commit comments