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

Can't start review shell with multiple qt versions #181

Open
SuperSandro2000 opened this issue Mar 6, 2021 · 5 comments
Open

Can't start review shell with multiple qt versions #181

SuperSandro2000 opened this issue Mar 6, 2021 · 5 comments

Comments

@SuperSandro2000
Copy link
Collaborator

When a review shell contains multiple version of libsForQt5 it just closes with an error:

$ nixpkgs-review pr 115224

...

Link to currently reviewing PR:
https://github.com/NixOS/nixpkgs/pull/115224

1 package failed to build:
libsForQt512.ark

3 packages built:
libsForQt5.ark libsForQt514.ark lrzip

$ nix-shell /home/user/.cache/nixpkgs-review/pr-115224/shell.nix
Error: detected mismatched Qt dependencies:
    /nix/store/8bv9fs6950liy3k0jmp3hxd94zzlvm7b-qtbase-5.14.2-dev
    /nix/store/gaxaq0x9iinh0a3qi0nvbvzqxl8k8chn-qtbase-5.15.2-dev
$ git worktree prune
$
@Mic92
Copy link
Owner

Mic92 commented Mar 6, 2021

Is this caused by shell hooks?

@SuperSandro2000
Copy link
Collaborator Author

I don't think so. I think the problem is that the buildenv is combining multiple qt versions which is not allowed.

@Mic92
Copy link
Owner

Mic92 commented Mar 6, 2021

buildenv should be not used for 4 packages.

@SuperSandro2000
Copy link
Collaborator Author

Apparently it does not matter if buildenv is used.

$ nix-shell -p libsForQt5."ark" -p libsForQt514."ark"
Error: detected mismatched Qt dependencies:
    /nix/store/8bv9fs6950liy3k0jmp3hxd94zzlvm7b-qtbase-5.14.2-dev
    /nix/store/gaxaq0x9iinh0a3qi0nvbvzqxl8k8chn-qtbase-5.15.2-dev
$ nix-shell shell.nix                                                                                                                                                                      Error: detected mismatched Qt dependencies:
    /nix/store/8bv9fs6950liy3k0jmp3hxd94zzlvm7b-qtbase-5.14.2-dev
    /nix/store/gaxaq0x9iinh0a3qi0nvbvzqxl8k8chn-qtbase-5.15.2-dev

$ cat shell.nix
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
let
  paths = [
        libsForQt5."ark"
        libsForQt514."ark"
        lrzip
  ];
  env = buildEnv {
    name = "env";
    inherit paths;
    ignoreCollisions = true;
  };
in stdenv.mkDerivation rec {
  name = "review-shell";
  buildInputs = paths;
  unpackPhase = ":";
  installPhase = "touch $out";
}

@oxalica
Copy link

oxalica commented Dec 27, 2024

I encountered this when testing NixOS/nixpkgs#368474 via nixpkgs-review rev fix/partition-manager-drop-reiserfs.
It affects two partitionmanager drvs, with Qt 5 and Qt 6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants