Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nix-env silently collides propagated-user-env-packages #30775

Open
cleverca22 opened this issue Oct 24, 2017 · 6 comments
Open

nix-env silently collides propagated-user-env-packages #30775

cleverca22 opened this issue Oct 24, 2017 · 6 comments
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md

Comments

@cleverca22
Copy link
Contributor

collisions that occur while trying to obey nix-support/propagated-user-env-packages are silently ignored

as an example:

[clever@laptop:~]$ cat /nix/store/xi66kayy945y4ycc6fim4bffap935d6x-wpa_gui-2.6/nix-support/propagated-user-env-packages 
 /nix/store/fhsiyhrssrzwdhx2dgy1ghadpmwq0lks-qtbase-5.9.0-bin
[clever@laptop:~]$ cat /nix/store/k60z1dnzw2vrp6hv3y79bbzd8w1zv218-wireshark-qt-2.4.1/nix-support/propagated-user-env-packages
/nix/store/w24yh0wxh1s4d8bq7qkgd65fmv4zmlbq-qtbase-5.9.1-bin ...

wpa-gui depends on 5.9.0
wireshark depends on 5.9.1

[clever@laptop:~]$ nix-store -qR .nix-profile | grep qt

[clever@laptop:~]$ 

nothing in my profile depends on anything QT related

[clever@laptop:~]$ nix-env -i /nix/store/xi66kayy945y4ycc6fim4bffap935d6x-wpa_gui-2.6
installing ‘wpa_gui-2.6’
[clever@laptop:~]$ ls -l .nix-profile/lib/qt-5.9
lrwxrwxrwx 1 root root 71 Dec 31  1969 .nix-profile/lib/qt-5.9 -> /nix/store/fhsiyhrssrzwdhx2dgy1ghadpmwq0lks-qtbase-5.9.0-bin/lib/qt-5.9

the 5.9.0 libraries are now in my profile

[clever@laptop:~]$ nix-env -i /nix/store/k60z1dnzw2vrp6hv3y79bbzd8w1zv218-wireshark-qt-2.4.1
installing ‘wireshark-qt-2.4.1’
[clever@laptop:~]$ ls -l .nix-profile/lib/qt-5.9
total 17
dr-xr-xr-x 11 root root 16 Dec 31  1969 plugins
[clever@laptop:~]$ ls -l .nix-profile/lib/qt-5.9/plugins/platforms/
total 2
lrwxrwxrwx 1 root root 104 Dec 31  1969 libqminimal.so -> /nix/store/fhsiyhrssrzwdhx2dgy1ghadpmwq0lks-qtbase-5.9.0-bin/lib/qt-5.9/plugins/platforms/libqminimal.so

the 5.9.0 libraries are still in my profile

[clever@laptop:~]$ wireshark 
Cannot mix incompatible Qt library (version 0x50900) with this library (version 0x50901)

and they break wireshark

[clever@laptop:~]$ nix-env -e wpa_gui
uninstalling ‘wpa_gui-2.6’
building path(s) ‘/nix/store/dxns08cqfyacwm5dahhzyb97f0kz9ggb-user-environment’
created 514 symlinks in user environment

[clever@laptop:~]$ wireshark 

removing wpa_gui restores the ability to run wireshark

@ghost
Copy link

ghost commented Jan 31, 2018

This explodes my plasmashell. :P :(

Fixed by removing things depending on another qt version from the user env, as advised. Not a very nice fix.

@dtzWill
Copy link
Member

dtzWill commented Feb 2, 2018

Is this a nix (nix-env) bug?
Should this result in an error? (assuming no simple way resolve conflict such that both work?)

@ghost
Copy link

ghost commented Feb 2, 2018

Presumably the fix would be fixing/isolating qt version more granularly if I recall what clever said correctly. In my case the collision was between 5.9.1 and 5.9.2, both residing in the same qt-5.9 directory. No doubt he will have better info.

@dtzWill
Copy link
Member

dtzWill commented Feb 2, 2018

While improving/changing the handling of qt deps solves the immediate concern, if I'm understanding correctly there is still the issue of conflicts in propagated-user-env-packages being silently ignored.

As my questions above hint, I think this is a bug and attempts to install packages with such conflicts should be an error. Especially if the result is (likely) broken anyway.

@ghost
Copy link

ghost commented Feb 2, 2018

Ah you're right, my mind was elsewhere and missed the point. :)

@stale
Copy link

stale bot commented Jun 5, 2020

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
Projects
None yet
Development

No branches or pull requests

2 participants