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

qt59.qtwebkit: fix build on Darwin #48700

Merged
merged 1 commit into from Oct 20, 2018
Merged

Conversation

alyssais
Copy link
Member

Motivation for this change

Why is qtmultimedia only needed on Darwin? Why does it only fix 5.9, not 5.11? These things I do not know. What I do know is that, for some reason, this makes qt59.qtwebkit build on Darwin.

I think the reason it hasn't also fixed 5.11 might be something to do with the version of qtmultimedia, but I don't know enough about Qt or cmake to figure it out. The error when trying to build qt511.qtwebkit (with or without these changes) is:

CMake Error at Source/cmake/OptionsQt.cmake:739 (find_package):
  Could not find a package configuration file provided by "Qt5Multimedia"
  (requested version 5.2.0) with any of the following names:

    Qt5MultimediaConfig.cmake
    qt5multimedia-config.cmake

  Add the installation prefix of "Qt5Multimedia" to CMAKE_PREFIX_PATH or set
  "Qt5Multimedia_DIR" to a directory containing one of the above files.  If
  "Qt5Multimedia" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  Source/cmake/WebKitCommon.cmake:50 (include)
  CMakeLists.txt:137 (include)

-- Configuring incomplete, errors occurred!
See also "/tmp/nix-build-qtwebkit-5.212-alpha-01-26-2018.drv-0/source/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/nix-build-qtwebkit-5.212-alpha-01-26-2018.drv-0/source/build/CMakeFiles/CMakeError.log".
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 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.

Why is qtmultimedia only needed on Darwin? Why does it only fix 5.9, not
5.11? These things I do not know. What I do know is that, for some
reason, this makes qt59.qtwebkit build on Darwin.

I think the reason it hasn't also fixed 5.11 might be something to do
with the version of qtmultimedia, but I don't know enough about Qt or
cmake to figure it out. The error when trying to build qt511.qtwebkit
(with or without these changes) is:

    CMake Error at Source/cmake/OptionsQt.cmake:739 (find_package):
      Could not find a package configuration file provided by "Qt5Multimedia"
      (requested version 5.2.0) with any of the following names:

        Qt5MultimediaConfig.cmake
        qt5multimedia-config.cmake

      Add the installation prefix of "Qt5Multimedia" to CMAKE_PREFIX_PATH or set
      "Qt5Multimedia_DIR" to a directory containing one of the above files.  If
      "Qt5Multimedia" provides a separate development package or SDK, be sure it
      has been installed.
    Call Stack (most recent call first):
      Source/cmake/WebKitCommon.cmake:50 (include)
      CMakeLists.txt:137 (include)

    -- Configuring incomplete, errors occurred!
    See also "/tmp/nix-build-qtwebkit-5.212-alpha-01-26-2018.drv-0/source/build/CMakeFiles/CMakeOutput.log".
    See also "/tmp/nix-build-qtwebkit-5.212-alpha-01-26-2018.drv-0/source/build/CMakeFiles/CMakeError.log".
@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: qt59.qtwebkit

Partial log (click to expand)

copying path '/nix/store/jg7bahx77kqv06vnxpn59ifixq6wxnkh-qtsvg-5.9.3-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/l3f47qqm68xycswfndlns9ydvdj9jqvf-qtxmlpatterns-5.9.3' from 'https://cache.nixos.org'...
copying path '/nix/store/1qi2h09xypwcdalx418hp52lb851z8qv-qtlocation-5.9.3' from 'https://cache.nixos.org'...
copying path '/nix/store/hh1c9pp4yak5cfjq0r8bqb86zwa19q28-qtmultimedia-5.9.3' from 'https://cache.nixos.org'...
copying path '/nix/store/n925d9an8m1x6g2875mxlj79m5vrgpyh-qtdeclarative-5.9.3-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/5gipdn8gclxwpmbxwiygvbfapm5257s9-qtmultimedia-5.9.3-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/l0jlxazsfsgc3pdrxvnm8jak4ml9jhnb-qtsensors-5.9.3-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/p71yyj190bb271g8bfkp0as5kzkd1q13-qtlocation-5.9.3-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/n7vv1jyybr318f67pbv5pa8zsv6r0chn-qtwebkit-5.9.1' from 'https://cache.nixos.org'...
/nix/store/n7vv1jyybr318f67pbv5pa8zsv6r0chn-qtwebkit-5.9.1

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: qt59.qtwebkit

Partial log (click to expand)

copying path '/nix/store/kmp4d76783x783gdk3xm3p6j9rxr43wn-qtmultimedia-5.9.3' from 'https://cache.nixos.org'...
copying path '/nix/store/axpnj7yyy6b5kdyzay0daixgq5cyr1bm-qtsvg-5.9.3' from 'https://cache.nixos.org'...
copying path '/nix/store/l8wxrpq234ya3lnk4kmrwmam4bqikfx3-qtxmlpatterns-5.9.3' from 'https://cache.nixos.org'...
copying path '/nix/store/l0h7lagrgcbmna3svhih7mqmc85i6jk8-qtsvg-5.9.3-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/0kw0m18rbfhx3s0al7fjrvhzvn0zwc6d-qtdeclarative-5.9.3-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/izis0i8pwvm6ig0qw51pxbmv1bk6rapd-qtmultimedia-5.9.3-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/h5m0d23qjrklw4cv17hqj316h8ykr5pq-qtsensors-5.9.3-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/1dfy8j64zckqa39vp1z14jcghcy93b0n-qtlocation-5.9.3-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/f30h9ishsf5lqkrrlfa3qlgjfcmclif5-qtwebkit-5.9.1' from 'https://cache.nixos.org'...
/nix/store/f30h9ishsf5lqkrrlfa3qlgjfcmclif5-qtwebkit-5.9.1

@ttuegel ttuegel merged commit 4313089 into NixOS:master Oct 20, 2018
@ttuegel
Copy link
Member

ttuegel commented Oct 20, 2018

Thanks!

@alyssais alyssais deleted the qtwebkit-darwin branch November 2, 2018 11:22
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

3 participants