Skip to content

darwin: hardlinks broken by codesign/install_name_tool #47691

@paulgessinger

Description

@paulgessinger

Steps to reproduce

  1. On macOS, I build git somewhere and push that to an OCI buildcache
  2. There are two git binaries in the install directory, one in bin/git and a hardlink in libexec/git-core/git
  3. During binary distribution to the build cache, the hardlink is identified, and libexec/git-core/git does not get added to the files to be relocated during install
  4. On a local macOS, I install from this buildcache
  5. During install, the two git binaries are not created as hardlinks. The libexec/git-core/git also seems to have mtime equal to unix epoch, but seems to have identical content to bin/git
  6. libexec/git-core/git never gets relocated and has incorrect RPATHs and libraries

Error message

The resulting libexec/git-code/git cannot be executed due to missing libraries.

Information on your system

  • Spack: 0.24.0.dev0 (d89f3b20a2e6b33daeaf58ed058b511e1796f8b9)
  • Python: 3.13.0
  • Platform: darwin-sequoia-m1

General information

  • I have run spack debug report and reported the version of Spack/Python/Platform
  • I have searched the issues of this repo and believe this is not a duplicate
  • I have run the failing commands in debug mode and reported the output

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingimpact-lowv0.23.1PRs to backport for v0.23.1

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions