Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 507036 - www-client/midori-0.5.8[introspection,-deprecated] with no net-libs/webkit-gtk:2 installed - Package webkit-1.0 was not found in the pkg-config search path
Summary: www-client/midori-0.5.8[introspection,-deprecated] with no net-libs/webkit-gt...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: XFCE Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-07 12:56 UTC by Vladimir
Modified: 2014-04-07 14:31 UTC (History)
0 users

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


Attachments
build.log (midori-build.log,412.01 KB, text/plain)
2014-04-07 12:56 UTC, Vladimir
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir 2014-04-07 12:56:01 UTC
Created attachment 374468 [details]
build.log

Today I tried to upgrade to Midori-0.5.8, but it fails to build with this error message:


Package webkit-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `webkit-1.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'webkit-1.0', required by 'world', not found
In file included from /var/tmp/portage/www-client/midori-0.5.8/work/katze/katze-array.h:15:0,
                 from <stdin>:4:
/var/tmp/portage/www-client/midori-0.5.8/work/katze/katze-item.h:15:21: fatal error: gtk/gtk.h: No such file or directory
 #include <gtk/gtk.h>
                     ^
compilation terminated.
Error while processing the source.
gir/CMakeFiles/g-ir-scanner_katze.dir/build.make:52: recipe for target 'gir/CMakeFiles/g-ir-scanner_katze' failed
make[2]: *** [gir/CMakeFiles/g-ir-scanner_katze] Error 1
make[2]: Leaving directory '/var/tmp/portage/www-client/midori-0.5.8/work/midori-0.5.8_build'
CMakeFiles/Makefile2:3460: recipe for target 'gir/CMakeFiles/g-ir-scanner_katze.dir/all' failed
make[1]: *** [gir/CMakeFiles/g-ir-scanner_katze.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/www-client/midori-0.5.8/work/midori-0.5.8_build'
/usr/bin/cmake -E cmake_progress_report /var/tmp/portage/www-client/midori-0.5.8/work/midori-0.5.8_build/CMakeFiles  94
[100%] Built target tab
make[1]: Leaving directory '/var/tmp/portage/www-client/midori-0.5.8/work/midori-0.5.8_build'
Makefile:126: recipe for target 'all' failed
make: *** [all] Error 2
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2014-04-07 13:15:30 UTC
Your log says:

<snip>
Package webkit-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `webkit-1.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'webkit-1.0', required by 'world', not found
</snip>

But webkit-1.0.pc is installed here by =net-libs/webkit-gtk-2.2.6-r200, so post outputs of these commands:

$ emerge -pv --nodeps webkit-gtk:2 webkit-gtk:3
[ebuild   R    ] net-libs/webkit-gtk-2.2.6-r200:2  USE="egl geoloc gstreamer introspection jit opengl spell webgl (-aqua) -coverage -debug -gles2 -libsecret {-test}" 0 kB
[ebuild   R    ] net-libs/webkit-gtk-2.2.6:3/29  USE="egl geoloc gstreamer introspection jit opengl spell webgl (-aqua) -coverage -debug -gles2 -libsecret {-test}" 0 kB

$ qfile -b -v webkit-1.0.pc
net-libs/webkit-gtk-2.2.6-r200 (/usr/lib64/pkgconfig/webkit-1.0.pc)

$ pkg-config --libs webkit-1.0
-lwebkitgtk-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lpangoft2-1.0 -lpango-1.0 -lfontconfig -lfreetype -lsoup-2.4 -lgio-2.0 -lgobject-2.0 -ljavascriptcoregtk-1.0 -lglib-2.0
Comment 2 Vladimir 2014-04-07 14:01:24 UTC
(In reply to Samuli Suominen from comment #1)
> ...
> post outputs of these commands

[ebuild  NS    ] net-libs/webkit-gtk-2.2.6-r200:2 [2.2.6:3/29] USE="egl geoloc gstreamer introspection jit spell (-aqua) -coverage -debug -gles2 -libsecret -opengl {-test} -webgl" 0 kB
[ebuild   R    ] net-libs/webkit-gtk-2.2.6:3/29  USE="egl geoloc gstreamer introspection jit spell (-aqua) -coverage -debug -gles2 -libsecret -opengl* {-test} -webgl*" 0 kB

However, I must note that webkit-gtk:2 is not installed, and webkit-gtk:3 is installed with another USE flags set. Namely, with '+opengl +webgl'. These flags shown above are the flags I *tried* to install webkit-gtk with, but failed.


$ qfile -b -v webkit-1.0.pc

^^^ empty output


$ pkg-config --libs webkit-1.0
Package webkit-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `webkit-1.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'webkit-1.0', required by 'world', not found


Also maybe it is woth mentioning that I try to install Midori with 'webkit2' USE-flag. I am not sure if it has to do something with the reported problem, but the word 'webkit-1.0' made me think so.

Regards,
  Vladimir
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2014-04-07 14:27:02 UTC
I managed to reproduce this now, `emerge -C webkit-gtk:2` to uninstall the version for GTK+-2.x and then USE="-deprecated webkit2" emerge '=www-client/midori-0.5.8'

It really shouldn't be requiring "webkit-1.0.pc" with these settings, I'll figure out why this happens. :-/
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2014-04-07 14:31:35 UTC
Figured it out. USE="introspection" is for USE="deprecated" and net-libs/webkit-gtk:2 only. Disable USE="introspection" :)

+  07 Apr 2014; Samuli Suominen <ssuominen@gentoo.org> midori-0.5.8.ebuild:
+  USE="introspection" is requiring net-libs/webkit-gtk:2 for webkit-1.0.pc,
+  therefore disable USE="introspection" by default and make it require
+  USE="deprecated" wrt #507036 by "Vladimir"

http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/midori/midori-0.5.8.ebuild?r1=1.1&r2=1.2