* [Caml-list] ocaml-variants via binary patch?
@ 2021-04-07 12:09 Kenichi Asai
2021-04-07 12:15 ` Nicolás Ojeda Bär
0 siblings, 1 reply; 3+ messages in thread
From: Kenichi Asai @ 2021-04-07 12:09 UTC (permalink / raw)
To: caml-list
I am trying to create an ocaml-variant (a type debugger) in which
parser.mly is modified. Since OCaml uses menhir, I have to run "make
promote-menhir" to obtain "boot/menhir/parser.ml". After that, I
created a patch against the original OCaml source. This way, I wanted
to obtain the variant by specifying the patch in the opam file.
However, git diff somehow considers "boot/menhir/parser.ml" as a
binary file. Now I got stuck. If I create a patch via:
git diff --binary
the patch program (launched by "opam switch create") says git binary
diff is not supported. Is there a way to pass "--binary" to patch
launched by opam? Or, is there a way to obtain non-binary diff for
"boot/menhir/parser.ml"? (The file appears to be an OCaml file, with
some very long lines.)
I then tried to include "make promote-menhir" into the build process
of opam, but opam says "menhir: command not found". Sure, menhir will
be built after the switch which I am now trying to create, leading to
circular dependency.
What can I do?
--
Kenichi Asai
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [Caml-list] ocaml-variants via binary patch?
2021-04-07 12:09 [Caml-list] ocaml-variants via binary patch? Kenichi Asai
@ 2021-04-07 12:15 ` Nicolás Ojeda Bär
2021-04-07 13:05 ` Kenichi Asai
0 siblings, 1 reply; 3+ messages in thread
From: Nicolás Ojeda Bär @ 2021-04-07 12:15 UTC (permalink / raw)
To: caml-list, Kenichi Asai
[-- Attachment #1: Type: text/plain, Size: 1667 bytes --]
Dear Kenichi,
You should be able to obtain a textual diff by using
git diff --text boot/menhir/parser.ml
Hope that helps,
Nicolás
________________________________
De : caml-list-request@inria.fr <caml-list-request@inria.fr> de la part de Kenichi Asai <asai@is.ocha.ac.jp>
Envoyé : mercredi 7 avril 2021 14:09
À : caml-list@inria.fr <caml-list@inria.fr>
Objet : [Caml-list] ocaml-variants via binary patch?
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
I am trying to create an ocaml-variant (a type debugger) in which
parser.mly is modified. Since OCaml uses menhir, I have to run "make
promote-menhir" to obtain "boot/menhir/parser.ml". After that, I
created a patch against the original OCaml source. This way, I wanted
to obtain the variant by specifying the patch in the opam file.
However, git diff somehow considers "boot/menhir/parser.ml" as a
binary file. Now I got stuck. If I create a patch via:
git diff --binary
the patch program (launched by "opam switch create") says git binary
diff is not supported. Is there a way to pass "--binary" to patch
launched by opam? Or, is there a way to obtain non-binary diff for
"boot/menhir/parser.ml"? (The file appears to be an OCaml file, with
some very long lines.)
I then tried to include "make promote-menhir" into the build process
of opam, but opam says "menhir: command not found". Sure, menhir will
be built after the switch which I am now trying to create, leading to
circular dependency.
What can I do?
--
Kenichi Asai
[-- Attachment #2: Type: text/html, Size: 3746 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-04-07 13:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-07 12:09 [Caml-list] ocaml-variants via binary patch? Kenichi Asai
2021-04-07 12:15 ` Nicolás Ojeda Bär
2021-04-07 13:05 ` Kenichi Asai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox