]> code.ossystems Code Review - openembedded-core.git/commitdiff
binutils: Fix include error in builds zeus-next
authorTrevor Gamblin <trevor.gamblin@windriver.com>
Wed, 28 Apr 2021 14:56:59 +0000 (10:56 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 30 Apr 2021 13:35:44 +0000 (14:35 +0100)
See [YOCTO #14169]

A user found a problem with binutils in zeus due to a missing
include in the source. Submitting the patch on their behalf.
The issue is fixed in binutils 2.33 upstream.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/binutils/binutils-2.32.inc
meta/recipes-devtools/binutils/binutils/0001-Fix-a-missing-include-of-string.patch [new file with mode: 0644]

index 349c3e1154d348d7a35cedbca670c125ebe1d163..1f2d033a6c0a1039ae8e96272c6957bafe851e47 100644 (file)
@@ -51,6 +51,7 @@ SRC_URI = "\
      file://CVE-2019-14444.patch \
      file://CVE-2019-17450.patch \
      file://CVE-2019-17451.patch \
+     file://0001-Fix-a-missing-include-of-string.patch \
 "
 S  = "${WORKDIR}/git"
 
diff --git a/meta/recipes-devtools/binutils/binutils/0001-Fix-a-missing-include-of-string.patch b/meta/recipes-devtools/binutils/binutils/0001-Fix-a-missing-include-of-string.patch
new file mode 100644 (file)
index 0000000..9f52ed8
--- /dev/null
@@ -0,0 +1,49 @@
+From 1aaf9d481a7c0e20675df165a4968e255521bea8 Mon Sep 17 00:00:00 2001
+From: Trevor Gamblin <trevor.gamblin@windriver.com>
+Date: Wed, 28 Apr 2021 09:25:08 -0400
+Subject: [PATCH] Fix a missing include of <string>
+
+gold/ChangeLog:
+
+2019-06-07  Martin Liska  <mliska@suse.cz>
+
+    * errors.h: Include string.
+
+Upstream-Status: Backport
+(https://github.com/bminor/binutils-gdb/commit/a3972330f)
+
+Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
+---
+ gold/ChangeLog | 3 +++
+ gold/errors.h  | 1 +
+ 2 files changed, 4 insertions(+)
+
+diff --git a/gold/ChangeLog b/gold/ChangeLog
+index 458bed793e0..00f804b1bf6 100644
+--- a/gold/ChangeLog
++++ b/gold/ChangeLog
+@@ -2,6 +2,9 @@
+       2.32 Release.
++2019-06-10  Martin Liska  <mliska@suse.cz>
++
++      * errors.h: Include string.
+ 2019-01-21  Nick Clifton  <nickc@redhat.com>
+       * po/uk.po: Updated Ukranian translation.
+diff --git a/gold/errors.h b/gold/errors.h
+index c26b5586379..ac681e965bb 100644
+--- a/gold/errors.h
++++ b/gold/errors.h
+@@ -24,6 +24,7 @@
+ #define GOLD_ERRORS_H
+ #include <cstdarg>
++#include <string>
+ #include "gold-threads.h"
+-- 
+2.30.2
+