Skip to content

Commit 7aa4058

Browse files
committed
fix(emacs-31-builds): disable fix-window-role patch after it was merged upstream
1 parent 67ad73e commit 7aa4058

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

build-emacs-for-macos

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,14 +1073,27 @@ class Build
10731073

10741074
# Enabled by default patches.
10751075

1076-
if (26..31).include?(effective_version)
1076+
if (26..30).include?(effective_version)
10771077
p << {
10781078
url:
10791079
'https://github.com/d12frosted/homebrew-emacs-plus/raw/master/' \
10801080
"patches/emacs-#{effective_version}/fix-window-role.patch"
10811081
}
10821082
end
10831083

1084+
# The fix-window-role patch was merged into Emacs 31 on 2025-07-31 with
1085+
# commit 6e1054a40bf6df1429a2b16fdd0d7652dae4d537. Hence builds for commits
1086+
# before then need the patch from the last commit in emacs-plus before it
1087+
# was removed.
1088+
if effective_version == 31 && meta[:date] < Time.parse('2025-07-31')
1089+
p << {
1090+
url:
1091+
'https://github.com/d12frosted/homebrew-emacs-plus/raw/' \
1092+
'3e95d573d5f13aba7808193b66312b38a7c66851/' \
1093+
'patches/emacs-31/fix-window-role.patch'
1094+
}
1095+
end
1096+
10841097
if (27..31).include?(effective_version)
10851098
p << {
10861099
url:

0 commit comments

Comments
 (0)