NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.45k stars 13.65k forks source link

smbclient broken on macOS #98473

Closed kirelagin closed 1 year ago

kirelagin commented 3 years ago

Describe the bug

Looks like a reference to a dynamic library gets stuck in the binary.

To Reproduce

› nix-shell -p smbclient

[nix-shell:/private/tmp]$ smbclient
dyld: Library not loaded: /private/tmp/nix-build-samba-4.11.9.drv-0/samba-4.11.9/bin/default/source3/libpopt-samba3-cmdline-samba4.dylib
  Referenced from: /nix/store/zq9hrx9lynzzrh07dwwfk6ac4scf8ybs-samba-4.11.9/bin/smbclient
  Reason: image not found
Abort trap: 6

Metadata

 - system: `"x86_64-darwin"`
 - host os: `Darwin 19.6.0, macOS 10.15.6`
 - multi-user?: `no`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.4pre20200721_ff314f1`
 - channels(kirelagin): `"darwin"`
 - nixpkgs: `/Users/kirelagin/.local/lib/nixpkgs`

(Looks like it doesn’t understand my flakes-based setup, but it’s on top of 31827921288.)

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
  - smbclient
module:
stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

wegank commented 1 year ago

Fixed on master.