Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 420591 - net-libs/webkit-gtk-1.8.1-r{201,301} fails to build with automake-1.12 (./.deps/DerivedSources: command not found)
Summary: net-libs/webkit-gtk-1.8.1-r{201,301} fails to build with automake-1.12 (./.de...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal with 1 vote (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: automake-1.12
  Show dependency tree
 
Reported: 2012-06-10 22:19 UTC by Daniele Segato
Modified: 2012-06-20 09:41 UTC (History)
13 users (show)

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


Attachments
emerge --info '=net-libs/webkit-gtk-1.8.1-r201' (emerge-info.log,5.26 KB, text/plain)
2012-06-10 22:19 UTC, Daniele Segato
Details
emerge -pqv '=net-libs/webkit-gtk-1.8.1-r201' (emerge-pqv.log,133 bytes, text/plain)
2012-06-10 22:20 UTC, Daniele Segato
Details
full build log (build.log,333.04 KB, text/plain)
2012-06-10 22:22 UTC, Daniele Segato
Details
Fix mkdir_p case in makefile (webkit-gtk-1.8.1-fix-mkdir_p-case.patch,1.99 KB, patch)
2012-06-11 05:59 UTC, Ryan Pennucci
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniele Segato 2012-06-10 22:19:11 UTC
Hi,

I can't emerge the update to webkit-gtk, it takes a very long time to compile then, at the very end (or at least I think so) it fail with this error (it's in italian, but I think you understand it):


make[2]: Leaving directory `/var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/work/webkit-1.8.1'
test ! -d ./Source/WebKit/gtk/po || \
 mkdir -p ./Source/WebKit/gtk/po
test ! -f ./Source/WebKit/gtk/po/webkit-2.0.pot || \
  test -z "Source/WebKit/gtk/po/it.mo" || make Source/WebKit/gtk/po/it.mo
make[2]: Entering directory `/var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/work/webkit-1.8.1'
make[2]: «Source/WebKit/gtk/po/it.mo» è aggiornato.
make[2]: Leaving directory `/var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/work/webkit-1.8.1'
touch stamp-po
./.deps/DerivedSources
make[1]: ./.deps/DerivedSources: comando non trovato
make[1]: *** [all-local] Errore 127
make[1]: Leaving directory `/var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/work/webkit-1.8.1'
make: *** [all] Errore 2
 * ERROR: net-libs/webkit-gtk-1.8.1-r201 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-libs/webkit-gtk-1.8.1-r201'`,
 * the complete build log and the output of `emerge -pqv '=net-libs/webkit-gtk-1.8.1-r201'`.
 * The complete build log is located at '/var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/temp/environment'.
 * Working directory: '/var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/work/webkit-1.8.1'


full logs etc as attachments

Rebuild has been triggered by revdep-rebuild.
Comment 1 Daniele Segato 2012-06-10 22:19:54 UTC
Created attachment 314905 [details]
emerge --info '=net-libs/webkit-gtk-1.8.1-r201'
Comment 2 Daniele Segato 2012-06-10 22:20:19 UTC
Created attachment 314907 [details]
emerge -pqv '=net-libs/webkit-gtk-1.8.1-r201'
Comment 3 Daniele Segato 2012-06-10 22:22:42 UTC
Created attachment 314909 [details]
full build log
Comment 4 Ryan Pennucci 2012-06-11 05:58:18 UTC
I was seeing the same issue with any revision I tried.

I looked into it further, and the makefile expects make to set $(mkdir_p), while the makefile itself explicitly sets $(MKDIR_P).  I'll attach a quick patch to change the case of the variable.  I'm not sure _why_ $(mkdir_p) isn't being set, but this at least works around the issue.  Maybe someone more knowledgable can identify the underlying issue.
Comment 5 Ryan Pennucci 2012-06-11 05:59:44 UTC
Created attachment 314945 [details, diff]
Fix mkdir_p case in makefile
Comment 6 Tiziano Müller (RETIRED) gentoo-dev 2012-06-11 11:15:06 UTC
Patch made it work for me, for gtk2 and gtk3.
Comment 7 Pacho Ramos gentoo-dev 2012-06-11 18:44:22 UTC
Would be nice to send this to upstream (bugs.webkit.org) if possible.

Thanks
Comment 8 Ryan Pennucci 2012-06-12 22:00:17 UTC
Notified upstream at https://bugs.webkit.org/show_bug.cgi?id=88926
Comment 9 Ryan Pennucci 2012-06-12 23:12:24 UTC
Upstream already fixed this in SVN.

https://bugs.webkit.org/show_bug.cgi?id=88790
http://trac.webkit.org/changeset/120012
Comment 10 BlackCore 2012-06-14 14:24:29 UTC
Bug is fixed in portage, webkit-gtk-1.8.1-r301 is not affected by this bug, therefore it's fixed.
http://packages.gentoo.org/package/net-libs/webkit-gtk
Comment 11 BlackCore 2012-06-14 15:39:01 UTC
(In reply to comment #10)
> Bug is fixed in portage, webkit-gtk-1.8.1-r301 is not affected by this bug,
> therefore it's fixed.
> http://packages.gentoo.org/package/net-libs/webkit-gtk

False alarm, r301 is affected too, forgot to undo the patch.
Bugs is not fixed in portage.
Comment 12 Daniele Segato 2012-06-16 10:01:23 UTC
I'd like to help anyone having this issue.

I was waiting for an official fix in portage, until yesterday when I rebooted my system.

I wasn't able to log in into gdm anymore (black screen with the mouse spinner, nothing in the logs[1]).

Two simple options to compile both r201 and r301 are:
* create a local overlay:
  1. copy the two ebuild and the files directory from /usr/portage/net-libs/webkit-gtk to /usr/local/portage/net-libs/webkit-gtk
  2. add the patch in comment 5 to the files directory of your local overlay, like this: /usr/local/portage/net-libs/webkit-gtk/files/webkit-gtk-mkdir-p.patch
  3. edit the ebuild adding the patch as last in src_prepare() {...}:
     epatch "${FILESDIR}/${PM}-mkdir-p.patch"
  3. run ebuild <ebuild-name> manifest
  4. emerge the package again

* run the patch manually in the working directory while it's compiling... (dirty, I know, but require less effort)
  1. download the patch of comment 5 and place it somewhere
  2. run emerge =net-libs/webkit-gtk-1.8.1-r201 # (or 301)
  3. wait it to start then
  4. cd /var/tmp/portage/net-libs/webkit-gtk-1.8.1-r201/work/webkit-gtk-*/
  5. patch -p1 < /path/to/the/patch-from-comment-5
  6. wait the build to end, should work



[1] I don't know if this was related, I had other issues in my portage tree :) It was some time since the previous time I upgraded the system and had many breakage, so It *may* not be related.
Comment 13 Damien Hammer 2012-06-16 11:30:19 UTC
(In reply to comment #12)
The patch is confirmed to fix the issue in all ebuilds that are affected. I hope gentoo will fix the ebuild with the information in this bug report soon since that would solve the issue.
Comment 14 Marc Grondin 2012-06-17 19:33:11 UTC
Thank you for patch. Hope it gets fixed in tree soon.
Comment 15 Samuli Suominen (RETIRED) gentoo-dev 2012-06-20 06:36:26 UTC
(In reply to comment #5)
> Created attachment 314945 [details, diff] [details, diff]
> Fix mkdir_p case in makefile

Thanks.

+  20 Jun 2012; Samuli Suominen <ssuominen@gentoo.org>
+  webkit-gtk-1.8.1-r201.ebuild, webkit-gtk-1.8.1-r301.ebuild:
+  Fix compability with sys-devel/automake >= 1.12 wrt #420591 by Ryan Pennucci

http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/webkit-gtk/webkit-gtk-1.8.1-r201.ebuild?r1=1.4&r2=1.5

http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/webkit-gtk/webkit-gtk-1.8.1-r301.ebuild?r1=1.4&r2=1.5
Comment 16 Samuli Suominen (RETIRED) gentoo-dev 2012-06-20 06:36:57 UTC
I don't know about gnome-overlay. Might need to copy this fix there. Please check it out.