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: 5.11.0 -> 5.11.1 #42351

Merged
merged 1 commit into from Jul 5, 2018
Merged

Conversation

averelld
Copy link
Contributor

@averelld averelld commented Jun 21, 2018

Motivation for this change

This may be needed to unbreak a couple of builds such as nextcloud clients or rstudio (alternatively they would have to downgrade to 5.9 individually if that is even possible): https://codereview.qt-project.org/#/c/232367/

Things done

I only ran the update script and rebased the patches for the sub modules, but maybe there are more steps involved I'm not aware of.

  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • 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 nox --run "nox-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)
  • Fits CONTRIBUTING.md.

@xeji
Copy link
Contributor

xeji commented Jun 24, 2018

Please rebase this PR on the staging branch since it causes a large number of rebuilds.

@@ -23,15 +23,15 @@ let
in
qtModule {
name = "qtwebkit";
qtInputs = [ qtbase qtdeclarative qtlocation qtsensors ] ++ optionals (lib.versionAtLeast qtbase.version "5.11.0") [ qtwebchannel ];
qtInputs = [ qtbase qtdeclarative qtlocation qtsensors ] ++ optionals (lib.versionAtLeast qtbase.version "5.11.1") [ qtwebchannel ];
Copy link
Contributor

Choose a reason for hiding this comment

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

You don't need to modify these lines, it should still work, since 5.11.1 > 5.11.0.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops. I thought I had build errors before, but apparently that was unrelated. Reverted and rebased.

@xeji
Copy link
Contributor

xeji commented Jun 25, 2018

@GrahamcOfBorg build qt511.qtbase

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: qt511.qtbase

Partial log (click to expand)

Removing empty /nix/store/rikx45wan2gqq5r3crnnigp4bprf6p5w-qtbase-5.11.1/bin/ and (possibly) its parents
Moving /nix/store/bicax3za35i1swvqjbbzydzg5jwcl4nf-qtbase-5.11.1-bin/bin/uic to /nix/store/8cn9r3kgswxj03bz3hwfj4dwi61l3mwr-qtbase-5.11.1-dev/bin/uic
rmdir: failed to remove '/nix/store/bicax3za35i1swvqjbbzydzg5jwcl4nf-qtbase-5.11.1-bin/bin': Directory not empty
updateToolPath: Updating `/nix/store/bicax3za35i1swvqjbbzydzg5jwcl4nf-qtbase-5.11.1-bin/bin/moc' in `/nix/store/8cn9r3kgswxj03bz3hwfj4dwi61l3mwr-qtbase-5.11.1-dev/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake\'...
updateToolPath: Updating `/nix/store/bicax3za35i1swvqjbbzydzg5jwcl4nf-qtbase-5.11.1-bin/bin/qmake' in `/nix/store/8cn9r3kgswxj03bz3hwfj4dwi61l3mwr-qtbase-5.11.1-dev/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake\'...
updateToolPath: Updating `/nix/store/bicax3za35i1swvqjbbzydzg5jwcl4nf-qtbase-5.11.1-bin/bin/rcc' in `/nix/store/8cn9r3kgswxj03bz3hwfj4dwi61l3mwr-qtbase-5.11.1-dev/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake\'...
updateToolPath: Updating `/nix/store/bicax3za35i1swvqjbbzydzg5jwcl4nf-qtbase-5.11.1-bin/bin/uic' in `/nix/store/8cn9r3kgswxj03bz3hwfj4dwi61l3mwr-qtbase-5.11.1-dev/lib/cmake/Qt5Widgets/Qt5WidgetsConfigExtras.cmake\'...
Moving /nix/store/bicax3za35i1swvqjbbzydzg5jwcl4nf-qtbase-5.11.1-bin/bin to /nix/store/8cn9r3kgswxj03bz3hwfj4dwi61l3mwr-qtbase-5.11.1-dev/bin
rmdir: failed to remove '/nix/store/bicax3za35i1swvqjbbzydzg5jwcl4nf-qtbase-5.11.1-bin': Directory not empty
/nix/store/bicax3za35i1swvqjbbzydzg5jwcl4nf-qtbase-5.11.1-bin

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: qt511.qtbase

Partial log (click to expand)

cannot build derivation '/nix/store/9b89lfczxq7407pmsw2sq1kjf0cmw4gd-apple-framework-AGL.drv': 5 dependencies couldn't be built
cannot build derivation '/nix/store/l7zlhkmqpyfna7jf4yqrvp20vha4ki84-apple-framework-AudioUnit.drv': 6 dependencies couldn't be built
cannot build derivation '/nix/store/slbmq08jxwwjc3qbf05z4mrwjfbm5wsq-cairo-1.15.12.drv': 20 dependencies couldn't be built
cannot build derivation '/nix/store/gq5kyjyf6xq0vwwdljdqpg32mxbxv0n1-apple-framework-AudioToolbox.drv': 7 dependencies couldn't be built
cannot build derivation '/nix/store/hsrgp18lcfnqyrnrpn91gcqrk2k0syyf-harfbuzz-1.8.0.drv': 8 dependencies couldn't be built
cannot build derivation '/nix/store/fs5g4xzxfhhjz99mp6bnsj7grpz3zlgi-apple-framework-AppKit.drv': 6 dependencies couldn't be built
cannot build derivation '/nix/store/5805vzc584677b8sfi412rvsp6sp3ap9-harfbuzz-icu-1.8.0.drv': 10 dependencies couldn't be built
cannot build derivation '/nix/store/rxfbs80qc7riqhaw6xzyabr50wgkkdqv-apple-framework-Cocoa.drv': 4 dependencies couldn't be built
cannot build derivation '/nix/store/9y94xbpcar30awrbr28h7mvcyf766qpw-qtbase-5.11.1.drv': 43 dependencies couldn't be built
�[31;1merror:�[0m build of '/nix/store/9y94xbpcar30awrbr28h7mvcyf766qpw-qtbase-5.11.1.drv' failed

@xeji
Copy link
Contributor

xeji commented Jun 25, 2018

@GrahamcOfBorg build qt511.qmake qt511.qttools

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: qt511.qmake, qt511.qttools

Partial log (click to expand)

fixQtModulePaths: Fixing module paths in `/nix/store/68wpm5zf5a53naxc4bl935pzjgjbh739-qttools-5.11.1-dev/mkspecs/modules/qt_lib_designer.pri'...
fixQtModulePaths: Fixing module paths in `/nix/store/68wpm5zf5a53naxc4bl935pzjgjbh739-qttools-5.11.1-dev/mkspecs/modules/qt_lib_uitools_private.pri'...
fixQtModulePaths: Fixing module paths in `/nix/store/68wpm5zf5a53naxc4bl935pzjgjbh739-qttools-5.11.1-dev/mkspecs/modules/qt_lib_designercomponents_private.pri'...
fixQtModulePaths: Fixing module paths in `/nix/store/68wpm5zf5a53naxc4bl935pzjgjbh739-qttools-5.11.1-dev/mkspecs/modules/qt_lib_help_private.pri'...
fixQtModulePaths: Fixing module paths in `/nix/store/68wpm5zf5a53naxc4bl935pzjgjbh739-qttools-5.11.1-dev/mkspecs/modules/qt_lib_help.pri'...
fixQtModulePaths: Fixing module paths in `/nix/store/68wpm5zf5a53naxc4bl935pzjgjbh739-qttools-5.11.1-dev/mkspecs/modules/qt_lib_uitools.pri'...
fixQtModulePaths: Fixing module paths in `/nix/store/68wpm5zf5a53naxc4bl935pzjgjbh739-qttools-5.11.1-dev/mkspecs/modules/qt_lib_uiplugin.pri'...
postPatchMkspecs
/nix/store/gwxsr6a86whpblzbw74fbvc4q885kv9p-hook
/nix/store/h2y6ab2dh802q5kqx1n8n6f0a48p64f4-qttools-5.11.1

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: qt511.qmake, qt511.qttools

Partial log (click to expand)

cannot build derivation '/nix/store/slbmq08jxwwjc3qbf05z4mrwjfbm5wsq-cairo-1.15.12.drv': 20 dependencies couldn't be built
cannot build derivation '/nix/store/gq5kyjyf6xq0vwwdljdqpg32mxbxv0n1-apple-framework-AudioToolbox.drv': 7 dependencies couldn't be built
cannot build derivation '/nix/store/hsrgp18lcfnqyrnrpn91gcqrk2k0syyf-harfbuzz-1.8.0.drv': 8 dependencies couldn't be built
cannot build derivation '/nix/store/fs5g4xzxfhhjz99mp6bnsj7grpz3zlgi-apple-framework-AppKit.drv': 6 dependencies couldn't be built
cannot build derivation '/nix/store/5805vzc584677b8sfi412rvsp6sp3ap9-harfbuzz-icu-1.8.0.drv': 10 dependencies couldn't be built
cannot build derivation '/nix/store/rxfbs80qc7riqhaw6xzyabr50wgkkdqv-apple-framework-Cocoa.drv': 4 dependencies couldn't be built
cannot build derivation '/nix/store/9y94xbpcar30awrbr28h7mvcyf766qpw-qtbase-5.11.1.drv': 43 dependencies couldn't be built
cannot build derivation '/nix/store/pmksnpjc7j7s2267mj8bi3h2z7vsp29r-hook.drv': 3 dependencies couldn't be built
cannot build derivation '/nix/store/xwxg3mw05qv0gqgf8hz2s4qvdjs0z2ml-qttools-5.11.1.drv': 6 dependencies couldn't be built
�[31;1merror:�[0m build of '/nix/store/pmksnpjc7j7s2267mj8bi3h2z7vsp29r-hook.drv', '/nix/store/xwxg3mw05qv0gqgf8hz2s4qvdjs0z2ml-qttools-5.11.1.drv' failed

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: qt511.qtbase

Partial log (click to expand)

shrinking /nix/store/4lb9ngfsmyn63khqi15nqlnprz6aiqn7-gdk-pixbuf-2.36.12-installedTests/libexec/installed-tests/gdk-pixbuf/cve-2015-4491
shrinking /nix/store/4lb9ngfsmyn63khqi15nqlnprz6aiqn7-gdk-pixbuf-2.36.12-installedTests/libexec/installed-tests/gdk-pixbuf/animation
strip is /nix/store/0pjsgkxz0rp5baycq5sp2s72lrr5q9sg-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/4lb9ngfsmyn63khqi15nqlnprz6aiqn7-gdk-pixbuf-2.36.12-installedTests/libexec
patching script interpreter paths in /nix/store/4lb9ngfsmyn63khqi15nqlnprz6aiqn7-gdk-pixbuf-2.36.12-installedTests
/nix/store/gpy3r9ss5ngfkib8ylx7jzgahq7m0x5b-patch-shebangs.sh: line 22: warning: command substitution: ignored null byte in input
checking for references to /build in /nix/store/4lb9ngfsmyn63khqi15nqlnprz6aiqn7-gdk-pixbuf-2.36.12-installedTests...
cannot build derivation '/nix/store/r2qfgqqmq4jjf44n6i8m8fcd34rpzbq5-gtk+3-3.22.30.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/w40hr6l9lwbdwf3ay2rshz4nkmc34nks-qtbase-5.11.1.drv': 2 dependencies couldn't be built
error: build of '/nix/store/w40hr6l9lwbdwf3ay2rshz4nkmc34nks-qtbase-5.11.1.drv' failed

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: qt511.qmake, qt511.qttools

Partial log (click to expand)

fixQtModulePaths: Fixing module paths in `/nix/store/733hix5qkdpqhzb7rf3xadvgrbiviqk3-qttools-5.11.1-dev/mkspecs/modules/qt_lib_designer_private.pri'...
fixQtModulePaths: Fixing module paths in `/nix/store/733hix5qkdpqhzb7rf3xadvgrbiviqk3-qttools-5.11.1-dev/mkspecs/modules/qt_lib_designer.pri'...
fixQtModulePaths: Fixing module paths in `/nix/store/733hix5qkdpqhzb7rf3xadvgrbiviqk3-qttools-5.11.1-dev/mkspecs/modules/qt_lib_uitools_private.pri'...
fixQtModulePaths: Fixing module paths in `/nix/store/733hix5qkdpqhzb7rf3xadvgrbiviqk3-qttools-5.11.1-dev/mkspecs/modules/qt_lib_uitools.pri'...
fixQtModulePaths: Fixing module paths in `/nix/store/733hix5qkdpqhzb7rf3xadvgrbiviqk3-qttools-5.11.1-dev/mkspecs/modules/qt_lib_uiplugin.pri'...
fixQtModulePaths: Fixing module paths in `/nix/store/733hix5qkdpqhzb7rf3xadvgrbiviqk3-qttools-5.11.1-dev/mkspecs/modules/qt_lib_help_private.pri'...
fixQtModulePaths: Fixing module paths in `/nix/store/733hix5qkdpqhzb7rf3xadvgrbiviqk3-qttools-5.11.1-dev/mkspecs/modules/qt_lib_help.pri'...
postPatchMkspecs
/nix/store/kpqr9l574d6qn5zd36hc6xh2sxy6vmk3-hook
/nix/store/96812fjlpyhllagqg0p18w7569n3cq2f-qttools-5.11.1

@jgillich
Copy link
Member

The upgrade to Qt 5.11 caused a lot of breakage due to the removal of qt5_use_modules. Maybe we can make an exception here, because the alternative would also require a lot of rebuilds? I'd rather not have a broken system while waiting for a staging merge.

@orivej
Copy link
Contributor

orivej commented Jul 5, 2018

I'm going to merge this into master because this is not extremely large (rebuild-amount says 154 darwin, 963 linux) and quite beneficial for cmake-based Qt projects.

@orivej
Copy link
Contributor

orivej commented Jul 5, 2018

Hydra has already successfully built sqlitebrowser, qsynth, photoqt, etc.: https://hydra.nixos.org/eval/1467339

@averelld averelld deleted the qt5-minor-upgrade branch July 6, 2018 14:36
samueldr added a commit to samueldr/nixpkgs that referenced this pull request Jul 27, 2018
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

7 participants