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

webkitgtk: Fix webkitgtk for macOS #33307

Closed
wants to merge 3 commits into from

Conversation

hamishmack
Copy link
Contributor

Motivation for this change

The latest webkitgtk in nixpkgs does not currently build on macOS. This fixes thew build and webkitgtk seems to work correctly on macOS.

I have included PR #33304 (fixes geoclue2 on macOS) in this PR as it is also needed for this to work (since webkitgtk uses geoclue2).

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-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/)
  • Fits CONTRIBUTING.md.

@Mic92
Copy link
Member

Mic92 commented Jan 2, 2018

@GrahamcOfBorg build webkitgtk

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Failure for system: x86_64-darwin

#if !__BIG_ENDIAN__ && !__LITTLE_ENDIAN__
     ^
/nix/store/ib67r0hzmdfyv0q68y3z632xpd2pd9a5-CF-osx-10.10.5-private/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:39:5: warning: '__BIG_ENDIAN__' is not defined, evaluates to 0 [-Wundef]
#if __BIG_ENDIAN__ && __LITTLE_ENDIAN__
    ^
/nix/store/ib67r0hzmdfyv0q68y3z632xpd2pd9a5-CF-osx-10.10.5-private/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:363:5: warning: '__LLP64__' is not defined, evaluates to 0 [-Wundef]
#if __LLP64__
    ^
building of ‘/nix/store/m7abfcmrbnn7b3b709ghsk4nlh5hjk6b-webkitgtk-2.18.4.drv’ timed out after 1800 seconds
error: build of ‘/nix/store/m7abfcmrbnn7b3b709ghsk4nlh5hjk6b-webkitgtk-2.18.4.drv’ failed

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Failure for system: x86_64-linux

[ 23%] Building CXX object Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/runtime/SetPrototype.cpp.o
[ 23%] Building CXX object Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/runtime/StringConstructor.cpp.o
[ 23%] Building CXX object Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/runtime/SetIteratorPrototype.cpp.o
[ 23%] Building CXX object Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/runtime/SetConstructor.cpp.o
[ 23%] Building CXX object Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/runtime/StringIteratorPrototype.cpp.o
[ 23%] Building CXX object Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/runtime/StringObject.cpp.o
[ 23%] Building CXX object Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/runtime/StringPrototype.cpp.o
[ 23%] Building CXX object Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/runtime/SymbolConstructor.cpp.o
building of ‘/nix/store/l5h255j0cziyf5jpz5idgdh5vkq6jiqv-webkitgtk-2.18.4.drv’ timed out after 1800 seconds
error: build of ‘/nix/store/l5h255j0cziyf5jpz5idgdh5vkq6jiqv-webkitgtk-2.18.4.drv’ failed

@Mic92
Copy link
Member

Mic92 commented Jan 2, 2018

cc @LnL7

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Failure for system: aarch64-linux

[ 39%] Building CXX object Source/WebCore/CMakeFiles/WebCoreDerivedSources.dir/__/__/DerivedSources/WebCore/MathMLNames.cpp.o
[ 39%] Building CXX object Source/WebCore/CMakeFiles/WebCoreDerivedSources.dir/__/__/DerivedSources/WebCore/XLinkNames.cpp.o
[ 40%] Building CXX object Source/WebCore/CMakeFiles/WebCoreDerivedSources.dir/__/__/DerivedSources/WebCore/JSSVGElementWrapperFactory.cpp.o
[ 40%] Building CXX object Source/WebCore/CMakeFiles/WebCoreDerivedSources.dir/__/__/DerivedSources/WebCore/SVGElementFactory.cpp.o
[ 40%] Building CXX object Source/WebCore/CMakeFiles/WebCoreDerivedSources.dir/__/__/DerivedSources/WebCore/SVGNames.cpp.o
[ 40%] Building CXX object Source/WebCore/CMakeFiles/WebCoreDerivedSources.dir/__/__/DerivedSources/WebCore/MathMLElementFactory.cpp.o
[ 40%] Building CXX object Source/WebCore/CMakeFiles/WebCoreDerivedSources.dir/__/__/DerivedSources/WebCore/XMLNSNames.cpp.o
[ 40%] Building CXX object Source/WebCore/CMakeFiles/WebCoreDerivedSources.dir/__/__/DerivedSources/WebCore/XMLNames.cpp.o
building of '/nix/store/5kx1hwh6salag7h86krxzk83rsjdik3z-webkitgtk-2.18.4.drv' timed out after 3600 seconds
error: build of '/nix/store/5kx1hwh6salag7h86krxzk83rsjdik3z-webkitgtk-2.18.4.drv' failed

@hamishmack
Copy link
Contributor Author

I have updated this branch so it uses #33459 instead of #33304.

Copy link
Member

@matthewbauer matthewbauer left a comment

Choose a reason for hiding this comment

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

Merge conflict.

@@ -24,6 +24,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig intltool ];
propagatedBuildInputs = [ glib gnutls libproxy gsettings_desktop_schemas ];

NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
Copy link
Member

Choose a reason for hiding this comment

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

This should no longer be required.

@mmahut
Copy link
Member

mmahut commented Aug 11, 2019

Are there any updates on this pull request, please?

@stale
Copy link

stale bot commented Jun 1, 2020

Thank you for your contributions.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the
    related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse. 3. Ask on the #nixos channel on
    irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 1, 2020
@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Oct 3, 2020
@stale
Copy link

stale bot commented Jun 4, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 4, 2021
@jtojnar
Copy link
Contributor

jtojnar commented Jun 7, 2021

Should be resolved by #123298 for now.

@jtojnar jtojnar closed this Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants