Skip to content

[Backport release-24.11] opam: fix opam sandboxing on nixos#372586

Merged
GaetanLepage merged 1 commit intorelease-24.11from
backport-363770-to-release-24.11
Jan 10, 2025
Merged

[Backport release-24.11] opam: fix opam sandboxing on nixos#372586
GaetanLepage merged 1 commit intorelease-24.11from
backport-363770-to-release-24.11

Conversation

@nixpkgs-ci
Copy link
Copy Markdown
Contributor

@nixpkgs-ci nixpkgs-ci bot commented Jan 10, 2025

Bot-based backport to release-24.11, triggered by a label in #363770.

  • Before merging, ensure that this backport is acceptable for the release.
    • Even as a non-commiter, if you find that it is not acceptable, leave a comment.

To make opam sandboxing (via bwrap) work on nixos, the following had been used
here:
  --set OPAM_USER_PATH_RO /run/current-system/sw/bin:/nix/
However, OPAM_USER_PATH_RO has been removed in opam 2.2.0, requiring a
new workaround: ocaml/opam@9b6370d
(Before this commit, executing `opam init` would display that sandboxing fails
with "bwrap: execvp sh: No such file or directory".)

- Removes outdated workarounds for ocp-build and argv0, cleans postInstall
- Fixes link to the changelog which was broken because of "with lib;"

(cherry picked from commit 5a51e70)
@nixpkgs-ci nixpkgs-ci bot mentioned this pull request Jan 10, 2025
13 tasks
@github-actions github-actions bot added 6.topic: ocaml OCaml is a general-purpose, high-level, multi-paradigm programming language. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Jan 10, 2025
@GaetanLepage GaetanLepage requested a review from drupol January 10, 2025 08:18
@GaetanLepage GaetanLepage merged commit 01738ef into release-24.11 Jan 10, 2025
@GaetanLepage GaetanLepage deleted the backport-363770-to-release-24.11 branch January 10, 2025 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: ocaml OCaml is a general-purpose, high-level, multi-paradigm programming language. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants