Skip to content

Conversation

matthewelse
Copy link
Contributor

Installation of js_of_ocaml was previously failing due to a bad patch. This PR fixes that. After updating the patch, I'm able to successfully install js_of_ocaml.

@jonludlam
Copy link
Contributor

Interesting, the package is installing fine for me. What OS, opam version and patch version are you using?

@avsm
Copy link
Contributor

avsm commented Sep 10, 2025

I'm seeing breakage on macOS with opam 2.4.1

#=== ERROR while compiling js_of_ocaml-compiler.6.0.1+ox ======================#
These patches didn't apply at /Users/avsm/.opam/5.2.0+ox/.opam-switch/build/js_of_ocaml-compiler.6.0.1+ox:
  - js_of_ocaml-iarray-primitives.patch: OpamSystem.Internal_patch_error("Patch
    \"/Users/avsm/.opam/5.2.0+ox/.opam-switch/build/js_of_ocaml-compiler.6.0.1+ox/js_of_ocaml-iarray-primitives.patch\" does not apply cleanly.")

I think that now has a builtin patch, so this might be a regression ; /cc @kit-ty-kate

@jonludlam
Copy link
Contributor

FWIW I'm using opam 2.3.0 on macos, which is using gpatch, and the patches apply cleanly.

@@ -1,10 +1,9 @@
--- a/runtime/js/array.js
+++ b/runtime/js/array.js
@@ -131,3 +131,13 @@
for (var i = 1; i < len; i++) b[i] = 0;
return b
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not exactly sure how GNU Patch allowed that if that's not what the file looks like. Could someone open a ticket on https://github.com/hannesm/patch/issues with state of this file before the patch and a link to the original patch? If no-one has the spare time to do it, i'll do it sometime later this week

@ccasin ccasin merged commit a5344a0 into oxcaml:main Sep 11, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants