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

qt5: Add the ability to optionally use NSS 3.44 #94101

Closed
wants to merge 1 commit into from

Conversation

emmanuelrosa
Copy link
Contributor

This is to address Qt programs which do not work with NSS 3.54.

See #94046

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@ttuegel
Copy link
Member

ttuegel commented Jul 28, 2020

In what way is this optional?

@emmanuelrosa
Copy link
Contributor Author

Oh, I should have worded that differently. What I meant was that the current nss would continue to be used unless it's set to a different version.

In other words, this doesn't change the nss version for all Qt programs but rather makes it possible to change it for programs which fail with the current version.

@dotlambda
Copy link
Member

dotlambda commented Jul 29, 2020

cc @ajs124 @rnhmjoj
also see #93955

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was able to use this to make qutebrowser work again 👍
I have only one question about the code: Did it previously run with nss 3.52 or with nss 3.44? I don't think we should downgrade further than needed to make it work.
And the commit message can be improved as already discussed above. I would suggest "qt5.qwebengine: use nss_3_44".

@rnhmjoj
Copy link
Contributor

rnhmjoj commented Jul 29, 2020

I'm ok with this solution as a quick workaround but it would be better to figure out why webengine can't handle nss >3.44.
I couldn't find a QTBUG, so maybe it's a problem in Nixpkgs...

EDIT. Actually, it could simply be our Qt version is too old for this nss version, right? I should checkout @petabyteboy's PR for Qt 5.14

@ghost
Copy link

ghost commented Jul 29, 2020

I think it might be a problem in nixpkgs, because QtWebEngine 5.15.0 with nss 3.54 doesn't work either, so it's not our Qt version that's too old. This version combination is advertised as a dependency here (tho that's not an official Qt page) and used by other distributions such as Arch Linux as well.

Anyways this is kind of urgent because it will probably not be caught by tests so users of the nixos-unstable and nixos-unstable-small channels will receive a broken update.

@emmanuelrosa
Copy link
Contributor Author

In the forced push I simply changed the commit message.

@billksun
Copy link
Contributor

#94188 seems to be the proper fix for this issue.

@vcunat
Copy link
Member

vcunat commented Jul 30, 2020

I don't think this should be needed anymore.

@vcunat vcunat closed this Jul 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants