-
Notifications
You must be signed in to change notification settings - Fork 414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: re-enable dune on older macos sdk's #6515
fix: re-enable dune on older macos sdk's #6515
Conversation
@barracuda156 can you check if this works? |
Sure, gimme few min. |
On a side note, and since the PR refers to SDKs, there is one more issue that has to be fixed for those: #6510 (large chunk of those functions in That one I can fix locally for myself, but it is perhaps desirable to fix it for everyone. I could have made a PR, but I hope that maybe someone can come up with a better fix than merely disabling the functions – like it was done for |
I tried making it work for < 10.7 but it seems to be difficult. There's no notification for file level notifications so it doesn't really work well for dune's needs. |
Original fix was a blank disabling: #5431 |
Kqueue isn't really better. The API is much lower level and incredibly inconvenient for watching entire trees recursively. We deal with a similar headache on inotify though, so it is feasible. |
In Macports at least, (For a context, I am trying now to fix |
@rgrinberg I have just now looked at the files changed preparing to build, and my assumption was wrong: you actually addressed the issue which I thought was pending. |
Can you explain how to reproduce the error? |
I did not do anything special to get it. Whatever I tried to change, it persisted. If versions are important: This is not the case where I would tweak anything in an exotic manner :) OCaml packages normally just build (including for Darwin PPC) with zero extra effort, the only thing I modify* as compared to Macports master, as far as OCaml goes, is updating to current versions (Macports is lazy or reluctant to update those). I think Macports logic with these ports is simple and transparent. P. S. * Well, irrelevant to this discussion and packages in question, but for the sake of being precise, few OCaml packages do need a correct target being set manually in order |
@rgrinberg Since I could not find a rational solution to the problem which needs to be solved somehow, I also rebuilt from scratch all three in question: OCaml itself, P. S. Since |
@rgrinberg Okay, I have fixed it for myself. Apparently sources are inconsistent: for w/e reason included I can test your SDK fix now too. |
@rgrinberg Your patch works fine, the only thing, I believe, macro should be used after the header, as it is always done (otherwise you put the header inside the conditional which is determined by the header in question, that might work, but should not). I.e.:
(Wrapping is inconsequential, #endif can go to the end of file instead.) P. S. Line 93 change does nothing or I miss something? It is inside a macro for new systems, so I cannot check it. |
28a929d
to
3bd1151
Compare
by disabling watch mode on such versions Signed-off-by: Rudi Grinberg <[email protected]> ps-id: dc8e96cc-61a9-4497-baac-0934b82efe6f
3bd1151
to
92c610f
Compare
Thanks. I applied your suggestion. |
* main: (58 commits) test: formatting of alternative dune files (ocaml#6567) refactor: remove Modules.is_empty (ocaml#6564) refactor: module kinds (ocaml#6562) refactor(coq): resolve lack of coqc properly Cache file contents in action builder by name. (ocaml#6555) fix: re-enable dune on older macos sdk's (ocaml#6515) fix: do not hide lib interface module (ocaml#6549) test: remove pkg-config output for reproducibility (ocaml#6543) melange: add test for ocaml flags (ocaml#6548) fix: improve virtual library error messages test: virtual library and impl locations test: alias module regression (ocaml#6544) refactor(merlin): dump config sub command (ocaml#6547) refactor: simplify merlin (ocaml#6508) chore(nix): use nix-overlays for the slim devShell (ocaml#6546) fix: module compilation rule env (ocaml#6527) chore: update nix (ocaml#6536) fix: merlin rules with pp's (ocaml#6474) Call [Dune_util.Log.init] as soon as possible (ocaml#6542) refactor: speed up stdlib build (ocaml#6524) ...
* main: test: formatting of alternative dune files (ocaml#6567) refactor: remove Modules.is_empty (ocaml#6564) refactor: module kinds (ocaml#6562) refactor(coq): resolve lack of coqc properly Cache file contents in action builder by name. (ocaml#6555) fix: re-enable dune on older macos sdk's (ocaml#6515) fix: do not hide lib interface module (ocaml#6549) test: remove pkg-config output for reproducibility (ocaml#6543) melange: add test for ocaml flags (ocaml#6548) fix: improve virtual library error messages test: virtual library and impl locations test: alias module regression (ocaml#6544) refactor(merlin): dump config sub command (ocaml#6547)
by disabling watch mode on such versions
Signed-off-by: Rudi Grinberg [email protected]
ps-id: dc8e96cc-61a9-4497-baac-0934b82efe6f