diff options
author | Ross Burton <ross.burton@intel.com> | 2019-08-02 21:37:19 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-08-03 23:56:01 +0100 |
commit | dad9cd5cca1a09f33f0fd82a6bcbed31936ad6c8 (patch) | |
tree | 5c8dde1092055ee949d8f013c2dba880e164606c /meta | |
parent | ad3edec70d07932caa390ff0e794695a83884364 (diff) | |
download | poky-dad9cd5cca1a09f33f0fd82a6bcbed31936ad6c8.tar.gz |
libx11: update to 1.6.8
Fix the build when the host doesn't have libc.a installed by reverting an
upstream commit, and cherry-pick a build fix from master.
Drop a redundant sed, the expression it removes doesn't exist anymore.
Move most patches to libx11.inc so that they're applied to both libx11 and libx11-diet.
(From OE-Core rev: 8bb48ac237315e83837973ecd1488060ec170588)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-graphics/xorg-lib/libx11-diet_1.6.8.bb (renamed from meta/recipes-graphics/xorg-lib/libx11-diet_1.6.7.bb) | 0 | ||||
-rw-r--r-- | meta/recipes-graphics/xorg-lib/libx11.inc | 8 | ||||
-rw-r--r-- | meta/recipes-graphics/xorg-lib/libx11/fix-libtool.patch | 35 | ||||
-rw-r--r-- | meta/recipes-graphics/xorg-lib/libx11/no-host-x.patch | 40 | ||||
-rw-r--r-- | meta/recipes-graphics/xorg-lib/libx11_1.6.7.bb | 13 | ||||
-rw-r--r-- | meta/recipes-graphics/xorg-lib/libx11_1.6.8.bb | 7 |
6 files changed, 88 insertions, 15 deletions
diff --git a/meta/recipes-graphics/xorg-lib/libx11-diet_1.6.7.bb b/meta/recipes-graphics/xorg-lib/libx11-diet_1.6.8.bb index 9c773a09dd..9c773a09dd 100644 --- a/meta/recipes-graphics/xorg-lib/libx11-diet_1.6.7.bb +++ b/meta/recipes-graphics/xorg-lib/libx11-diet_1.6.8.bb | |||
diff --git a/meta/recipes-graphics/xorg-lib/libx11.inc b/meta/recipes-graphics/xorg-lib/libx11.inc index ea2ebfb8b9..994c33a8ef 100644 --- a/meta/recipes-graphics/xorg-lib/libx11.inc +++ b/meta/recipes-graphics/xorg-lib/libx11.inc | |||
@@ -10,8 +10,12 @@ FILESEXTRAPATHS =. "${FILE_DIRNAME}/libx11:" | |||
10 | 10 | ||
11 | PE = "1" | 11 | PE = "1" |
12 | 12 | ||
13 | SRC_URI[md5sum] = "034fdd6cc5393974d88aec6f5bc96162" | 13 | SRC_URI += "file://Fix-hanging-issue-in-_XReply.patch \ |
14 | SRC_URI[sha256sum] = "910e9e30efba4ad3672ca277741c2728aebffa7bc526f04dcfa74df2e52a1348" | 14 | file://fix-libtool.patch \ |
15 | file://no-host-x.patch" | ||
16 | |||
17 | SRC_URI[md5sum] = "c5fa5a86a20e3591bed6c046498d4b8f" | ||
18 | SRC_URI[sha256sum] = "b289a845c189e251e0e884cc0f9269bbe97c238df3741e854ec4c17c21e473d5" | ||
15 | 19 | ||
16 | PROVIDES = "virtual/libx11" | 20 | PROVIDES = "virtual/libx11" |
17 | 21 | ||
diff --git a/meta/recipes-graphics/xorg-lib/libx11/fix-libtool.patch b/meta/recipes-graphics/xorg-lib/libx11/fix-libtool.patch new file mode 100644 index 0000000000..678b7aff44 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11/fix-libtool.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | Passing -all-static to libtool is done to avoid libtool wrappers on Windows, but | ||
2 | it means that the build host needs to have libc.a installed. This isn't the | ||
3 | case for a lot of distributions out of the box, so revert this commit. | ||
4 | |||
5 | Filed a bug upstream to get a proper fix: https://gitlab.freedesktop.org/xorg/lib/libx11/issues/100 | ||
6 | |||
7 | Upstream-Status: Inappropriate | ||
8 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
9 | |||
10 | From b9f74dc5e714115057a5a1789b4de202d6f58547 Mon Sep 17 00:00:00 2001 | ||
11 | From: Ross Burton <ross.burton@intel.com> | ||
12 | Date: Fri, 2 Aug 2019 00:39:39 +0100 | ||
13 | Subject: [PATCH 2/2] Revert "Avoid using libtool wrapper for makekeys" | ||
14 | |||
15 | This reverts commit 4645e219133458781e3fb48eaea6a74cccb1b9aa. | ||
16 | --- | ||
17 | src/util/Makefile.am | 2 +- | ||
18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
19 | |||
20 | diff --git a/src/util/Makefile.am b/src/util/Makefile.am | ||
21 | index 37314370..a051567a 100644 | ||
22 | --- a/src/util/Makefile.am | ||
23 | +++ b/src/util/Makefile.am | ||
24 | @@ -10,7 +10,7 @@ AM_CPPFLAGS = \ | ||
25 | CC = @CC_FOR_BUILD@ | ||
26 | CPPFLAGS = @CPPFLAGS_FOR_BUILD@ | ||
27 | CFLAGS = @CFLAGS_FOR_BUILD@ | ||
28 | -LDFLAGS = @LDFLAGS_FOR_BUILD@ -all-static | ||
29 | +LDFLAGS = @LDFLAGS_FOR_BUILD@ | ||
30 | LIBS = | ||
31 | EXEEXT = @EXEEXT_FOR_BUILD@ | ||
32 | |||
33 | -- | ||
34 | 2.20.1 | ||
35 | |||
diff --git a/meta/recipes-graphics/xorg-lib/libx11/no-host-x.patch b/meta/recipes-graphics/xorg-lib/libx11/no-host-x.patch new file mode 100644 index 0000000000..803f8b408c --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11/no-host-x.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | Upstream-Status: Backport | ||
2 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
3 | |||
4 | From cf2ef27831173c5ed6f98be3c39caff18fd4e7f1 Mon Sep 17 00:00:00 2001 | ||
5 | From: Adam Jackson <ajax@redhat.com> | ||
6 | Date: Mon, 17 Jun 2019 13:36:08 -0400 | ||
7 | Subject: [PATCH 1/2] makekeys: Detach ourselves from X headers entirely | ||
8 | |||
9 | Subsequent to a121b7b0c210efe10bf93453b29050282324c906 we are no longer | ||
10 | building makekeys with enough -I/foo/bar to find the X11 headers, so if | ||
11 | they're not in a system include path, things fail. Since this utility is | ||
12 | only needed at build time, there's no real reason to demand the X | ||
13 | headers be installed for both the build and target machines if cross- | ||
14 | compiling, we can just assume a vaguely ANSI environment instead. | ||
15 | |||
16 | Tested-by: Niclas Zeising <zeising@daemonic.se> | ||
17 | Reviewed-by: Keith Packard <keithp@keithp.com> | ||
18 | Reviewed-by: Matt Turner <mattst88@gmail.com> | ||
19 | --- | ||
20 | src/util/makekeys.c | 4 +++- | ||
21 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
22 | |||
23 | diff --git a/src/util/makekeys.c b/src/util/makekeys.c | ||
24 | index bcb5b7d5..07563315 100644 | ||
25 | --- a/src/util/makekeys.c | ||
26 | +++ b/src/util/makekeys.c | ||
27 | @@ -35,8 +35,10 @@ from The Open Group. | ||
28 | #include <stdio.h> | ||
29 | #include <stdlib.h> | ||
30 | #include <string.h> | ||
31 | +#include <stdint.h> | ||
32 | +#include <inttypes.h> | ||
33 | |||
34 | -#include "../Xresinternal.h" | ||
35 | +typedef uint32_t Signature; | ||
36 | |||
37 | #define KTNUM 4000 | ||
38 | |||
39 | -- | ||
40 | 2.20.1 | ||
diff --git a/meta/recipes-graphics/xorg-lib/libx11_1.6.7.bb b/meta/recipes-graphics/xorg-lib/libx11_1.6.7.bb deleted file mode 100644 index 6141f571c5..0000000000 --- a/meta/recipes-graphics/xorg-lib/libx11_1.6.7.bb +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | require libx11.inc | ||
2 | |||
3 | SRC_URI += "file://disable_tests.patch \ | ||
4 | file://Fix-hanging-issue-in-_XReply.patch \ | ||
5 | " | ||
6 | |||
7 | inherit gettext | ||
8 | |||
9 | do_configure_append () { | ||
10 | sed -i -e "/X11_CFLAGS/d" ${B}/src/util/Makefile | ||
11 | } | ||
12 | |||
13 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libx11_1.6.8.bb b/meta/recipes-graphics/xorg-lib/libx11_1.6.8.bb new file mode 100644 index 0000000000..0d27bc2bce --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11_1.6.8.bb | |||
@@ -0,0 +1,7 @@ | |||
1 | require libx11.inc | ||
2 | |||
3 | SRC_URI += "file://disable_tests.patch" | ||
4 | |||
5 | inherit gettext | ||
6 | |||
7 | BBCLASSEXTEND = "native nativesdk" | ||