Skip to content

Reduce closure size of Qt applications - #69426

Merged
ttuegel merged 10 commits into
NixOS:stagingfrom
ttuegel:closure-size/qt
Sep 26, 2019
Merged

ttuegel merged 10 commits into
NixOS:stagingfrom
ttuegel:closure-size/qt

Conversation

@ttuegel

@ttuegel ttuegel commented Sep 25, 2019 •

Copy link
Copy Markdown
Member
Motivation for this change

Fixes: #69272

This removes all the -dev outputs from the runtime closure of Qt applications that I found by looking at the closure of the graphical installer ISO. There may yet be others, but I think this is enough to remove the blocker once backported to NixOS 19.09.

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)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

CC: @lovek323 (SDL), @7c6f434c (spandsp), @yegortimoshenko (ibus)

@ttuegel ttuegel added 6.topic: qt/kde Object-oriented framework for GUI creation 6.topic: closure size The final size of a derivation, including its dependencies labels Sep 25, 2019
@ttuegel ttuegel added this to the 19.09 milestone Sep 25, 2019
@ttuegel ttuegel removed this from the 19.09 milestone Sep 25, 2019
@veprbl

veprbl commented Sep 25, 2019

Copy link
Copy Markdown
Member

@GrahamcOfBorg eval

@ofborg
ofborg Bot requested review from 7c6f434c, lovek323 and lukateras September 26, 2019 00:02
@ofborg ofborg Bot added 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. labels Sep 26, 2019
@ttuegel
ttuegel merged commit 02eec3e into NixOS:staging Sep 26, 2019
@jonringer

Copy link
Copy Markdown
Contributor

there's quite a few like this:

builder for '/nix/store/dn35q0hd08zrjvzkz25zmb958ia332lb-libkscreen-5.16.5.drv' failed with exit code 1; last 10 log lines:
    with requested version "5.12.0".

    The following configuration files were considered but not accepted:

      /nix/store/vwsj5vlvkf00laiqfy0yg5wxkx2xdm40-qtbase-5.11.3-dev/lib/cmake/Qt5/Qt5Config.cmake, version: 5.11.3



  -- Configuring incomplete, errors occurred!
  See also "/build/libkscreen-5.16.5/build/CMakeFiles/CMakeOutput.log".

@ttuegel

ttuegel commented Sep 26, 2019

Copy link
Copy Markdown
Member Author

@jonringer Where do you see that? Qt 5.11 should not even exist in staging.

@jonringer

Copy link
Copy Markdown
Contributor

it was while doing a nix-review....

however i did nix-build -A plasma5.libkscreen on staging, and it seems to be building fine. Disregard :)

nix-review might not play nicely with other branches than master :/

dtzWill pushed a commit to dtzWill/nixpkgs that referenced this pull request Sep 30, 2019
Reduce closure size of Qt applications

(cherry picked from commit 02eec3e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: closure size The final size of a derivation, including its dependencies 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.

3 participants