Skip to content

pinentry-mac causes nix-store --optimise to fail #25819

@clacke

Description

@clacke

Issue description

When I run nix-store --optimise, it fails when it encounters pinentry-mac, and I believe it returns immediately and doesn't optimize the rest of the store.

Steps to reproduce

$ nix-store --optimise
0.00 MiB freed by hard-linking 0 files
$ nix-build -A pkgs.pinentry_mac '<nixpkgs>'
[ . . . ]
/nix/store/diw4mj51kw8njrv36ah7b3bjmkmvamph-pinentry-mac-0.9.4
$ nix-store --optimise
error: cannot link ‘/nix/store/.links/1666wf33g20gqagij48gmh2wk7vxq07kp0a0avqf13hyjfyii7wx’ to ‘/nix/store/diw4mj51kw8njrv36ah7b3bjmkmvamph-pinentry-mac-0.9.4/Applications/pinentry-mac.app/Contents/PkgInfo’: Operation not permitted

Technical details

  • System: macOS 10.12.4 Sierra
  • Nix version: nix-env (Nix) 1.11.6
  • Nixpkgs version: 17.09pre107260.e33848568d
  • Sandboxing enabled: no

Metadata

Metadata

Assignees

No one assigned

    Labels

    6.topic: darwinRunning or building packages on Darwin
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions