Debian Codegraph @

debian/patches/dune3.24.patch

raw symbols SCIP
1 Description: fix compilation with recent dune
2 Author: Julien Puydt
3 Forwarded: not-needed
4
5 --- coq-elpi.orig/dune-project
6 +++ coq-elpi/dune-project
7 @@ -1,5 +1,5 @@
8 -(lang dune 3.13)
9 -(using coq 0.8)
10 +(lang dune 3.24)
11 +(using rocq 0.14)
12 (name rocq-elpi)
13 ;(generate_opam_files)
14
15 --- coq-elpi.orig/apps/NES/elpi/dune
16 +++ coq-elpi/apps/NES/elpi/dune
17 @@ -1,4 +1,4 @@
18 -(coq.theory
19 +(rocq.theory
20 (name elpi.apps.NES.elpi)
21 (package rocq-elpi)
22 (theories elpi))
23 --- coq-elpi.orig/apps/NES/examples/dune
24 +++ coq-elpi/apps/NES/examples/dune
25 @@ -1,4 +1,4 @@
26 -(coq.theory
27 +(rocq.theory
28 (name elpi.apps.NES.examples)
29 (theories elpi elpi.apps.NES))
30
31 --- coq-elpi.orig/apps/NES/tests/dune
32 +++ coq-elpi/apps/NES/tests/dune
33 @@ -1,4 +1,4 @@
34 -(coq.theory
35 +(rocq.theory
36 (name elpi.apps.NES.tests)
37 (package rocq-elpi-tests)
38 (theories elpi elpi.apps.NES))
39 --- coq-elpi.orig/apps/NES/theories/dune
40 +++ coq-elpi/apps/NES/theories/dune
41 @@ -1,4 +1,4 @@
42 -(coq.theory
43 +(rocq.theory
44 (name elpi.apps.NES)
45 (package rocq-elpi)
46 (theories elpi elpi.apps.NES.elpi))
47 --- coq-elpi.orig/apps/coercion/src/dune
48 +++ coq-elpi/apps/coercion/src/dune
49 @@ -2,8 +2,8 @@
50 (name elpi_coercion_plugin)
51 (public_name rocq-elpi.coercion)
52 (flags :standard -w -27)
53 - (preprocess (pps ppx_optcomp -- -cookie "ppx_optcomp.env=env ~coq:(Defined \"%{coq:version.major}.%{coq:version.minor}\")"))
54 + (preprocess (pps ppx_optcomp -- -cookie "ppx_optcomp.env=env ~coq:(Defined \"%{rocq:version.major}.%{rocq:version.minor}\")"))
55 (libraries rocq-runtime.plugins.ltac rocq-runtime.vernac rocq-elpi.elpi))
56
57 -(coq.pp
58 +(rocq.pp
59 (modules rocq_elpi_coercion_hook))
60 --- coq-elpi.orig/apps/coercion/tests/dune
61 +++ coq-elpi/apps/coercion/tests/dune
62 @@ -1,4 +1,4 @@
63 -(coq.theory
64 +(rocq.theory
65 (name elpi.apps.coercion.tests)
66 (package rocq-elpi-tests)
67 (theories elpi elpi.apps.coercion))
68 --- coq-elpi.orig/apps/coercion/theories/dune
69 +++ coq-elpi/apps/coercion/theories/dune
70 @@ -1,4 +1,4 @@
71 -(coq.theory
72 +(rocq.theory
73 (name elpi.apps.coercion)
74 (package rocq-elpi)
75 (theories elpi)
76 --- coq-elpi.orig/apps/cs/src/dune
77 +++ coq-elpi/apps/cs/src/dune
78 @@ -2,8 +2,8 @@
79 (name elpi_cs_plugin)
80 (public_name rocq-elpi.cs)
81 (flags :standard -w -27)
82 - (preprocess (pps ppx_optcomp -- -cookie "ppx_optcomp.env=env ~coq:(Defined \"%{coq:version.major}.%{coq:version.minor}\")"))
83 + (preprocess (pps ppx_optcomp -- -cookie "ppx_optcomp.env=env ~coq:(Defined \"%{rocq:version.major}.%{rocq:version.minor}\")"))
84 (libraries rocq-runtime.plugins.ltac rocq-runtime.vernac rocq-elpi.elpi))
85
86 -(coq.pp
87 +(rocq.pp
88 (modules rocq_elpi_cs_hook))
89 --- coq-elpi.orig/apps/cs/theories/dune
90 +++ coq-elpi/apps/cs/theories/dune
91 @@ -1,4 +1,4 @@
92 -(coq.theory
93 +(rocq.theory
94 (name elpi.apps.cs)
95 (package rocq-elpi)
96 (theories elpi)
97 --- coq-elpi.orig/apps/derive/elpi/dune
98 +++ coq-elpi/apps/derive/elpi/dune
99 @@ -1,4 +1,4 @@
100 -(coq.theory
101 +(rocq.theory
102 (name elpi.apps.derive.elpi)
103 (package rocq-elpi)
104 (theories elpi))
105 --- coq-elpi.orig/apps/derive/examples/dune
106 +++ coq-elpi/apps/derive/examples/dune
107 @@ -1,4 +1,4 @@
108 -(coq.theory
109 +(rocq.theory
110 (name elpi.apps.derive.examples)
111 (theories elpi elpi.apps.derive))
112
113 --- coq-elpi.orig/apps/derive/tests-stdlib/dune
114 +++ coq-elpi/apps/derive/tests-stdlib/dune
115 @@ -1,4 +1,4 @@
116 -(coq.theory
117 +(rocq.theory
118 (package rocq-elpi-tests-stdlib)
119 (name elpi_apps_derive_tests_stdlib)
120 (flags :standard -w -default-output-directory)
121 --- coq-elpi.orig/apps/derive/tests/dune
122 +++ coq-elpi/apps/derive/tests/dune
123 @@ -1,4 +1,4 @@
124 -(coq.theory
125 +(rocq.theory
126 (name elpi.apps.derive.tests)
127 (package rocq-elpi-tests)
128 (flags :standard -w -default-output-directory)
129 --- coq-elpi.orig/apps/derive/theories/dune
130 +++ coq-elpi/apps/derive/theories/dune
131 @@ -1,4 +1,4 @@
132 -(coq.theory
133 +(rocq.theory
134 (name elpi.apps.derive)
135 (package rocq-elpi)
136 (theories elpi elpi.apps.derive.elpi))
137 --- coq-elpi.orig/apps/eltac/examples/dune
138 +++ coq-elpi/apps/eltac/examples/dune
139 @@ -1,4 +1,4 @@
140 -(coq.theory
141 +(rocq.theory
142 (name elpi.apps.eltac.examples)
143 (theories elpi elpi.apps.eltac))
144
145 --- coq-elpi.orig/apps/eltac/tests-stdlib/dune
146 +++ coq-elpi/apps/eltac/tests-stdlib/dune
147 @@ -1,4 +1,4 @@
148 -(coq.theory
149 +(rocq.theory
150 (package rocq-elpi-tests-stdlib)
151 (name elpi_apps_eltac_tests_stdlib)
152 (theories elpi elpi.apps.eltac Stdlib))
153 --- coq-elpi.orig/apps/eltac/tests/dune
154 +++ coq-elpi/apps/eltac/tests/dune
155 @@ -1,4 +1,4 @@
156 -(coq.theory
157 +(rocq.theory
158 (name elpi.apps.eltac.tests)
159 (package rocq-elpi-tests)
160 (theories elpi elpi.apps.eltac))
161 --- coq-elpi.orig/apps/eltac/theories/dune
162 +++ coq-elpi/apps/eltac/theories/dune
163 @@ -1,4 +1,4 @@
164 -(coq.theory
165 +(rocq.theory
166 (name elpi.apps.eltac)
167 (package rocq-elpi)
168 (theories elpi elpi.apps.derive))
169 --- coq-elpi.orig/apps/json/examples/dune
170 +++ coq-elpi/apps/json/examples/dune
171 @@ -1,4 +1,4 @@
172 -(coq.theory
173 +(rocq.theory
174 (name elpi.json.examples)
175 (theories elpi elpi.json elpi.json.tests))
176
177 --- coq-elpi.orig/apps/json/tests-plugin/dune
178 +++ coq-elpi/apps/json/tests-plugin/dune
179 @@ -1,4 +1,4 @@
180 -(coq.theory
181 +(rocq.theory
182 (name elpi.json.tests)
183 (package rocq-elpi-json-tests)
184 (theories elpi elpi.json))
185 @@ -14,4 +14,4 @@
186 (progn
187 (run rocq_elpi_shafile %{deps})))))
188
189 -(include_subdirs qualified)
190 \ No newline at end of file
191 +(include_subdirs qualified)
192 --- coq-elpi.orig/apps/json/theories/dune
193 +++ coq-elpi/apps/json/theories/dune
194 @@ -1,4 +1,4 @@
195 -(coq.theory
196 +(rocq.theory
197 (name elpi.json)
198 (theories elpi_elpi elpi)
199 (plugins rocq-elpi-json.elpi_json_plugin)
200 --- coq-elpi.orig/apps/locker/elpi/dune
201 +++ coq-elpi/apps/locker/elpi/dune
202 @@ -1,4 +1,4 @@
203 -(coq.theory
204 +(rocq.theory
205 (name elpi.apps.locker.elpi)
206 (package rocq-elpi)
207 (theories elpi))
208 --- coq-elpi.orig/apps/locker/tests/dune
209 +++ coq-elpi/apps/locker/tests/dune
210 @@ -1,4 +1,4 @@
211 -(coq.theory
212 +(rocq.theory
213 (name elpi.apps.locker.tests)
214 (package rocq-elpi-tests)
215 (theories elpi elpi.apps.locker))
216 --- coq-elpi.orig/apps/locker/theories/dune
217 +++ coq-elpi/apps/locker/theories/dune
218 @@ -1,4 +1,4 @@
219 -(coq.theory
220 +(rocq.theory
221 (name elpi.apps.locker)
222 (package rocq-elpi)
223 (theories elpi elpi.apps.locker.elpi))
224 --- coq-elpi.orig/apps/rbuild/elpi/dune
225 +++ coq-elpi/apps/rbuild/elpi/dune
226 @@ -1,4 +1,4 @@
227 -(coq.theory
228 +(rocq.theory
229 (name elpi.apps.rbuild.elpi)
230 (package rocq-elpi)
231 (theories elpi elpi.apps.coercion))
232 --- coq-elpi.orig/apps/rbuild/examples/dune
233 +++ coq-elpi/apps/rbuild/examples/dune
234 @@ -1,4 +1,4 @@
235 -(coq.theory
236 +(rocq.theory
237 (name elpi.apps.rbuild.examples)
238 (theories elpi elpi.apps.rbuild elpi.apps.derive))
239
240 --- coq-elpi.orig/apps/rbuild/theories/dune
241 +++ coq-elpi/apps/rbuild/theories/dune
242 @@ -1,4 +1,4 @@
243 -(coq.theory
244 +(rocq.theory
245 (name elpi.apps.rbuild)
246 (package rocq-elpi)
247 (theories elpi elpi.apps.rbuild.elpi elpi.apps.derive))
248 --- coq-elpi.orig/apps/tc/elpi/dune
249 +++ coq-elpi/apps/tc/elpi/dune
250 @@ -1,4 +1,4 @@
251 -(coq.theory
252 +(rocq.theory
253 (name elpi.apps.tc.elpi)
254 (package rocq-elpi)
255 (theories elpi))
256 --- coq-elpi.orig/apps/tc/examples/dune
257 +++ coq-elpi/apps/tc/examples/dune
258 @@ -1,4 +1,4 @@
259 -(coq.theory
260 +(rocq.theory
261 (name elpi.apps.tc.examples)
262 (theories elpi elpi.apps.tc Stdlib))
263
264 --- coq-elpi.orig/apps/tc/src/dune
265 +++ coq-elpi/apps/tc/src/dune
266 @@ -2,8 +2,8 @@
267 (name elpi_tc_plugin)
268 (public_name rocq-elpi.tc)
269 (flags :standard -w -27)
270 - (preprocess (pps ppx_optcomp -- -cookie "ppx_optcomp.env=env ~coq:(Defined \"%{coq:version.major}.%{coq:version.minor}\")"))
271 + (preprocess (pps ppx_optcomp -- -cookie "ppx_optcomp.env=env ~coq:(Defined \"%{rocq:version.major}.%{rocq:version.minor}\")"))
272 (libraries rocq-runtime.plugins.ltac rocq-runtime.vernac rocq-elpi.elpi))
273
274 -(coq.pp
275 +(rocq.pp
276 (modules rocq_elpi_tc_hook))
277 --- coq-elpi.orig/apps/tc/tests-stdlib/dune
278 +++ coq-elpi/apps/tc/tests-stdlib/dune
279 @@ -1,4 +1,4 @@
280 -(coq.theory
281 +(rocq.theory
282 (package rocq-elpi-tests-stdlib)
283 (name elpi_apps_tc_tests_stdlib)
284 (flags :standard -async-proofs-cache force)
285 --- coq-elpi.orig/apps/tc/tests/dune
286 +++ coq-elpi/apps/tc/tests/dune
287 @@ -1,4 +1,4 @@
288 -(coq.theory
289 +(rocq.theory
290 (name elpi.apps.tc.tests)
291 (flags :standard -async-proofs-cache force)
292 (package rocq-elpi-tests)
293 --- coq-elpi.orig/apps/tc/theories/dune
294 +++ coq-elpi/apps/tc/theories/dune
295 @@ -1,4 +1,4 @@
296 -(coq.theory
297 +(rocq.theory
298 (name elpi.apps.tc)
299 (package rocq-elpi)
300 (theories elpi elpi.apps.tc.elpi)
301 --- coq-elpi.orig/apps/xml/examples/dune
302 +++ coq-elpi/apps/xml/examples/dune
303 @@ -1,4 +1,4 @@
304 -(coq.theory
305 +(rocq.theory
306 (name elpi.xml.examples)
307 (theories elpi elpi.xml elpi.xml.tests))
308
309 --- coq-elpi.orig/apps/xml/tests-plugin/dune
310 +++ coq-elpi/apps/xml/tests-plugin/dune
311 @@ -1,4 +1,4 @@
312 -(coq.theory
313 +(rocq.theory
314 (name elpi.xml.tests)
315 (package rocq-elpi-xml-tests)
316 (theories elpi elpi.xml))
317 @@ -14,4 +14,4 @@
318 (progn
319 (run rocq_elpi_shafile %{deps})))))
320
321 -(include_subdirs qualified)
322 \ No newline at end of file
323 +(include_subdirs qualified)
324 --- coq-elpi.orig/apps/xml/theories/dune
325 +++ coq-elpi/apps/xml/theories/dune
326 @@ -1,4 +1,4 @@
327 -(coq.theory
328 +(rocq.theory
329 (name elpi.xml)
330 (theories elpi_elpi elpi)
331 (plugins rocq-elpi-xml.elpi_xml_plugin)
332 --- coq-elpi.orig/dune
333 +++ coq-elpi/dune
334 @@ -1,4 +1,4 @@
335 (env
336 (dev
337 (flags (:standard -w -9 -w -32 -w -27 -w -6 -w -37 -warn-error -A))
338 - (coq (flags -w +elpi.deprecated -w +elpi.implication-precedence -w -elpi.flex-clause -bt))))
339 + (rocq (flags -w +elpi.deprecated -w +elpi.implication-precedence -w -elpi.flex-clause -bt))))
340 --- coq-elpi.orig/elpi/dune
341 +++ coq-elpi/elpi/dune
342 @@ -1,4 +1,4 @@
343 -(coq.theory
344 +(rocq.theory
345 (name elpi_elpi) ; FIXME
346 (package rocq-elpi))
347
348 --- coq-elpi.orig/examples-stdlib/dune
349 +++ coq-elpi/examples-stdlib/dune
350 @@ -1,4 +1,4 @@
351 -(coq.theory
352 +(rocq.theory
353 (package rocq-elpi-tests-stdlib)
354 (name elpi_examples_stdlib)
355 (plugins rocq-elpi.elpi)
356 --- coq-elpi.orig/examples/dune
357 +++ coq-elpi/examples/dune
358 @@ -1,4 +1,4 @@
359 -(coq.theory
360 +(rocq.theory
361 (package rocq-elpi)
362 (name elpi_examples)
363 (plugins rocq-elpi.elpi)
364 --- coq-elpi.orig/examples/example_plugin/theories/dune
365 +++ coq-elpi/examples/example_plugin/theories/dune
366 @@ -1,4 +1,4 @@
367 -(coq.theory
368 +(rocq.theory
369 (name example_plugin)
370 (theories elpi)
371 (plugins rocq-elpi.elpi_example_plugin))
372 --- coq-elpi.orig/src/dune
373 +++ coq-elpi/src/dune
374 @@ -5,7 +5,7 @@
375 (flags :standard -w -27)
376 (preprocessor_deps rocq_elpi_config.mlh)
377 (preprocess
378 - (pps ppx_deriving.std ppx_optcomp -- -cookie "ppx_optcomp.env=env ~coq:(Defined \"%{coq:version.major}.%{coq:version.minor}\")"))
379 + (pps ppx_deriving.std ppx_optcomp -- -cookie "ppx_optcomp.env=env ~coq:(Defined \"%{rocq:version.major}.%{rocq:version.minor}\")"))
380 (libraries rocq-runtime.plugins.ltac rocq-runtime.vernac elpi))
381
382 (rule
383 @@ -46,5 +46,5 @@
384 (echo "]\n")))))
385
386
387 -(coq.pp
388 +(rocq.pp
389 (modules rocq_elpi_vernacular_syntax rocq_elpi_arg_syntax))
390 --- coq-elpi.orig/tests-stdlib/dune
391 +++ coq-elpi/tests-stdlib/dune
392 @@ -1,4 +1,4 @@
393 -(coq.theory
394 +(rocq.theory
395 (package rocq-elpi-tests-stdlib)
396 (name elpi_tests_stdlib)
397 (plugins rocq-elpi.elpi)
398 --- coq-elpi.orig/tests/dune
399 +++ coq-elpi/tests/dune
400 @@ -1,4 +1,4 @@
401 -(coq.theory
402 +(rocq.theory
403 (name elpi.tests)
404 (plugins rocq-elpi.elpi)
405 (theories elpi))
406 @@ -11,7 +11,7 @@
407 (glob_files test_API_proof.v.in))
408 (action
409 (with-stdout-to %{target}
410 - (run rocq_elpi_optcomp "%{coq:version.major}.%{coq:version.minor}" %{deps}))))
411 + (run rocq_elpi_optcomp "%{rocq:version.major}.%{rocq:version.minor}" %{deps}))))
412
413 (rule
414 (target dummy.v)
415 --- coq-elpi.orig/theories/dune
416 +++ coq-elpi/theories/dune
417 @@ -1,4 +1,4 @@
418 -(coq.theory
419 +(rocq.theory
420 (name elpi)
421 (package rocq-elpi)
422 (plugins rocq-elpi.elpi)
423 @@ -10,6 +10,6 @@
424 (glob_files elpi.v.in))
425 (action
426 (with-stdout-to %{target}
427 - (run rocq_elpi_optcomp "%{coq:version.major}.%{coq:version.minor}" %{deps}))))
428 + (run rocq_elpi_optcomp "%{rocq:version.major}.%{rocq:version.minor}" %{deps}))))
429
430 (include_subdirs qualified)
431 --- coq-elpi.orig/apps/json/src/dune
432 +++ coq-elpi/apps/json/src/dune
433 @@ -2,5 +2,5 @@
434 (name elpi_json_plugin)
435 (public_name rocq-elpi-json.elpi_json_plugin)
436 (flags :standard -w -27)
437 - (preprocess (pps ppx_optcomp -- -cookie "ppx_optcomp.env=env ~coq:(Defined \"%{coq:version.major}.%{coq:version.minor}\")"))
438 + (preprocess (pps ppx_optcomp -- -cookie "ppx_optcomp.env=env ~coq:(Defined \"%{rocq:version.major}.%{rocq:version.minor}\")"))
439 (libraries rocq-runtime.plugins.ltac rocq-runtime.vernac rocq-elpi.elpi elpi yojson))
440 --- coq-elpi.orig/apps/xml/src/dune
441 +++ coq-elpi/apps/xml/src/dune
442 @@ -2,5 +2,5 @@
443 (name elpi_xml_plugin)
444 (public_name rocq-elpi-xml.elpi_xml_plugin)
445 (flags :standard -w -27)
446 - (preprocess (pps ppx_optcomp -- -cookie "ppx_optcomp.env=env ~coq:(Defined \"%{coq:version.major}.%{coq:version.minor}\")"))
447 + (preprocess (pps ppx_optcomp -- -cookie "ppx_optcomp.env=env ~coq:(Defined \"%{rocq:version.major}.%{rocq:version.minor}\")"))
448 (libraries rocq-runtime.plugins.ltac rocq-runtime.vernac rocq-elpi.elpi elpi xml-light))
449 --- coq-elpi.orig/examples/example_plugin/src/dune
450 +++ coq-elpi/examples/example_plugin/src/dune
451 @@ -2,5 +2,5 @@
452 (name elpi_example_plugin)
453 (public_name rocq-elpi.elpi_example_plugin)
454 (flags :standard -w -27)
455 - (preprocess (pps ppx_optcomp -- -cookie "ppx_optcomp.env=env ~coq:(Defined \"%{coq:version.major}.%{coq:version.minor}\")"))
456 + (preprocess (pps ppx_optcomp -- -cookie "ppx_optcomp.env=env ~coq:(Defined \"%{rocq:version.major}.%{rocq:version.minor}\")"))
457 (libraries rocq-runtime.plugins.ltac rocq-runtime.vernac rocq-elpi.elpi elpi))