Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 757261 - net-libs/webkit-gtk-2.30.3 - .../Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp:132:5: error: ‘XVisualInfo’ was not declared in this scope
Summary: net-libs/webkit-gtk-2.30.3 - .../Source/WebCore/platform/graphics/x11/Platfor...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-27 19:22 UTC by ernsteiswuerfel
Modified: 2020-11-27 21:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (webkit-gtk-2.30.3:20201127-155929.log.xz,51.06 KB, application/x-xz)
2020-11-27 19:22 UTC, ernsteiswuerfel
Details
emerge --info (file_757261.txt,6.28 KB, text/plain)
2020-11-27 19:22 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2020-11-27 19:22:09 UTC
Created attachment 675415 [details]
build.log.xz

[...]
/var/tmp/portage/net-libs/webkit-gtk-2.30.3/work/webkitgtk-2.30.3/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp: In member function ‘void* WebCore::PlatformDisplayX11::visual() const’:
/var/tmp/portage/net-libs/webkit-gtk-2.30.3/work/webkitgtk-2.30.3/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp:132:5: error: ‘XVisualInfo’ was not declared in this scope; did you mean ‘VisualID’?
  132 |     XVisualInfo visualTemplate;
      |     ^~~~~~~~~~~
      |     VisualID
/var/tmp/portage/net-libs/webkit-gtk-2.30.3/work/webkitgtk-2.30.3/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp:133:5: error: ‘visualTemplate’ was not declared in this scope
  133 |     visualTemplate.screen = DefaultScreen(m_display);
      |     ^~~~~~~~~~~~~~
/var/tmp/portage/net-libs/webkit-gtk-2.30.3/work/webkitgtk-2.30.3/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp:136:18: error: ‘visualInfo’ was not declared in this scope; did you mean ‘visual’?
  136 |     XVisualInfo* visualInfo = XGetVisualInfo(m_display, VisualScreenMask, &visualTemplate, &visualCount);
      |                  ^~~~~~~~~~
      |                  visual
/var/tmp/portage/net-libs/webkit-gtk-2.30.3/work/webkitgtk-2.30.3/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp:136:57: error: ‘VisualScreenMask’ was not declared in this scope
  136 |     XVisualInfo* visualInfo = XGetVisualInfo(m_display, VisualScreenMask, &visualTemplate, &visualCount);
      |                                                         ^~~~~~~~~~~~~~~~
/var/tmp/portage/net-libs/webkit-gtk-2.30.3/work/webkitgtk-2.30.3/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp:136:31: error: ‘XGetVisualInfo’ was not declared in this scope
  136 |     XVisualInfo* visualInfo = XGetVisualInfo(m_display, VisualScreenMask, &visualTemplate, &visualCount);
      |                               ^~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
 * ERROR: net-libs/webkit-gtk-2.30.3::gentoo failed (compile phase):
 *   ninja -v -j1 -l0 failed
Comment 1 ernsteiswuerfel archtester 2020-11-27 19:22:48 UTC
Created attachment 675418 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-11-27 19:33:20 UTC
Same on arm64, thanks!
Comment 3 Mart Raudsepp gentoo-dev 2020-11-27 20:08:34 UTC
For users hitting this - you shouldn't be disabling USE=opengl. Of course this is still a valid report and needs fixing one way or another (patching it or removing IUSE=opengl or maybe some REQUIRED_USE), but users really really should NOT disable opengl on this package unless they run this on an embedded device that has absolutely no OpenGL support whatsoever somehow.

And I assume this report is purely result of arch testing, not actually trying to use it without opengl in practice
Comment 4 Larry the Git Cow gentoo-dev 2020-11-27 20:54:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afcb4c9522c9d14dc54ca1d35b0d45dadf6b12f3

commit afcb4c9522c9d14dc54ca1d35b0d45dadf6b12f3
Author:     Mart Raudsepp <leio@gentoo.org>
AuthorDate: 2020-11-27 20:52:15 +0000
Commit:     Mart Raudsepp <leio@gentoo.org>
CommitDate: 2020-11-27 20:54:15 +0000

    net-libs/webkit-gtk: fix discouraged USE="-opengl" build with USE=X
    
    Closes: https://bugs.gentoo.org/757261
    Package-Manager: Portage-2.3.103, Repoman-2.3.20
    Signed-off-by: Mart Raudsepp <leio@gentoo.org>

 .../webkit-gtk/files/2.30.3-fix-noGL-build.patch   | 27 ++++++++++++++++++++++
 net-libs/webkit-gtk/webkit-gtk-2.30.3.ebuild       |  1 +
 2 files changed, 28 insertions(+)
Comment 5 ernsteiswuerfel archtester 2020-11-27 21:07:42 UTC
Hmm, interesting... I had USE='opengl' in make.conf but it was not respected by the ebuild. However when I build it with "USE='opengl' emerge -1 webkit-gtk" opengl gets selected correctly and the build succeeds.
Comment 6 Mart Raudsepp gentoo-dev 2020-11-27 21:15:42 UTC
Weird, maybe you have some sort of a package.use.mask in /etc/portage for this or something?
Comment 7 ernsteiswuerfel archtester 2020-11-27 21:32:27 UTC
D'oh... yes. I had

net-libs/webkit-gtk -geolocation -opengl -webgl

set in /etc/portage/package.use/myuse.