<div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 2, 2019 at 1:52 PM Ross Burton &lt;<a href="mailto:ross.burton@intel.com">ross.burton@intel.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Fix the build when the host doesn&#39;t have libc.a installed by reverting an<br>
upstream commit, and cherry-pick a build fix from master.<br>
<br>
Drop a redundant sed, the expression it removes doesn&#39;t exist anymore.<br>
<br>
Move most patches to libx11.inc so that they&#39;re applied to both libx11 and libx11-diet.<br>
</blockquote><div dir="auto"><br></div><div dir="auto">Aren’t we deleting libx11-diet then we might not want to accommodate for it </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Signed-off-by: Ross Burton &lt;<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>&gt;<br>
---<br>
 ...<a href="http://x11-diet_1.6.7.bb" rel="noreferrer" target="_blank">x11-diet_1.6.7.bb</a> =&gt; <a href="http://libx11-diet_1.6.8.bb" rel="noreferrer" target="_blank">libx11-diet_1.6.8.bb</a>} |  0<br>
 meta/recipes-graphics/xorg-lib/libx11.inc     |  8 +++-<br>
 .../xorg-lib/libx11/fix-libtool.patch         | 35 ++++++++++++++++<br>
 .../xorg-lib/libx11/no-host-x.patch           | 40 +++++++++++++++++++<br>
 .../recipes-graphics/xorg-lib/<a href="http://libx11_1.6.7.bb" rel="noreferrer" target="_blank">libx11_1.6.7.bb</a> | 13 ------<br>
 .../recipes-graphics/xorg-lib/<a href="http://libx11_1.6.8.bb" rel="noreferrer" target="_blank">libx11_1.6.8.bb</a> |  7 ++++<br>
 6 files changed, 88 insertions(+), 15 deletions(-)<br>
 rename meta/recipes-graphics/xorg-lib/{<a href="http://libx11-diet_1.6.7.bb" rel="noreferrer" target="_blank">libx11-diet_1.6.7.bb</a> =&gt; <a href="http://libx11-diet_1.6.8.bb" rel="noreferrer" target="_blank">libx11-diet_1.6.8.bb</a>} (100%)<br>
 create mode 100644 meta/recipes-graphics/xorg-lib/libx11/fix-libtool.patch<br>
 create mode 100644 meta/recipes-graphics/xorg-lib/libx11/no-host-x.patch<br>
 delete mode 100644 meta/recipes-graphics/xorg-lib/<a href="http://libx11_1.6.7.bb" rel="noreferrer" target="_blank">libx11_1.6.7.bb</a><br>
 create mode 100644 meta/recipes-graphics/xorg-lib/<a href="http://libx11_1.6.8.bb" rel="noreferrer" target="_blank">libx11_1.6.8.bb</a><br>
<br>
diff --git a/meta/recipes-graphics/xorg-lib/<a href="http://libx11-diet_1.6.7.bb" rel="noreferrer" target="_blank">libx11-diet_1.6.7.bb</a> b/meta/recipes-graphics/xorg-lib/<a href="http://libx11-diet_1.6.8.bb" rel="noreferrer" target="_blank">libx11-diet_1.6.8.bb</a><br>
similarity index 100%<br>
rename from meta/recipes-graphics/xorg-lib/<a href="http://libx11-diet_1.6.7.bb" rel="noreferrer" target="_blank">libx11-diet_1.6.7.bb</a><br>
rename to meta/recipes-graphics/xorg-lib/<a href="http://libx11-diet_1.6.8.bb" rel="noreferrer" target="_blank">libx11-diet_1.6.8.bb</a><br>
diff --git a/meta/recipes-graphics/xorg-lib/libx11.inc b/meta/recipes-graphics/xorg-lib/libx11.inc<br>
index ea2ebfb8b95..994c33a8efc 100644<br>
--- a/meta/recipes-graphics/xorg-lib/libx11.inc<br>
+++ b/meta/recipes-graphics/xorg-lib/libx11.inc<br>
@@ -10,8 +10,12 @@ FILESEXTRAPATHS =. &quot;${FILE_DIRNAME}/libx11:&quot;<br>
<br>
 PE = &quot;1&quot;<br>
