Skip to content

Commit d55e531

Browse files
committed
Add iconv dependency to gettext
1 parent 17ef0d3 commit d55e531

3 files changed

Lines changed: 12 additions & 5 deletions

File tree

.github/actions/universal-package/action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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$/i\'$'\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' | \

.github/workflows/macvim-buildtest.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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: |

ci/config.mk.brew-libiconv.sed

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
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).

0 commit comments

Comments
 (0)