Skip to content

qt 5.12.0 -> 5.12.3 WIP - #60119

Closed
vandenoever wants to merge 1 commit into
NixOS:stagingfrom
vandenoever:qt
Closed

vandenoever wants to merge 1 commit into
NixOS:stagingfrom
vandenoever:qt

Conversation

@vandenoever

@vandenoever vandenoever commented Apr 23, 2019 •

Copy link
Copy Markdown
Contributor
Motivation for this change

Qt 5.12 has received 3 bugfix releases since 5.12.0. However updating it has proven non-trivial. This PR is a WIP.

Things done
  • 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 nix-review --run "nix-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)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@vandenoever
vandenoever requested a review from ttuegel as a code owner April 23, 2019 19:15
@vandenoever

Copy link
Copy Markdown
Contributor Author

See also #57042

@ofborg ofborg Bot added the 6.topic: qt/kde Object-oriented framework for GUI creation label Apr 23, 2019
@ofborg
ofborg Bot requested review from periklis and qknight April 23, 2019 19:28
@ofborg ofborg Bot added 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 1001-2500 This PR causes many rebuilds on Linux and should target the staging branches. labels Apr 23, 2019
@ttuegel

ttuegel commented Apr 27, 2019

Copy link
Copy Markdown
Member

Does the configure script produce a log file, so we could see what compilation tests it's doing?

@vandenoever

vandenoever commented Apr 27, 2019 •

Copy link
Copy Markdown
Contributor Author

Yes there was.

config.log

The first FAILED is about not finding zlib:

None of [libz.so libz.a] found in [] and global paths.

@vandenoever vandenoever mentioned this pull request May 3, 2019
1 of 9 tasks
@ofborg ofborg Bot added 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. and removed 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. labels May 5, 2019
@vandenoever

Copy link
Copy Markdown
Contributor Author

qtbase compiles in the latest version of this patch.

@vandenoever

Copy link
Copy Markdown
Contributor Author

The current patch compiles, but does not work with X11: a KDE system with it does not start the graphical login sddm.

This is the configuration report of Qt 5.12.0 next to that of Qt 5.12.3:

Qt Gui:                                                         Qt Gui:
  Accessibility .......................... yes                    Accessibility .......................... yes
  FreeType ............................... yes                    FreeType ............................... yes
    Using system FreeType ................ yes                      Using system FreeType ................ yes
  HarfBuzz ............................... yes                    HarfBuzz ............................... yes
    Using system HarfBuzz ................ yes                      Using system HarfBuzz ................ yes
  Fontconfig ............................. yes                    Fontconfig ............................. yes
  Image formats:                                                  Image formats:
    GIF .................................. yes                      GIF .................................. yes
    ICO .................................. yes                      ICO .................................. yes
    JPEG ................................. yes                      JPEG ................................. yes
      Using system libjpeg ............... yes                        Using system libjpeg ............... yes
    PNG .................................. yes                      PNG .................................. yes
      Using system libpng ................ yes                        Using system libpng ................ yes
  EGL .................................... yes                    EGL .................................... yes
  OpenVG ................................. no                     OpenVG ................................. no
  OpenGL:                                                         OpenGL:
    Desktop OpenGL ....................... yes                      Desktop OpenGL ....................... yes
    OpenGL ES 2.0 ........................ no                       OpenGL ES 2.0 ........................ no
    OpenGL ES 3.0 ........................ no                       OpenGL ES 3.0 ........................ no
    OpenGL ES 3.1 ........................ no                       OpenGL ES 3.1 ........................ no
    OpenGL ES 3.2 ........................ no                       OpenGL ES 3.2 ........................ no
  Vulkan ................................. no                     Vulkan ................................. no
  Session Management ..................... yes                    Session Management ..................... yes
Features used by QPA backends:                                  Features used by QPA backends:
  evdev .................................. yes                    evdev .................................. yes
  libinput ............................... yes                    libinput ............................... yes
  INTEGRITY HID .......................... no                     INTEGRITY HID .......................... no
  mtdev .................................. no                     mtdev .................................. no
  tslib .................................. no                     tslib .................................. no
  xkbcommon-evdev ........................ yes                |   xkbcommon .............................. yes
                                                              >   X11 specific:
                                                              >     XLib ................................. no
                                                              >     XCB Xlib ............................. no
                                                              >     EGL on X11 ........................... no
