New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #34134 (closed defect: fixed)

Opened 14 months ago

Last modified 10 months ago

webkit-gtk @1.6.3 - Build failure

Reported by: l.wayne.james@… Owned by: jeremyhu@…
Priority: Normal Milestone:
Component: ports Version: 2.0.99
Keywords: haspatch Cc: macports1@…
Port: webkit-gtk

Description

I am trying to build webkit-gtk as a pre-requisite to gimp2.

Variants: (+)quartz, [+]svg, (-)universal, [+]video

Build is failing with:

  CXX    Source/WebCore/platform/gtk/libWebCoreGtk_la-GeolocationServiceGtk.lo
Source/WebCore/platform/gtk/GtkWidgetBackingStoreX11.cpp:27:30: error: cairo/cairo-xlib.h: No such file or directory
Source/WebCore/platform/gtk/GtkWidgetBackingStoreX11.cpp:29:22: error: gdk/gdkx.h: No such file or directory
  CXX    Source/WebCore/platform/gtk/libWebCoreGtk_la-GOwnPtrGtk.lo
Source/WebCore/platform/gtk/GtkWidgetBackingStoreX11.cpp: In constructor 'WebCore::WidgetBackingStorePrivate::WidgetBackingStorePrivate(GtkWidget*, const WebCore::IntSize&)':
Source/WebCore/platform/gtk/GtkWidgetBackingStoreX11.cpp:62: error: 'GDK_SCREEN_XDISPLAY' was not declared in this scope
Source/WebCore/platform/gtk/GtkWidgetBackingStoreX11.cpp:64: error: 'GDK_WINDOW_XID' was not declared in this scope
Source/WebCore/platform/gtk/GtkWidgetBackingStoreX11.cpp:70: error: 'GDK_VISUAL_XVISUAL' was not declared in this scope
Source/WebCore/platform/gtk/GtkWidgetBackingStoreX11.cpp:71: error: 'cairo_xlib_surface_create' was not declared in this scope
make[1]: *** [Source/WebCore/platform/gtk/libWebCoreGtk_la-GtkWidgetBackingStoreX11.lo] Error 1

Log is attached.

Attachments

main.log.bz2 (12.7 KB) - added by l.wayne.james@… 14 months ago.
Build log
quartz.patch (1.6 KB) - added by l.wayne.james@… 14 months ago.
Patch to move "Source/WebCore/plugins/gtk/PluginViewGtk.cpp" into X11 build section
quartz.2.patch (1.1 KB) - added by l.wayne.james@… 14 months ago.
"quartz.patch" produced by diff -u
quartz-regression.patch (1.3 KB) - added by pokui@… 10 months ago.
patches both the portfile and adds the quartz.patch so needs -p0 and to be run a dir above the port dir

Change History

Changed 14 months ago by l.wayne.james@…

Build log

comment:1 Changed 14 months ago by l.wayne.james@…

  • Cc l.wayne.james@… added

Cc Me!

comment:2 follow-up: ↓ 3 Changed 14 months ago by l.wayne.james@…

Changes from ticket #34086 had no effect.

comment:3 in reply to: ↑ 2 Changed 14 months ago by jeremyhu@…

  • Owner changed from macports-tickets@… to jeremyhu@…
  • Status changed from new to assigned

Replying to l.wayne.james@…:

Changes from ticket #34086 had no effect.

Well, they did have an effect. The effect was that they got past that issue and got you to a new one...

Apparently, it's trying to bring in some X11 related bits when it shouldn't...

comment:5 follow-up: ↓ 6 Changed 14 months ago by jeremyhu@…

  • Status changed from assigned to closed
  • Resolution set to fixed

r92147 should address this one... hopefully that's the last one...

comment:6 in reply to: ↑ 5 Changed 14 months ago by l.wayne.james@…

  • Status changed from closed to reopened
  • Resolution fixed deleted

Replying to jeremyhu@…:

r92147 should address this one... hopefully that's the last one...

Unfortunately - in my case - it wasn't. :)

But removing "Source/WebCore/plugins/gtk/PluginViewGtk.cpp" as you did "GtkWidgetBackingStoreX11.cpp" allowed a complete build.

Please forgive my ignorance, but do you wish me to open another ticket for tracking purposes? or would a new (quartz.patch) patch attached to this one help?

I'll be able to do either (I think) as soon as gimp builds and I can confirm basic functionality.

By the way... Thank you! :D

comment:7 Changed 14 months ago by l.wayne.james@…

Attaching new "quartz.patch" as promised. This allows webkit-gtk to build.

Changed 14 months ago by l.wayne.james@…

Patch to move "Source/WebCore/plugins/gtk/PluginViewGtk.cpp" into X11 build section

comment:8 Changed 14 months ago by ryandesign@…

  • Cc l.wayne.james@… removed
  • Keywords haspatch added

We would prefer unified diffs instead of contextual ones.

comment:9 Changed 14 months ago by ryandesign@…

  • Cc macports1@… added

Has duplicate #34139.

Changed 14 months ago by l.wayne.james@…

"quartz.patch" produced by diff -u

comment:10 Changed 14 months ago by l.wayne.james@…

As you wish! :)

comment:11 Changed 14 months ago by jeremyhu@…

  • Status changed from reopened to closed
  • Resolution set to fixed

Ok, I updated it with your patch. Thanks for the help. remote debugging has massive I/O lag. =)

r92162

Changed 10 months ago by pokui@…

patches both the portfile and adds the quartz.patch so needs -p0 and to be run a dir above the port dir

comment:12 Changed 10 months ago by pokui@…

  • Status changed from closed to reopened
  • Resolution fixed deleted

r96758 added this bug back as a regression. Source/WebCore/plugins/gtk/PluginViewGtk.cpp still depends on X11.

ps: Midway my testing the patch r96855 was released without a rev bump ... made patching this interesting.

comment:13 Changed 10 months ago by jeremyhu@…

  • Status changed from reopened to closed
  • Resolution set to fixed

Sorry. I thought upstream had already applied the patch. It's back in r96886

comment:14 Changed 10 months ago by dtakahashi42@…

Could you include this small fix on quartz.patch, which resolves #35767?

@@ -10,7 +10,7 @@
  
  if TARGET_X11
  webcoregtk_sources += \
-+	Source/WebCore/plugins/gtk/PluginViewGtk.cpp
++	Source/WebCore/plugins/gtk/PluginViewGtk.cpp \
  	Source/WebCore/platform/gtk/GtkWidgetBackingStoreX11.cpp \
  	Source/WebCore/plugins/gtk/gtk2xtbin.c \
  	Source/WebCore/plugins/gtk/gtk2xtbin.h \

comment:15 Changed 10 months ago by jeremyhu@…

<

r96926

Note: See TracTickets for help on using tickets.