File: 0001-src-dune-setup.ml-is-now-src-dune_rules-setup.ml.patch

package info (click to toggle)
ocaml-dune 2.7.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 14,064 kB
  • sloc: ml: 70,777; lisp: 466; ansic: 241; sh: 209; makefile: 119; python: 38; cpp: 17; javascript: 6
file content (41 lines) | stat: -rw-r--r-- 1,323 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From: Mario Rodas <marsam@users.noreply.github.com>
Date: Wed, 2 Sep 2020 20:00:00 -0500
Subject: src/dune/setup.ml is now src/dune_rules/setup.ml

src/dune/setup.ml was renamed in bebb7a9432b149fce95ac820757216372afb8f0f

Bug: https://github.com/ocaml/dune/issues/3978
Bug-Debian: https://bugs.debian.org/975894
Origin: upstream
Signed-off-by: Mario Rodas <marsam@users.noreply.github.com>
---
 Makefile     | 2 +-
 configure.ml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 4ae969a..52d5d20 100644
--- a/Makefile
+++ b/Makefile
@@ -103,7 +103,7 @@ clean: $(BIN)
 	rm -rf _boot dune.exe
 
 distclean: clean
-	rm -f src/dune/setup.ml
+	rm -f src/dune_rules/setup.ml
 
 doc:
 	cd doc && sphinx-build . _build
diff --git a/configure.ml b/configure.ml
index f5366f1..c1fe8d3 100644
--- a/configure.ml
+++ b/configure.ml
@@ -44,7 +44,7 @@ let () =
   let anon s = bad "Don't know what to do with %s" s in
   Arg.parse (Arg.align args) anon
     "Usage: ocaml configure.ml [OPTRIONS]]\nOptions are:";
-  let oc = open_out "src/dune/setup.ml" in
+  let oc = open_out "src/dune_rules/setup.ml" in
   let pr fmt = fprintf oc (fmt ^^ "\n") in
   pr "let library_path    = %s" (option (list string) !library_path);
   pr "let library_destdir = %s" (option string !library_destdir);