1 |
Hi Thelma, |
2 |
|
3 |
On Sun, 18 Feb 2018 12:01:54 -0700 |
4 |
thelma@×××××××××××.com wrote: |
5 |
>I'm getting an error. |
6 |
> |
7 |
>make[1]: Leaving directory '/var/tmp/portage/net-libs/webkit-gtk-2.4.11-r200/work/webkitgtk-2.4.11' |
8 |
>make: *** [GNUmakefile:25837: all] Error 2 |
9 |
> * ERROR: net-libs/webkit-gtk-2.4.11-r200::gentoo failed (compile phase): |
10 |
> * emake failed |
11 |
> |
12 |
>I've tried this propose patch. |
13 |
>https://621532.bugs.gentoo.org/attachment.cgi?id=511304 |
14 |
> |
15 |
>save it to a file patch.patch |
16 |
>went to directory: |
17 |
>cd /usr/portage/net-libs/webkit-gtk/ |
18 |
>patch -p0 < patch.patch |
19 |
> |
20 |
>It ask me what file I want to patch, I entered: |
21 |
>JSStringRef.h |
22 |
> |
23 |
>run: |
24 |
>ebuild /usr/portage/net-libs/webkit-gtk/webkit-gtk-2.4.11-r200.ebuild digest |
25 |
> |
26 |
>But it still fails to compile. |
27 |
>Am I applying patch the same way. |
28 |
>-- |
29 |
>Thelma |
30 |
> |
31 |
|
32 |
There’s no ‘JSStringRef.h’ file in ‘/usr/portage/net-libs/webkit-gtk/’, |
33 |
so patch must fail. Since the ebuild: |
34 |
|
35 |
/usr/portage/net-libs/webkit-gtk/webkit-gtk-2.4.11-r200.ebuild |
36 |
|
37 |
defines EAPI="6" you can just put the patch file in: |
38 |
|
39 |
/etc/portage/patches/net-libs/webkit-gtk/ |
40 |
|
41 |
with the right permissions (so that portage can read it). Don’t forget |
42 |
to remove the patch for newer (future) versions or be more specific and |
43 |
use the path: |
44 |
|
45 |
/etc/portage/patches/net-libs/webkit-gtk-2.4.11-r200/ |
46 |
|
47 |
for the patch file [1]. |
48 |
|
49 |
It seems the patch file isn’t valid because its first line: |
50 |
|
51 |
--- webkitgtk-2.4.11.orig/Source/JavaScriptCore/API/JSStringRef.h 2016-04-10 08:48:36.000000000 +0200 |
52 |
|
53 |
looks wrong to me (I doubt the package archive contains a |
54 |
‘webkitgtk-2.4.11.orig’ subfolder underneath the patch command will find |
55 |
the file ‘JSStringRef.h’) |
56 |
|
57 |
After you ensured the path is fine try to re-emerge the package. |
58 |
|
59 |
|
60 |
References: |
61 |
- [1] <https://wiki.gentoo.org/wiki//etc/portage/patches> |
62 |
|
63 |
|
64 |
-- |
65 |
Regards, |
66 |
floyd |