Hello,
nix-rebuild command after every rebuild complains about package collisions. Is this normal, what should be done to fix the issue?
collision between `/nix/store/vxwmfvgk1b1hz8nyrv1rchifv925c7j6-kmod-21/bin/depmod' and `/nix/store/nz27rqnqpl4q4qz9ixb10bxr8b0pa8z9-modprobe/bin/depmod' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/vxwmfvgk1b1hz8nyrv1rchifv925c7j6-kmod-21/bin/insmod' and `/nix/store/nz27rqnqpl4q4qz9ixb10bxr8b0pa8z9-modprobe/bin/insmod' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/vxwmfvgk1b1hz8nyrv1rchifv925c7j6-kmod-21/bin/kmod' and `/nix/store/nz27rqnqpl4q4qz9ixb10bxr8b0pa8z9-modprobe/bin/kmod' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/vxwmfvgk1b1hz8nyrv1rchifv925c7j6-kmod-21/bin/lsmod' and `/nix/store/nz27rqnqpl4q4qz9ixb10bxr8b0pa8z9-modprobe/bin/lsmod' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/vxwmfvgk1b1hz8nyrv1rchifv925c7j6-kmod-21/bin/modinfo' and `/nix/store/nz27rqnqpl4q4qz9ixb10bxr8b0pa8z9-modprobe/bin/modinfo' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/vxwmfvgk1b1hz8nyrv1rchifv925c7j6-kmod-21/bin/modprobe' and `/nix/store/nz27rqnqpl4q4qz9ixb10bxr8b0pa8z9-modprobe/bin/modprobe' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/vxwmfvgk1b1hz8nyrv1rchifv925c7j6-kmod-21/bin/rmmod' and `/nix/store/nz27rqnqpl4q4qz9ixb10bxr8b0pa8z9-modprobe/bin/rmmod' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/vxwmfvgk1b1hz8nyrv1rchifv925c7j6-kmod-21/sbin/depmod' and `/nix/store/nz27rqnqpl4q4qz9ixb10bxr8b0pa8z9-modprobe/sbin/depmod' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/vxwmfvgk1b1hz8nyrv1rchifv925c7j6-kmod-21/sbin/insmod' and `/nix/store/nz27rqnqpl4q4qz9ixb10bxr8b0pa8z9-modprobe/sbin/insmod' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/vxwmfvgk1b1hz8nyrv1rchifv925c7j6-kmod-21/sbin/kmod' and `/nix/store/nz27rqnqpl4q4qz9ixb10bxr8b0pa8z9-modprobe/sbin/kmod' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/vxwmfvgk1b1hz8nyrv1rchifv925c7j6-kmod-21/sbin/lsmod' and `/nix/store/nz27rqnqpl4q4qz9ixb10bxr8b0pa8z9-modprobe/sbin/lsmod' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/vxwmfvgk1b1hz8nyrv1rchifv925c7j6-kmod-21/sbin/modinfo' and `/nix/store/nz27rqnqpl4q4qz9ixb10bxr8b0pa8z9-modprobe/sbin/modinfo' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/vxwmfvgk1b1hz8nyrv1rchifv925c7j6-kmod-21/sbin/modprobe' and `/nix/store/nz27rqnqpl4q4qz9ixb10bxr8b0pa8z9-modprobe/sbin/modprobe' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/vxwmfvgk1b1hz8nyrv1rchifv925c7j6-kmod-21/sbin/rmmod' and `/nix/store/nz27rqnqpl4q4qz9ixb10bxr8b0pa8z9-modprobe/sbin/rmmod' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/8jfi4vwh6fiw3xc71cl7im192yfkhch8-texinfo-5.2/bin/info' and `/nix/store/zhlwabs3wqb8r96q9bd51z0lav16kryj-info/bin/info' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/ls3bvpghhpqbicm1i23x3ffispa33dwb-nvidia-x11-352.30-4.1.3/lib/xorg/modules/extensions/libglx.so' and `/nix/store/jac94jl3waby8hr4fiknmrgzy1n8pjjz-xorg-server-1.17.2/lib/xorg/modules/extensions/libglx.so' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/rsinzxmvhcng9gggixrvkbs8j9ah24f1-gnutar-1.28/libexec/rmt' and `/nix/store/xd9dz2g6j4c3amhw0j1n5aw6b9hvd5zv-cpio-2.11/libexec/rmt' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/m36y1jrsy31p5ikr16ff03csk5z0fdck-procps-3.3.10/bin/kill' and `/nix/store/a457ywa1haa0sgr9g7a1pgldrg3s798d-coreutils-8.24/bin/kill' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/m36y1jrsy31p5ikr16ff03csk5z0fdck-procps-3.3.10/bin/uptime' and `/nix/store/a457ywa1haa0sgr9g7a1pgldrg3s798d-coreutils-8.24/bin/uptime' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/m36y1jrsy31p5ikr16ff03csk5z0fdck-procps-3.3.10/share/man/man1/kill.1.gz' and `/nix/store/a457ywa1haa0sgr9g7a1pgldrg3s798d-coreutils-8.24/share/man/man1/kill.1.gz' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/m36y1jrsy31p5ikr16ff03csk5z0fdck-procps-3.3.10/share/man/man1/uptime.1.gz' and `/nix/store/a457ywa1haa0sgr9g7a1pgldrg3s798d-coreutils-8.24/share/man/man1/uptime.1.gz' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/a65aqp0fwqjfmssdp03ima632qjy54lc-util-linux-2.26.2/bin/chfn' and `/nix/store/3yim21m7ygyyymdhfijj2cchkirmixla-shadow-4.2.1/bin/chfn' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/a65aqp0fwqjfmssdp03ima632qjy54lc-util-linux-2.26.2/bin/chsh' and `/nix/store/3yim21m7ygyyymdhfijj2cchkirmixla-shadow-4.2.1/bin/chsh' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/a65aqp0fwqjfmssdp03ima632qjy54lc-util-linux-2.26.2/bin/kill' and `/nix/store/a457ywa1haa0sgr9g7a1pgldrg3s798d-coreutils-8.24/bin/kill' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/a65aqp0fwqjfmssdp03ima632qjy54lc-util-linux-2.26.2/bin/login' and `/nix/store/3yim21m7ygyyymdhfijj2cchkirmixla-shadow-4.2.1/bin/login' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/a65aqp0fwqjfmssdp03ima632qjy54lc-util-linux-2.26.2/bin/nologin' and `/nix/store/3yim21m7ygyyymdhfijj2cchkirmixla-shadow-4.2.1/bin/nologin' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/a65aqp0fwqjfmssdp03ima632qjy54lc-util-linux-2.26.2/sbin/chfn' and `/nix/store/3yim21m7ygyyymdhfijj2cchkirmixla-shadow-4.2.1/sbin/chfn' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/a65aqp0fwqjfmssdp03ima632qjy54lc-util-linux-2.26.2/sbin/chsh' and `/nix/store/3yim21m7ygyyymdhfijj2cchkirmixla-shadow-4.2.1/sbin/chsh' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/a65aqp0fwqjfmssdp03ima632qjy54lc-util-linux-2.26.2/sbin/kill' and `/nix/store/m36y1jrsy31p5ikr16ff03csk5z0fdck-procps-3.3.10/sbin/kill' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/a65aqp0fwqjfmssdp03ima632qjy54lc-util-linux-2.26.2/sbin/login' and `/nix/store/3yim21m7ygyyymdhfijj2cchkirmixla-shadow-4.2.1/sbin/login' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/a65aqp0fwqjfmssdp03ima632qjy54lc-util-linux-2.26.2/sbin/nologin' and `/nix/store/3yim21m7ygyyymdhfijj2cchkirmixla-shadow-4.2.1/sbin/nologin' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/a65aqp0fwqjfmssdp03ima632qjy54lc-util-linux-2.26.2/share/man/man1/chfn.1.gz' and `/nix/store/3yim21m7ygyyymdhfijj2cchkirmixla-shadow-4.2.1/share/man/man1/chfn.1.gz' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/a65aqp0fwqjfmssdp03ima632qjy54lc-util-linux-2.26.2/share/man/man1/chsh.1.gz' and `/nix/store/3yim21m7ygyyymdhfijj2cchkirmixla-shadow-4.2.1/share/man/man1/chsh.1.gz' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/a65aqp0fwqjfmssdp03ima632qjy54lc-util-linux-2.26.2/share/man/man1/kill.1.gz' and `/nix/store/a457ywa1haa0sgr9g7a1pgldrg3s798d-coreutils-8.24/share/man/man1/kill.1.gz' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/a65aqp0fwqjfmssdp03ima632qjy54lc-util-linux-2.26.2/share/man/man1/login.1.gz' and `/nix/store/3yim21m7ygyyymdhfijj2cchkirmixla-shadow-4.2.1/share/man/man1/login.1.gz' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/a65aqp0fwqjfmssdp03ima632qjy54lc-util-linux-2.26.2/share/man/man1/su.1.gz' and `/nix/store/3yim21m7ygyyymdhfijj2cchkirmixla-shadow-4.2.1/share/man/man1/su.1.gz' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/a65aqp0fwqjfmssdp03ima632qjy54lc-util-linux-2.26.2/share/man/man8/nologin.8.gz' and `/nix/store/3yim21m7ygyyymdhfijj2cchkirmixla-shadow-4.2.1/share/man/man8/nologin.8.gz' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/z24q1gmsnlyycp3jx8zf4k71vxgnsf7q-bind-9.10.2-P3/share/man/man1/host.1.gz' and `/nix/store/xf0d2m9r5qhdy4l8vq7m9l7xgqlnmkjl-host-20000331/share/man/man1/host.1.gz' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
collision between `/nix/store/z24q1gmsnlyycp3jx8zf4k71vxgnsf7q-bind-9.10.2-P3/bin/host' and `/nix/store/xf0d2m9r5qhdy4l8vq7m9l7xgqlnmkjl-host-20000331/bin/host' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 69.
Some filenames are provided by multiple packages. If you specify more of the (directly or indirectly) it's unclear which should be chosen into the symlinked tree, so it warns you that it chooses essentially "randomly". Most people get some collisions, I think. Either you care or not.
Thanks.
There's another solution: package priorities.
e.g. use (lowPrio util-linux)
instead of plain util-linux
Isn't this something that should be fixed in nixpkgs? It sounds weird that it is ok for multiple packages to provide the same filenames. Shouldn't the solution be one of the following:
Or is there some reason why collisions are allowed?
In some cases they are different implementation of the same program (e.g. busybox symlinks).
It's true that the collisions that happen in default system packages should better get resolved on nixos/nixpkgs level and afterwards we can (again) make those same-priority collisions fatal, like it's in nix-env
.
Most helpful comment
In some cases they are different implementation of the same program (e.g. busybox symlinks).
It's true that the collisions that happen in default system packages should better get resolved on nixos/nixpkgs level and afterwards we can (again) make those same-priority collisions fatal, like it's in
nix-env
.