<br>
-SRC_URI[md5sum] = &quot;034fdd6cc5393974d88aec6f5bc96162&quot;<br>
-SRC_URI[sha256sum] = &quot;910e9e30efba4ad3672ca277741c2728aebffa7bc526f04dcfa74df2e52a1348&quot;<br>
+SRC_URI += &quot;file://Fix-hanging-issue-in-_XReply.patch \<br>
+            file://fix-libtool.patch \<br>
+            file://no-host-x.patch&quot;<br>
+<br>
+SRC_URI[md5sum] = &quot;c5fa5a86a20e3591bed6c046498d4b8f&quot;<br>
+SRC_URI[sha256sum] = &quot;b289a845c189e251e0e884cc0f9269bbe97c238df3741e854ec4c17c21e473d5&quot;<br>
<br>
 PROVIDES = &quot;virtual/libx11&quot;<br>
<br>
diff --git a/meta/recipes-graphics/xorg-lib/libx11/fix-libtool.patch b/meta/recipes-graphics/xorg-lib/libx11/fix-libtool.patch<br>
new file mode 100644<br>
index 00000000000..678b7aff445<br>
--- /dev/null<br>
+++ b/meta/recipes-graphics/xorg-lib/libx11/fix-libtool.patch<br>
@@ -0,0 +1,35 @@<br>
+Passing -all-static to libtool is done to avoid libtool wrappers on Windows, but<br>
+it means that the build host needs to have libc.a installed.  This isn&#39;t the<br>
+case for a lot of distributions out of the box, so revert this commit.<br>
+<br>
+Filed a bug upstream to get a proper fix: <a href="https://gitlab.freedesktop.org/xorg/lib/libx11/issues/100" rel="noreferrer" target="_blank">https://gitlab.freedesktop.org/xorg/lib/libx11/issues/100</a><br>
+<br>
+Upstream-Status: Inappropriate<br>
+Signed-off-by: Ross Burton &lt;<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>&gt;<br>
+<br>
+From b9f74dc5e714115057a5a1789b4de202d6f58547 Mon Sep 17 00:00:00 2001<br>
+From: Ross Burton &lt;<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>&gt;<br>
+Date: Fri, 2 Aug 2019 00:39:39 +0100<br>
+Subject: [PATCH 2/2] Revert &quot;Avoid using libtool wrapper for makekeys&quot;<br>
+<br>
+This reverts commit 4645e219133458781e3fb48eaea6a74cccb1b9aa.<br>
+---<br>
+ src/util/Makefile.am | 2 +-<br>
+ 1 file changed, 1 insertion(+), 1 deletion(-)<br>
+<br>
+diff --git a/src/util/Makefile.am b/src/util/Makefile.am<br>
+index 37314370..a051567a 100644<br>
+--- a/src/util/Makefile.am<br>
++++ b/src/util/Makefile.am<br>
+@@ -10,7 +10,7 @@ AM_CPPFLAGS = \<br>
+ CC = @CC_FOR_BUILD@<br>
+ CPPFLAGS = @CPPFLAGS_FOR_BUILD@<br>
+ CFLAGS = @CFLAGS_FOR_BUILD@<br>
+-LDFLAGS = @LDFLAGS_FOR_BUILD@ -all-static<br>
++LDFLAGS = @LDFLAGS_FOR_BUILD@<br>
+ LIBS =<br>
+ EXEEXT = @EXEEXT_FOR_BUILD@<br>
+ <br>
+-- <br>
+2.20.1<br>
+<br>
diff --git a/meta/recipes-graphics/xorg-lib/libx11/no-host-x.patch b/meta/recipes-graphics/xorg-lib/libx11/no-host-x.patch<br>
new file mode 100644<br>
index 00000000000..803f8b408cb<br>
--- /dev/null<br>
+++ b/meta/recipes-graphics/xorg-lib/libx11/no-host-x.patch<br>
@@ -0,0 +1,40 @@<br>
+Upstream-Status: Backport<br>
+Signed-off-by: Ross Burton &lt;<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>&gt;<br>
+<br>
+From cf2ef27831173c5ed6f98be3c39caff18fd4e7f1 Mon Sep 17 00:00:00 2001<br>
+From: Adam Jackson &lt;<a href="mailto:ajax@redhat.com" target="_blank">ajax@redhat.com</a>&gt;<br>
+Date: Mon, 17 Jun 2019 13:36:08 -0400<br>
+Subject: [PATCH 1/2] makekeys: Detach ourselves from X headers entirely<br>
+<br>
+Subsequent to a121b7b0c210efe10bf93453b29050282324c906 we are no longer<br>
+building makekeys with enough -I/foo/bar to find the X11 headers, so if<br>
+they&#39;re not in a system include path, things fail. Since this utility is<br>
+only needed at build time, there&#39;s no real reason to demand the X<br>
+headers be installed for both the build and target machines if cross-<br>
+compiling, we can just assume a vaguely ANSI environment instead.<br>
+<br>
+Tested-by: Niclas Zeising &lt;<a href="mailto:zeising@daemonic.se" target="_blank">zeising@daemonic.se</a>&gt;<br>
+Reviewed-by: Keith Packard &lt;<a href="mailto:keithp@keithp.com" target="_blank">keithp@keithp.com</a>&gt;<br>
+Reviewed-by: Matt Turner &lt;<a href="mailto:mattst88@gmail.com" target="_blank">mattst88@gmail.com</a>&gt;<br>
+---<br>
+ src/util/makekeys.c | 4 +++-<br>
+ 1 file changed, 3 insertions(+), 1 deletion(-)<br>
+<br>
+diff --git a/src/util/makekeys.c b/src/util/makekeys.c<br>
+index bcb5b7d5..07563315 100644<br>
+--- a/src/util/makekeys.c<br>
++++ b/src/util/makekeys.c<br>
+@@ -35,8 +35,10 @@ from The Open Group.<br>
+ #include &lt;stdio.h&gt;<br>
+ #include &lt;stdlib.h&gt;<br>
+ #include &lt;string.h&gt;<br>
++#include &lt;stdint.h&gt;<br>
++#include &lt;inttypes.h&gt;<br>
+ <br>
+-#include &quot;../Xresinternal.h&quot;<br>
++typedef uint32_t Signature;<br>
+ <br>
+ #define KTNUM 4000<br>
+ <br>
+-- <br>
+2.20.1<br>
diff --git a/meta/recipes-graphics/xorg-lib/<a href="http://libx11_1.6.7.bb" rel="noreferrer" target="_blank">libx11_1.6.7.bb</a> b/meta/recipes-graphics/xorg-lib/<a href="http://libx11_1.6.7.bb" rel="noreferrer" target="_blank">libx11_1.6.7.bb</a><br>
deleted file mode 100644<br>
index 6141f571c5a..00000000000<br>
--- a/meta/recipes-graphics/xorg-lib/<a href="http://libx11_1.6.7.bb" rel="noreferrer" target="_blank">libx11_1.6.7.bb</a><br>
+++ /dev/null<br>
@@ -1,13 +0,0 @@<br>
-require libx11.inc<br>
-<br>
-SRC_URI += &quot;file://disable_tests.patch \<br>
-            file://Fix-hanging-issue-in-_XReply.patch \<br>
-           &quot;<br>
-<br>
-inherit gettext<br>
-<br>
-do_configure_append () {<br>
-    sed -i -e &quot;/X11_CFLAGS/d&quot; ${B}/src/util/Makefile<br>
-}<br>
-<br>
-BBCLASSEXTEND = &quot;native nativesdk&quot;<br>
diff --git a/meta/recipes-graphics/xorg-lib/<a href="http://libx11_1.6.8.bb" rel="noreferrer" target="_blank">libx11_1.6.8.bb</a> b/meta/recipes-graphics/xorg-lib/<a href="http://libx11_1.6.8.bb" rel="noreferrer" target="_blank">libx11_1.6.8.bb</a><br>
new file mode 100644<br>
index 00000000000..0d27bc2bce9<br>
--- /dev/null<br>
+++ b/meta/recipes-graphics/xorg-lib/<a href="http://libx11_1.6.8.bb" rel="noreferrer" target="_blank">libx11_1.6.8.bb</a><br>
@@ -0,0 +1,7 @@<br>
+require libx11.inc<br>
+<br>
+SRC_URI += &quot;file://disable_tests.patch&quot;<br>
+<br>
+inherit gettext<br>
+<br>
+BBCLASSEXTEND = &quot;native nativesdk&quot;<br>
-- <br>
2.20.1<br>
<br>
-- <br>
_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</blockquote></div></div>