-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
Closed
Labels
0.kind: bugSomething is brokenSomething is broken0.kind: regressionSomething that worked before working no longerSomething that worked before working no longer6.topic: closure sizeThe final size of a derivation, including its dependenciesThe final size of a derivation, including its dependencies
Milestone
Description
Describe the bug
Installing systemd pulls 2 different derivations of systemd
To Reproduce
Steps to reproduce the behavior:
1.
nix-env -iA systemd -f https://github.com/NixOS/nixpkgs/archive/release-20.09.tar.gz # or `master`
# ls -ld /nix/store/*systemd*
dr-xr-xr-x 3 root root 4096 Jan 1 1970 /nix/store/jv6bw65cp3z782gy6iwwd6jsmnw8grwk-systemd-246-man
dr-xr-xr-x 7 root root 4096 Jan 1 1970 /nix/store/kmlzasz1lbkigpirk4vwyg14g206wq18-systemd-246
dr-xr-xr-x 7 root root 4096 Jan 1 1970 /nix/store/lkzflryr02ahapqln1cwrkkhncwfb91y-systemd-246
# du -sh /nix/store/lkzflryr02ahapqln1cwrkkhncwfb91y-systemd-246 /nix/store/kmlzasz1lbkigpirk4vwyg14g206wq18-systemd-246
27.5M /nix/store/lkzflryr02ahapqln1cwrkkhncwfb91y-systemd-246
27.7M /nix/store/kmlzasz1lbkigpirk4vwyg14g206wq18-systemd-246
# nix path-info -r /nix/store/kmlzasz1lbkigpirk4vwyg14g206wq18-systemd-246 | grep systemd
/nix/store/kmlzasz1lbkigpirk4vwyg14g206wq18-systemd-246
/nix/store/lkzflryr02ahapqln1cwrkkhncwfb91y-systemd-246
Investigating further, it seems that libsystemd-shared depends on cryptsetup, which depends on devmapper which depends on udev from another systemd store. it can be confirmed by going up the library chain with ldd and readelf -d
5.
/nix/store/kmlzasz1lbkigpirk4vwyg14g206wq18-systemd-246/lib/systemd/libsystemd-shared-246.so
/nix/store/gn8cibqbzvdz7yqgg6har1p4598fc0bk-cryptsetup-2.3.3/lib/libcryptsetup.so.12
/nix/store/rglz8psiy8r8qhlpy747pf5xxdbyq1yd-lvm2-2.03.10-lib/lib/libdevmapper.so.1.02
/nix/store/lkzflryr02ahapqln1cwrkkhncwfb91y-systemd-246/lib/libudev.so.1
Additional context
Truth to be told, I'm running nixos in a podman container (podman run -it --rm nixos/nix:latest).
Notify maintainers
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
- system: `"x86_64-linux"`
- host os: `Linux 5.8.8-arch1-1, Alpine Linux, noversion`
- multi-user?: `yes`
- sandbox: `no`
- version: `nix-env (Nix) 2.3.6`
- channels(root): `"nixpkgs-20.09pre228453.dcb64ea42e6"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
0.kind: bugSomething is brokenSomething is broken0.kind: regressionSomething that worked before working no longerSomething that worked before working no longer6.topic: closure sizeThe final size of a derivation, including its dependenciesThe final size of a derivation, including its dependencies
Projects
Status
Done