Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 547638

Summary: net-libs/webkit-gtk-2.4.8-r200 fails to build with gcc-5.1, patch included
Product: Gentoo Linux Reporter: Robert Sebastian Gerus <ar>
Component: [OLD] GCC PortingAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal CC: ar, gent_bz, jrmalaq
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 536984    
Attachments: webkit-gtk-2.4.8-gcc5.patch
webkit-gtk-2.4.8-r200.ebuild.patch

Description Robert Sebastian Gerus 2015-04-25 05:44:45 UTC
During configure phase, webkit-gtk-2.4.8-r200 fails to recognize gcc-5.1 as a gcc version newer than 4.7.
Attached patch fixes this issue.

Reproducible: Always

Steps to Reproduce:
1. emerge -v net-libs/webkit-gtk:2
Actual Results:  
webkit-gtk failing at configure phase.
configure: error: Compiler GCC >= 4.7 or Clang >= 3.3 is required for C compilation

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-libs/webkit-gtk-2.4.8-r200/work/webkitgtk-2.4.8/config.log
 * ERROR: net-libs/webkit-gtk-2.4.8-r200::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line   93:  Called src_configure
 *             environment, line 4806:  Called gnome2_src_configure '--disable-quartz-target' '--disable-coverage' '--disable-debug' '--enable-egl' '--enable-geolocation' '--disable-gles2' '--enable-video' '--enable-web-audio' '--enable-introspection' '--enable-jit' '--disable-credential_storage' '--enable-glx' '--disable-spellcheck' '--enable-webgl' '--enable-accelerated-compositing' '--enable-x11-target' '--with-gtk=2.0' '--disable-webkit2' '--enable-dependency-tracking' '--disable-gtk-doc' 'RUBY=/usr/bin/ruby21'
 *             environment, line 3042:  Called econf '--docdir=/usr/share/doc/webkit-gtk-2.4.8-r200' '--disable-schemas-compile' '--disable-maintainer-mode' '--disable-gtk-doc' '--disable-quartz-target' '--disable-coverage' '--disable-debug' '--enable-egl' '--enable-geolocation' '--disable-gles2' '--enable-video' '--enable-web-audio' '--enable-introspection' '--enable-jit' '--disable-credential_storage' '--enable-glx' '--disable-spellcheck' '--enable-webgl' '--enable-accelerated-compositing' '--enable-x11-target' '--with-gtk=2.0' '--disable-webkit2' '--enable-dependency-tracking' '--disable-gtk-doc' 'RUBY=/usr/bin/ruby21'
 *        phase-helpers.sh, line  662:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  117:  Called die
 * The specific snippet of code:
 *              die "$@"
 * 
 * If you need support, post the output of `emerge --info '=net-libs/webkit-gtk-2.4.8-r200::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-libs/webkit-gtk-2.4.8-r200::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-libs/webkit-gtk-2.4.8-r200/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/webkit-gtk-2.4.8-r200/temp/environment'.
 * Working directory: '/var/tmp/portage/net-libs/webkit-gtk-2.4.8-r200/work/webkitgtk-2.4.8'
 * S: '/var/tmp/portage/net-libs/webkit-gtk-2.4.8-r200/work/webkitgtk-2.4.8'


Expected Results:  
>>> net-libs/webkit-gtk-2.4.8-r200 merged.
Comment 1 Robert Sebastian Gerus 2015-04-25 05:45:57 UTC
Created attachment 401958 [details, diff]
webkit-gtk-2.4.8-gcc5.patch
Comment 2 Robert Sebastian Gerus 2015-04-25 05:49:34 UTC
Created attachment 401960 [details, diff]
webkit-gtk-2.4.8-r200.ebuild.patch
Comment 3 Mark Wright gentoo-dev 2015-04-30 18:26:26 UTC
(In reply to Robert Sebastian Gerus from comment #1)
> Created attachment 401958 [details, diff] [details, diff]
> webkit-gtk-2.4.8-gcc5.patch

Thanks, I reproduced the problem without the patch, and the patch fixes the build with gcc 5.1.0.
Comment 4 jospezial 2015-05-16 15:28:15 UTC
I can confirm, the patch from #c1 is needed and works for both

net-libs/webkit-gtk-2.4.8 and net-libs/webkit-gtk-2.4.8-r200

btw, the attachment in #c2 is the whole ebuild, not a patch.
Comment 5 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-05-24 22:45:15 UTC
Thanks for reporting and for the patch. This was fixed upstream in 2.4.9 with an almost identical patch to what you proposed.

+*webkit-gtk-2.4.9-r200 (24 May 2015)
+*webkit-gtk-2.4.9 (24 May 2015)
+
+  24 May 2015; Alexandre Rostovtsev <tetromino@gentoo.org>
+  +webkit-gtk-2.4.9.ebuild, +webkit-gtk-2.4.9-r200.ebuild:
+  Version bump, see
+  http://webkitgtk.org/2015/05/20/webkitgtk2.4.9-released.html for the
+  announcement. Fixes build issues with glib-2.44 and gcc-5.1. Fixes bugs
+  #547324, #547638, #550178.