QPA backends:                                                   QPA backends:
  DirectFB ............................... no                     DirectFB ............................... no
  EGLFS .................................. no                     EGLFS .................................. no
  LinuxFB ................................ no                     LinuxFB ................................ no
  VNC .................................... yes                    VNC .................................... yes
  Mir client ............................. no                     Mir client ............................. no
  X11:                                                        |   XCB:
    Using system-provided XCB libraries .. yes                      Using system-provided XCB libraries .. yes
    EGL on X11 ........................... yes                <
    XCB XKB .............................. yes                      XCB XKB .............................. yes
    XLib ................................. yes                <
    XCB render ........................... yes                <
    XCB GLX .............................. yes                <
    XCB XInput ........................... yes                      XCB XInput ........................... yes
    XCB Xlib ............................. yes                |     Native painting (experimental) ....... no
    Using system-provided xkbcommon ...... yes                |     GL integrations:
    Native painting (experimental) ....... yes                |       GLX Plugin ......................... no
                                                              >       EGL-X11 Plugin ..................... no

The GLX Plugin and EGL-X11 Plugin are missing, as is the XLib detection.

@vandenoever

Copy link
Copy Markdown
Contributor Author

The current version of the patch detects X properly. All the features detected in Qt 5.12.0 are also detected in Qt 5.12.3.

Testing will be done once the patched version and KDE software has compiled.

@vandenoever

Copy link
Copy Markdown
Contributor Author

I'm running my desktop now with Qt 5.12.3 (this patch) and the latest KDE software on NixOS 19.03.

Everything works except the global KWin shortcuts (Alt-Tab, Ctrl-F1 etc). Other global shortcut like Alt-Space / Alt-F2, Meta-P still work. I'm not sure this is related to this patch.

@vandenoever

Copy link
Copy Markdown
Contributor Author

After rebooting the machine the global kwin shortcuts work again. In fact, the bug that I hoped would be fixed by upgrading from Qt 5.12.0 to Qt 5.12.3 is gone. https://bugs.kde.org/show_bug.cgi?id=406829

@dtzWill

dtzWill commented May 7, 2019 via email

Copy link
Copy Markdown
Member

Comment thread pkgs/top-level/all-packages.nix Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should be under qt512 in order for qtbase to pass configurePhase.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed!

@eadwu

eadwu commented May 27, 2019

Copy link
Copy Markdown
Member

Builds fine in sandbox on x86_64. Everything I use looks more or less the same with the upgrade while what was broken with 5.12.0 is still broken for me.

@vandenoever

Copy link
Copy Markdown
Contributor Author

In the meantime qt 5.12.4 has been released.

@dtzWill

dtzWill commented Jun 20, 2019

Copy link
Copy Markdown
Member

5.12.4 seems close to 5.12.3, but I'm having trouble "sanely" forward-porting the qtbase-related patches-- mostly I'm at the point of essentially rewriting them from scratch (so that I understand the pieces, how they've changed, and how we may want them to work in NixOS-land). Unfortunately I am not up to this task for the coming weeks (months) most likely, but maybe others find better success with the changes (this is where my hope lies :)). I don't think it's too hairy, but may require better quickfix-fu or some degree of deep-diving. It's possible 5.12.4 moves things more towards our preferred situation... that I can't tell is why I'm writing this comment and calling it quits for a bit O:).

@dtzWill

dtzWill commented Jun 20, 2019

Copy link
Copy Markdown
Member

I'm not sure we would be able to move to it piecemeal, but notably qt 5.12.4 supports openssl 1.1 which might motivate sorting these things out eventually :).

@ttuegel ttuegel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks good to me! We can worry about Qt 5.12.4 later. I'm not going to "approve" because this should go into staging; @vandenoever would you mind opening a new pull request? Sorry 🙁

This was referenced Jul 10, 2019
@FRidh
FRidh changed the base branch from master to staging July 11, 2019 07:38
@FRidh

FRidh commented Jul 11, 2019

Copy link
Copy Markdown
Member

Closing in favor of #64598

@FRidh FRidh closed this Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: qt/kde Object-oriented framework for GUI creation 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 1001-2500 This PR causes many rebuilds on Linux and should target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants