NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.34k stars 14.3k forks source link

Package collision between `resources` and `pcsx2` #337127

Open e-tho opened 3 months ago

e-tho commented 3 months ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. Add both pcsx2 and resources packages to your NixOS configuration
  2. Rebuild your configuration

Build log

error: builder for '/nix/store/8nz7lvdcp9qm08fbvp2xsbj3y19728kb-home-manager-path.drv' failed with exit code 2;
       last 2 log lines:
       > warning: different permissions in `/nix/store/dlq7hbd2vj27aqvqbf9kp7knm3qs65vz-pcsx2-2.1.17/bin/resources' and `/nix/store/6rq5rwjsgjr0610fpcp3bq6npbgxc40h-resources-1.5.1/bin/resources': 0555 <-> 0555 at /nix/store/b8cv67wx64j0m00f49g3qxx1yaz4hmqd-builder.pl line 103.
       > error: collision between `/nix/store/6rq5rwjsgjr0610fpcp3bq6npbgxc40h-resources-1.5.1/bin/resources' and `/nix/store/dlq7hbd2vj27aqvqbf9kp7knm3qs65vz-pcsx2-2.1.17/bin/resources'
       For full logs, run 'nix log /nix/store/8nz7lvdcp9qm08fbvp2xsbj3y19728kb-home-manager-path.drv'.
error: 1 dependencies of derivation '/nix/store/5mgwixy0awhicsm2052j9kc4fkjisfp4-home-manager-generation.drv' failed to build
error: 1 dependencies of derivation '/nix/store/h5ichm345zmbjkxbrl9sshnpnxs98b31-unit-home-manager-etho.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/nzkfzx0yv4rmlkyx33nqj9409fla86n7-system-units.drv' failed to build
error: 1 dependencies of derivation '/nix/store/0msx8clnyjrw3a5064sa056193n7nl72-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/k56c2zpq4mkm6wl02b3w707bqprqnz0z-nixos-system-nixos-24.11.20240821.c374d94.drv' failed to build

Additional context

pcsx2 produces a binary named resources that conflicts with the package of the same name, causing a file collision during the build process.

Notify maintainers

@lukas-heiligenbrunner @ewuuwe

@AndersonTorres @matteopacini

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 6.10.6, NixOS, 24.11 (Vicuna), 24.11.20240821.c374d94`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - nixpkgs: `/nix/store/j8pbrsb3nybdap3hhg9kw0ffqd4rlbx6-source`

Add a :+1: reaction to issues you find important.

Gliczy commented 3 months ago

From my testing, this only happens when both packages are installed from the home-manager module.

Bot-wxt1221 commented 2 months ago

@Gliczy This is not a problem. Use lib.lowPrio