1 |
commit: 629920556e825d37fb5009d828ef8c09d934ceea |
2 |
Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at> |
3 |
AuthorDate: Mon Sep 12 17:19:39 2022 +0000 |
4 |
Commit: Matthew Smith <matthew <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 12 18:17:20 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62992055 |
7 |
|
8 |
dev-lang/erlang: remove unused patches |
9 |
|
10 |
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at> |
11 |
Portage 3.0.36 / pkgdev 0.2.1 / pkgcheck 0.10.14 |
12 |
Closes: https://github.com/gentoo/gentoo/pull/27229 |
13 |
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org> |
14 |
|
15 |
dev-lang/erlang/files/18.2.1-wx3.0.patch | 113 ----------------- |
16 |
.../files/erlang-23.3.4.14-emacs28-compat.patch | 137 --------------------- |
17 |
2 files changed, 250 deletions(-) |
18 |
|
19 |
diff --git a/dev-lang/erlang/files/18.2.1-wx3.0.patch b/dev-lang/erlang/files/18.2.1-wx3.0.patch |
20 |
deleted file mode 100644 |
21 |
index aada0d9eaa1e..000000000000 |
22 |
--- a/dev-lang/erlang/files/18.2.1-wx3.0.patch |
23 |
+++ /dev/null |
24 |
@@ -1,113 +0,0 @@ |
25 |
-Description: Fix constants for wxwidgets3.0 |
26 |
- The values of wx constants can change between stable release series (and |
27 |
- some have between 2.8 and 3.0), but erlang seems to hardcode these values. |
28 |
-Author: Olly Betts <olly@××××××.com> |
29 |
-Bug-Debian: https://bugs.debian.org/766790 |
30 |
-Forwarded: no |
31 |
-Last-Update: 2014-11-25 |
32 |
- |
33 |
---- a/lib/wx/include/wx.hrl |
34 |
-+++ b/lib/wx/include/wx.hrl |
35 |
-@@ -767,7 +767,7 @@ |
36 |
- % From "checkbox.h" |
37 |
- -define(wxCHK_ALLOW_3RD_STATE_FOR_USER, 8192). |
38 |
- -define(wxCHK_3STATE, 4096). |
39 |
---define(wxCHK_2STATE, 0). |
40 |
-+-define(wxCHK_2STATE, 16384). |
41 |
- % From "checkbox.h": wxCheckBoxState |
42 |
- -define(wxCHK_UNCHECKED, 0). |
43 |
- -define(wxCHK_CHECKED, 1). |
44 |
-@@ -1014,10 +1014,10 @@ |
45 |
- -define(wxSIZE_AUTO_WIDTH, 1). |
46 |
- -define(wxSETUP, 131072). |
47 |
- -define(wxMORE, 65536). |
48 |
---define(wxHELP, 32768). |
49 |
---define(wxRESET, 16384). |
50 |
---define(wxBACKWARD, 8192). |
51 |
---define(wxFORWARD, 4096). |
52 |
-+-define(wxHELP, 4096). |
53 |
-+-define(wxRESET, 32768). |
54 |
-+-define(wxBACKWARD, 16384). |
55 |
-+-define(wxFORWARD, 8192). |
56 |
- -define(wxICON_MASK, (16#00000100 bor 16#00000200 bor 16#00000400 bor 16#00000800)). |
57 |
- -define(wxICON_ASTERISK, ?wxICON_INFORMATION). |
58 |
- -define(wxICON_STOP, ?wxICON_HAND). |
59 |
-@@ -1049,8 +1049,8 @@ |
60 |
- -define(wxTC_TOP, 0). |
61 |
- -define(wxTC_FIXEDWIDTH, 32). |
62 |
- -define(wxTC_RIGHTJUSTIFY, 16). |
63 |
---define(wxSP_WRAP, 8192). |
64 |
---define(wxSP_ARROW_KEYS, 4096). |
65 |
-+-define(wxSP_WRAP, 32768). |
66 |
-+-define(wxSP_ARROW_KEYS, 16384). |
67 |
- -define(wxSP_VERTICAL, ?wxVERTICAL). |
68 |
- -define(wxSP_HORIZONTAL, ?wxHORIZONTAL). |
69 |
- -define(wxSB_VERTICAL, ?wxVERTICAL). |
70 |
-@@ -1071,8 +1071,8 @@ |
71 |
- -define(wxCB_SIMPLE, 4). |
72 |
- -define(wxLB_INT_HEIGHT, 2048). |
73 |
- -define(wxLB_HSCROLL, ?wxHSCROLL). |
74 |
---define(wxLB_ALWAYS_SB, 1024). |
75 |
---define(wxLB_NEEDED_SB, 512). |
76 |
-+-define(wxLB_ALWAYS_SB, 512). |
77 |
-+-define(wxLB_NEEDED_SB, 0). |
78 |
- -define(wxLB_OWNERDRAW, 256). |
79 |
- -define(wxLB_EXTENDED, 128). |
80 |
- -define(wxLB_MULTIPLE, 64). |
81 |
-@@ -1548,7 +1548,7 @@ |
82 |
- -define(wxUPDATE_UI_FROMIDLE, 2). |
83 |
- % From "dialog.h" |
84 |
- -define(wxDEFAULT_DIALOG_STYLE, (?wxCAPTION bor ?wxSYSTEM_MENU bor ?wxCLOSE_BOX)). |
85 |
---define(wxDIALOG_NO_PARENT, 1). |
86 |
-+-define(wxDIALOG_NO_PARENT, 32). |
87 |
- % From "dirctrlg.h" |
88 |
- -define(wxDIRCTRL_DIR_ONLY, 16). |
89 |
- -define(wxDIRCTRL_SELECT_FIRST, 32). |
90 |
-@@ -3728,7 +3728,7 @@ |
91 |
- -define(wxSTC_KEY_LEFT, 302). |
92 |
- -define(wxSTC_KEY_UP, 301). |
93 |
- -define(wxSTC_KEY_DOWN, 300). |
94 |
---define(wxSTC_MODEVENTMASKALL, 8191). |
95 |
-+-define(wxSTC_MODEVENTMASKALL, 1048575). |
96 |
- -define(wxSTC_MULTILINEUNDOREDO, 4096). |
97 |
- -define(wxSTC_MOD_BEFOREDELETE, 2048). |
98 |
- -define(wxSTC_MOD_BEFOREINSERT, 1024). |
99 |
-@@ -3810,7 +3810,7 @@ |
100 |
- -define(wxSTC_INDIC_TT, 2). |
101 |
- -define(wxSTC_INDIC_SQUIGGLE, 1). |
102 |
- -define(wxSTC_INDIC_PLAIN, 0). |
103 |
---define(wxSTC_INDIC_MAX, 7). |
104 |
-+-define(wxSTC_INDIC_MAX, 31). |
105 |
- -define(wxSTC_CASE_LOWER, 2). |
106 |
- -define(wxSTC_CASE_UPPER, 1). |
107 |
- -define(wxSTC_CASE_MIXED, 0). |
108 |
-@@ -3835,7 +3835,7 @@ |
109 |
- -define(wxSTC_CHARSET_BALTIC, 186). |
110 |
- -define(wxSTC_CHARSET_DEFAULT, 1). |
111 |
- -define(wxSTC_CHARSET_ANSI, 0). |
112 |
---define(wxSTC_STYLE_MAX, 127). |
113 |
-+-define(wxSTC_STYLE_MAX, 255). |
114 |
- -define(wxSTC_STYLE_LASTPREDEFINED, 39). |
115 |
- -define(wxSTC_STYLE_CALLTIP, 38). |
116 |
- -define(wxSTC_STYLE_INDENTGUIDE, 37). |
117 |
-@@ -3934,9 +3934,9 @@ |
118 |
- -define(wxTE_PROCESS_TAB, 64). |
119 |
- -define(wxTE_MULTILINE, 32). |
120 |
- -define(wxTE_READONLY, 16). |
121 |
---define(wxTE_AUTO_SCROLL, 8). |
122 |
-+-define(wxTE_AUTO_SCROLL, 0). |
123 |
- -define(wxTE_NO_VSCROLL, 2). |
124 |
---define(wxHAS_TEXT_WINDOW_STREAM, 0). |
125 |
-+-define(wxHAS_TEXT_WINDOW_STREAM, 1). |
126 |
- % From "textctrl.h": wxTextAttrAlignment |
127 |
- -define(wxTEXT_ALIGNMENT_DEFAULT, 0). |
128 |
- -define(wxTEXT_ALIGNMENT_LEFT, 1). |
129 |
-@@ -3986,7 +3986,7 @@ |
130 |
- -define(wxDEFAULT_FRAME_STYLE, (?wxSYSTEM_MENU bor ?wxRESIZE_BORDER bor ?wxMINIMIZE_BOX bor ?wxMAXIMIZE_BOX bor ?wxCLOSE_BOX bor ?wxCAPTION bor ?wxCLIP_CHILDREN)). |
131 |
- -define(wxRESIZE_BORDER, 64). |
132 |
- -define(wxTINY_CAPTION_VERT, 128). |
133 |
---define(wxTINY_CAPTION_HORIZ, 256). |
134 |
-+-define(wxTINY_CAPTION_HORIZ, 128). |
135 |
- -define(wxMAXIMIZE_BOX, 512). |
136 |
- -define(wxMINIMIZE_BOX, 1024). |
137 |
- -define(wxSYSTEM_MENU, 2048). |
138 |
|
139 |
diff --git a/dev-lang/erlang/files/erlang-23.3.4.14-emacs28-compat.patch b/dev-lang/erlang/files/erlang-23.3.4.14-emacs28-compat.patch |
140 |
deleted file mode 100644 |
141 |
index 32844d8dd1a8..000000000000 |
142 |
--- a/dev-lang/erlang/files/erlang-23.3.4.14-emacs28-compat.patch |
143 |
+++ /dev/null |
144 |
@@ -1,137 +0,0 @@ |
145 |
-From 22a7522ef3f0f3c13618214e61f60cb01d80eef4 Mon Sep 17 00:00:00 2001 |
146 |
-From: Justin Davis <jrcd83@×××××.com> |
147 |
-Date: Tue, 26 Oct 2021 13:28:16 -0400 |
148 |
-Subject: [PATCH] Fix emacs erlang-mode: xref switched to CL-Lib |
149 |
- |
150 |
-Fix for GitHub issue #5314. |
151 |
- |
152 |
-Xref is a package which is also bundled with emacs: |
153 |
-http://elpa.gnu.org/packages/xref.html |
154 |
- |
155 |
-Xref switched its own internally defined classes from EIEIO to |
156 |
-CL-lib (emacs-mirror/emacs@86da812afb2572c7fead2bb07570b976bffd7c55). |
157 |
-erlang-mode subclasses xref-file-location in order to add a function |
158 |
-arity slot to xrefs. |
159 |
- |
160 |
-If xref-file-location is a class, use defclass to subclass it. Otherwise |
161 |
-use cl-defstruct. Avoids referencing make-instance, slot-value functions |
162 |
-from EIEIO. Only references constructor, accessor, and predicate |
163 |
-functions. Updates comments that make references to classes. |
164 |
- |
165 |
-Testing: |
166 |
-- cd into lib/tools/emacs. |
167 |
-- Run the tests included with erlang-mode from the shell: |
168 |
- emacs -Q -batch -L . -l erlang.el -l erlang-test.el \ |
169 |
- -f ert-run-tests-batch-and-exit |
170 |
-- Copy xref.el from the xref package (>=1.3.1) into the |
171 |
- lib/tools/emacs directory. |
172 |
-- Run the tests again. This will load xref.el automatically |
173 |
- and use the new interface. |
174 |
---- |
175 |
- lib/tools/emacs/erlang.el | 48 +++++++++++++++++++++++++-------------- |
176 |
- 1 file changed, 31 insertions(+), 17 deletions(-) |
177 |
- |
178 |
-diff --git a/lib/tools/emacs/erlang.el b/lib/tools/emacs/erlang.el |
179 |
-index 69a5fdaeb55..40fe32689e7 100644 |
180 |
---- a/lib/tools/emacs/erlang.el |
181 |
-+++ b/lib/tools/emacs/erlang.el |
182 |
-@@ -5120,8 +5120,8 @@ about Erlang modules." |
183 |
- ;; |
184 |
- ;; As mentioned this xref implementation is based on the etags xref |
185 |
- ;; implementation. But in the cases where arity is considered the |
186 |
--;; etags information structures (class xref-etags-location) will be |
187 |
--;; translated to our own structures which include arity (class |
188 |
-+;; etags information structures (struct xref-etags-location) will be |
189 |
-+;; translated to our own structures which include arity (struct |
190 |
- ;; erlang-xref-location). This translation is started in the function |
191 |
- ;; `erlang-refine-xrefs'. |
192 |
- |
193 |
-@@ -5129,6 +5129,11 @@ about Erlang modules." |
194 |
- ;; with xref items with xref-etags-location and some deal with xref |
195 |
- ;; items with erlang-xref-location. |
196 |
- |
197 |
-+;; NOTE: Around Sept 2021, the xrefs package changed all of its defined types |
198 |
-+;; (i.e. xref-location, xref-file-location) from EIEIO classes to CL-Lib |
199 |
-+;; structures. These are both supported. Older Emacsen with earlier versions of |
200 |
-+;; xref will continue to use defclass. Newer Emacsen will use cl-defstruct. |
201 |
-+ |
202 |
- (defun erlang-etags--xref-backend () 'erlang-etags) |
203 |
- |
204 |
- (defun erlang-soft-require (feature) |
205 |
-@@ -5137,6 +5142,7 @@ about Erlang modules." |
206 |
- |
207 |
- (when (and (erlang-soft-require 'xref) |
208 |
- (erlang-soft-require 'cl-generic) |
209 |
-+ (erlang-soft-require 'cl-lib) |
210 |
- (erlang-soft-require 'eieio) |
211 |
- (erlang-soft-require 'etags)) |
212 |
- ;; The purpose of using eval here is to avoid compilation |
213 |
-@@ -5165,10 +5171,20 @@ about Erlang modules." |
214 |
- (let ((erlang-replace-etags-tags-completion-table t)) |
215 |
- (tags-completion-table))) |
216 |
- |
217 |
-- (defclass erlang-xref-location (xref-file-location) |
218 |
-- ((arity :type fixnum :initarg :arity |
219 |
-- :reader erlang-xref-location-arity)) |
220 |
-- :documentation "An erlang location is a file location plus arity.") |
221 |
-+ ;; Xref 1.3.1 bundled with Emacs 28+ switched from using EIEIO classes to |
222 |
-+ ;; using CL-Lib structs. |
223 |
-+ (if (find-class 'xref-file-location) |
224 |
-+ (progn |
225 |
-+ (defclass erlang-xref-location (xref-file-location) |
226 |
-+ ((arity :type fixnum :initarg :arity |
227 |
-+ :reader erlang-xref-location-arity)) |
228 |
-+ :documentation "An erlang location is a file location plus arity.") |
229 |
-+ ;; Make a constructor with the same name that a CL structure would have. |
230 |
-+ (defalias 'make-erlang-xref-location 'erlang-xref-location)) |
231 |
-+ (cl-defstruct (erlang-xref-location |
232 |
-+ (:include xref-file-location)) |
233 |
-+ "An erlang location is a file location plus arity." |
234 |
-+ (arity 0 :type fixnum))) |
235 |
- |
236 |
- ;; This method definition only calls the superclass which is |
237 |
- ;; the default behaviour if it was not defined. It is only |
238 |
-@@ -5331,8 +5347,7 @@ is non-nil then TAG is a regexp." |
239 |
- xrefs |
240 |
- (when (and xrefs |
241 |
- (fboundp 'xref-item-location) |
242 |
-- (fboundp 'xref-location-group) |
243 |
-- (fboundp 'slot-value)) |
244 |
-+ (fboundp 'xref-location-group)) |
245 |
- (let (files) |
246 |
- (cl-loop for xref in xrefs |
247 |
- for loc = (xref-item-location xref) |
248 |
-@@ -5357,7 +5372,8 @@ is non-nil then TAG is a regexp." |
249 |
- t)))) |
250 |
- |
251 |
- (defun erlang-xrefs-in-file (file kind tag is-regexp) |
252 |
-- (when (fboundp 'make-instance) |
253 |
-+ (when (and (fboundp 'make-erlang-xref-location) |
254 |
-+ (fboundp 'xref-make)) |
255 |
- (with-current-buffer (find-file-noselect file) |
256 |
- (save-excursion |
257 |
- (goto-char (point-min)) |
258 |
-@@ -5369,17 +5385,15 @@ is non-nil then TAG is a regexp." |
259 |
- for name = (match-string-no-properties 1) |
260 |
- for arity = (save-excursion |
261 |
- (erlang-get-arity)) |
262 |
-- for loc = (make-instance 'erlang-xref-location |
263 |
-- :file file |
264 |
-- :line (line-number-at-pos) |
265 |
-- :column 0 |
266 |
-- :arity arity) |
267 |
-+ for loc = (make-erlang-xref-location |
268 |
-+ :file file |
269 |
-+ :line (line-number-at-pos) |
270 |
-+ :column 0 |
271 |
-+ :arity arity) |
272 |
- for sum = (erlang-xref-summary kind name arity) |
273 |
- when (and arity |
274 |
- (not (eq arity last-arity))) |
275 |
-- collect (make-instance 'xref-item |
276 |
-- :summary sum |
277 |
-- :location loc) |
278 |
-+ collect (xref-make sum loc) |
279 |
- do (setq last-arity arity))))))) |
280 |
- |
281 |
- (defun erlang-xref-summary (kind tag arity) |