Hi Thelma,

On Sun, 18 Feb 2018 12:01:54 -0700
the...@sys-concept.com wrote:
I'm getting an error.

make[1]: Leaving directory 
'/var/tmp/portage/net-libs/webkit-gtk-2.4.11-r200/work/webkitgtk-2.4.11'
make: *** [GNUmakefile:25837: all] Error 2
* ERROR: net-libs/webkit-gtk-2.4.11-r200::gentoo failed (compile phase):
*   emake failed

I've tried this propose patch.
https://621532.bugs.gentoo.org/attachment.cgi?id=511304

save it to a file patch.patch
went to directory:
cd /usr/portage/net-libs/webkit-gtk/
patch -p0 < patch.patch

It ask me what file I want to patch, I entered:
JSStringRef.h

run:
ebuild /usr/portage/net-libs/webkit-gtk/webkit-gtk-2.4.11-r200.ebuild digest

But it still fails to compile.
Am I applying patch the same way.
--
Thelma


There’s no ‘JSStringRef.h’ file in ‘/usr/portage/net-libs/webkit-gtk/’, so patch must fail. Since the ebuild:

   /usr/portage/net-libs/webkit-gtk/webkit-gtk-2.4.11-r200.ebuild

defines EAPI="6" you can just put the patch file in:

   /etc/portage/patches/net-libs/webkit-gtk/

with the right permissions (so that portage can read it). Don’t forget to remove the patch for newer (future) versions or be more specific and use the path:

   /etc/portage/patches/net-libs/webkit-gtk-2.4.11-r200/

for the patch file [1].

It seems the patch file isn’t valid because its first line:

--- webkitgtk-2.4.11.orig/Source/JavaScriptCore/API/JSStringRef.h       
2016-04-10 08:48:36.000000000 +0200

looks wrong to me (I doubt the package archive contains a ‘webkitgtk-2.4.11.orig’ subfolder underneath the patch command will find the file ‘JSStringRef.h’)

After you ensured the path is fine try to re-emerge the package.

References:
  - [1] <https://wiki.gentoo.org/wiki//etc/portage/patches>


--
Regards,
floyd


Reply via email to