Repository navigation
Fix the default permissions of Filename.temp_dir before OCaml 5.1 - #78
Open
thierry-martinez wants to merge 4 commits into
Open
thierry-martinez wants to merge 4 commits into
thierry-martinez wants to merge 4 commits into
Conversation
stdcompatpp fails with Not_found on a compiler whose version is not in `known_versions` (tools/compiler_version.ml): stdcompat could not be built with OCaml 5.5.1 and 5.5.2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ubuntu-latest is now Ubuntu 26, whose GCC 15 defaults to C23: there, a declaration without prototype such as `value (*)()` takes no argument, and OCaml 4.11 to 4.13 and 5.0 fail to build (caml/prims.h: "too many arguments to function"; opam exits with code 31 in the step Setup OCaml). The step is run with CC="gcc -std=gnu17", which OCaml also records for the C stubs. OCaml 4.13.1 built this way with GCC 15.2 locally, and the tests of stdcompat pass with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OCaml 4.14.5 has been released, and the CI jobs 4.14.x now install it: stdcompatpp failed with Not_found since 4.14.5 was not in `known_versions`. stdcompat builds with OCaml 4.14.5 and its tests pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The shim of Filename.temp_dir created the directory with the permissions 0o600 by default, without the execute bit: no file could be created in the directory (Sys_error "Permission denied"), unlike with Filename.temp_dir of OCaml 5.1, whose default is 0o700. The default is now 0o700. The test "Filename.temp_dir" creates a file in a temporary directory: it failed with the previous default on OCaml 4.14. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
thierry-martinez
force-pushed
the
fix-temp-dir-perms
branch
from
November 11, 2026 10:35
915fa5f to
31c3812
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is on top of #77 to pass the CI.
The shim of
Filename.temp_dircreated the directory with the permissions0o600by default, without the execute bit: no file could be created in the directory (Sys_error "Permission denied"), unlike withFilename.temp_dir of OCaml 5.1, whose default is0o700. The default is now0o700.The test
"Filename.temp_dir"creates a file in a temporary directory: it failed with the previous default on OCaml 4.14.🤖 Generated with Claude Code