All of lore.kernel.org
 help / color / mirror / Atom feed
* [dunfell-backport PATCH 1/9] gdbm: add patch to fix link failure against gcc 10
@ 2020-06-12 17:33 Otavio Salvador
  2020-06-12 17:33 ` [dunfell-backport PATCH 2/9] libtirpc: remove extra "-fcommon" from CFLAGS Otavio Salvador
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Otavio Salvador @ 2020-06-12 17:33 UTC (permalink / raw)
  To: OpenEmbedded Core Mailing List
  Cc: Richard Leitner, Richard Purdie, Otavio Salvador

From: Richard Leitner <richard.leitner@skidata.com>

This also makes appending "-fcommon" to CFLAGS obsolete and enables
native builds with a host gcc v10.

Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7717b35265e6ef8ef71a4eca4074294dfcc2110c)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---

 ...gdbm-fix-link-failure-against-gcc-10.patch | 47 +++++++++++++++++++
 meta/recipes-support/gdbm/gdbm_1.18.1.bb      |  3 +-
 2 files changed, 48 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-support/gdbm/files/gdbm-fix-link-failure-against-gcc-10.patch

diff --git a/meta/recipes-support/gdbm/files/gdbm-fix-link-failure-against-gcc-10.patch b/meta/recipes-support/gdbm/files/gdbm-fix-link-failure-against-gcc-10.patch
new file mode 100644
index 0000000000..c1580418dc
--- /dev/null
+++ b/meta/recipes-support/gdbm/files/gdbm-fix-link-failure-against-gcc-10.patch
@@ -0,0 +1,47 @@
+From f993697af81c37df9c55e0ebedeb1b8b880506ae Mon Sep 17 00:00:00 2001
+From: Richard Leitner <richard.leitner@skidata.com>
+Date: Tue, 5 May 2020 11:59:42 +0200
+Subject: [PATCH] gdbm: fix link failure against gcc-10
+
+Copied from gentoo's solution at https://bugs.gentoo.org/show_bug.cgi?id=705898
+Original patch by Sergei Trofimovich <slyfox@gentoo.org>
+
+Original description:
+
+Before the change on gcc-10 link failed as:
+```
+  CCLD     gdbmtool
+ld: ./libgdbmapp.a(parseopt.o):(.bss+0x8): multiple definition of `parseopt_program_args';
+  gdbmtool.o:(.data.rel.local+0x260): first defined here
+ld: ./libgdbmapp.a(parseopt.o):(.bss+0x10): multiple definition of `parseopt_program_doc';
+  gdbmtool.o:(.data.rel.local+0x268): first defined here
+```
+
+gcc-10 will change the default from -fcommon to fno-common:
+    https://gcc.gnu.org/PR85678.
+
+The fix is to avoid multiple definition and rely on
+declarations only.
+
+Upstream-Status: Pending
+Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
+---
+ src/parseopt.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/src/parseopt.c b/src/parseopt.c
+index 268e080..a4c8576 100644
+--- a/src/parseopt.c
++++ b/src/parseopt.c
+@@ -255,8 +255,6 @@ print_option_descr (const char *descr, size_t lmargin, size_t rmargin)
+ }
+ \f
+ char *parseopt_program_name;
+-char *parseopt_program_doc;
+-char *parseopt_program_args;
+ const char *program_bug_address = "<" PACKAGE_BUGREPORT ">";
+ void (*parseopt_help_hook) (FILE *stream);
+ \f
+-- 
+2.26.2
+
diff --git a/meta/recipes-support/gdbm/gdbm_1.18.1.bb b/meta/recipes-support/gdbm/gdbm_1.18.1.bb
index 5cb7c558b8..fbb1fe72d7 100644
--- a/meta/recipes-support/gdbm/gdbm_1.18.1.bb
+++ b/meta/recipes-support/gdbm/gdbm_1.18.1.bb
@@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=241da1b9fe42e642cbb2c24d5e0c4d24"
 SRC_URI = "${GNU_MIRROR}/gdbm/gdbm-${PV}.tar.gz \
            file://run-ptest \
            file://ptest.patch \
+           file://gdbm-fix-link-failure-against-gcc-10.patch \
           "
 
 SRC_URI[md5sum] = "988dc82182121c7570e0cb8b4fcd5415"
@@ -23,8 +24,6 @@ CACHED_CONFIGUREVARS += "ac_cv_lib_ndbm_main=no ac_cv_lib_dbm_main=no"
 
 BBCLASSEXTEND = "native nativesdk"
 
-CFLAGS += "-fcommon"
-
 do_install_append () {
     # Create a symlink to ndbm.h and gdbm.h in include/gdbm to let other packages to find
     # these headers
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [dunfell-backport PATCH 2/9] libtirpc: remove extra "-fcommon" from CFLAGS
  2020-06-12 17:33 [dunfell-backport PATCH 1/9] gdbm: add patch to fix link failure against gcc 10 Otavio Salvador
@ 2020-06-12 17:33 ` Otavio Salvador
  2020-06-12 17:33 ` [dunfell-backport PATCH 3/9] libtirpc: upgrade 1.2.5 -> 1.2.6 Otavio Salvador
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Otavio Salvador @ 2020-06-12 17:33 UTC (permalink / raw)
  To: OpenEmbedded Core Mailing List
  Cc: Richard Leitner, Richard Purdie, Otavio Salvador

From: Richard Leitner <richard.leitner@skidata.com>

commit daed7eedba ("Avoid multiple-definiton with gcc -fno-common") of
libtirpc fixed the -fno-common issues. Therefore it should be save to
remove the extra "-fcommon" in CFLAGS.

Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9e4546701775fe98532f011f5ad146cfb1b33715)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---

 meta/recipes-extended/libtirpc/libtirpc_1.2.5.bb | 2 --
 1 file changed, 2 deletions(-)

diff --git a/meta/recipes-extended/libtirpc/libtirpc_1.2.5.bb b/meta/recipes-extended/libtirpc/libtirpc_1.2.5.bb
index fc66821ecc..f8e34f58a2 100644
--- a/meta/recipes-extended/libtirpc/libtirpc_1.2.5.bb
+++ b/meta/recipes-extended/libtirpc/libtirpc_1.2.5.bb
@@ -21,8 +21,6 @@ inherit autotools pkgconfig
 
 EXTRA_OECONF = "--disable-gssapi"
 
-CFLAGS += "-fcommon"
-
 do_install_append() {
 	chown root:root ${D}${sysconfdir}/netconfig
 }
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [dunfell-backport PATCH 3/9] libtirpc: upgrade 1.2.5 -> 1.2.6
  2020-06-12 17:33 [dunfell-backport PATCH 1/9] gdbm: add patch to fix link failure against gcc 10 Otavio Salvador
  2020-06-12 17:33 ` [dunfell-backport PATCH 2/9] libtirpc: remove extra "-fcommon" from CFLAGS Otavio Salvador
@ 2020-06-12 17:33 ` Otavio Salvador
  2020-06-12 21:02   ` [OE-core] " Andreas Müller
  2020-06-12 17:33 ` [dunfell-backport PATCH 4/9] dtc: update to 1.6.0 Otavio Salvador
                   ` (5 subsequent siblings)
  7 siblings, 1 reply; 10+ messages in thread
From: Otavio Salvador @ 2020-06-12 17:33 UTC (permalink / raw)
  To: OpenEmbedded Core Mailing List
  Cc: zhengruoqin, Richard Purdie, Otavio Salvador

From: zhengruoqin <zhengrq.fnst@cn.fujitsu.com>

0001-xdr_float-do-not-include-bits-endian.h.patch
removed since it is included in 1.2.6

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c940792e1492923036cae97010f9945e7ad43a32)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---

 ...r_float-do-not-include-bits-endian.h.patch | 34 -------------------
 .../{libtirpc_1.2.5.bb => libtirpc_1.2.6.bb}  |  8 ++---
 2 files changed, 3 insertions(+), 39 deletions(-)
 delete mode 100644 meta/recipes-extended/libtirpc/libtirpc/0001-xdr_float-do-not-include-bits-endian.h.patch
 rename meta/recipes-extended/libtirpc/{libtirpc_1.2.5.bb => libtirpc_1.2.6.bb} (74%)

diff --git a/meta/recipes-extended/libtirpc/libtirpc/0001-xdr_float-do-not-include-bits-endian.h.patch b/meta/recipes-extended/libtirpc/libtirpc/0001-xdr_float-do-not-include-bits-endian.h.patch
deleted file mode 100644
index 3797cdf521..0000000000
--- a/meta/recipes-extended/libtirpc/libtirpc/0001-xdr_float-do-not-include-bits-endian.h.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From d04f4d6f0e682f16b0ce96839ab4eadade591eb1 Mon Sep 17 00:00:00 2001
-From: Rosen Penev <rosenp@gmail.com>
-Date: Tue, 21 Jan 2020 11:51:16 -0500
-Subject: [PATCH] xdr_float: do not include bits/endian.h
-
-bits/endian.h is an internal header. endian.h should be included.
-
-Fixes compilation with recent musl.
-
-Signed-off-by: Rosen Penev <rosenp@gmail.com>
-Signed-off-by: Steve Dickson <steved@redhat.com>
-
-Upstream-Status: Backport [http://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=d04f4d6f0e682f16b0ce96839ab4eadade591eb1]
-Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
----
- src/xdr_float.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/xdr_float.c b/src/xdr_float.c
-index 26bc865..349d48f 100644
---- a/src/xdr_float.c
-+++ b/src/xdr_float.c
-@@ -83,7 +83,7 @@ static struct sgl_limits {
- };
- #else
- 
--#include <bits/endian.h>
-+#include <endian.h>
- #define IEEEFP
- 
- #endif /* vax */
--- 
-2.21.1
-
diff --git a/meta/recipes-extended/libtirpc/libtirpc_1.2.5.bb b/meta/recipes-extended/libtirpc/libtirpc_1.2.6.bb
similarity index 74%
rename from meta/recipes-extended/libtirpc/libtirpc_1.2.5.bb
rename to meta/recipes-extended/libtirpc/libtirpc_1.2.6.bb
index f8e34f58a2..10a324c3b6 100644
--- a/meta/recipes-extended/libtirpc/libtirpc_1.2.5.bb
+++ b/meta/recipes-extended/libtirpc/libtirpc_1.2.6.bb
@@ -9,13 +9,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=f835cce8852481e4b2bbbdd23b5e47f3 \
 
 PROVIDES = "virtual/librpc"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.bz2 \
-           file://0001-xdr_float-do-not-include-bits-endian.h.patch \
-           "
+SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.bz2"
 UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/libtirpc/files/libtirpc/"
 UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)/"
-SRC_URI[md5sum] = "688787ddff7c6a92ef15ae3f5dc4dfa1"
-SRC_URI[sha256sum] = "f3b6350c7e9c3cd9c58fc7a5e5f8e6be469cc571bb5eb31eb9790b3e675186ca"
+SRC_URI[md5sum] = "b25f9cc18bfad50f7c446c77f4ae00bb"
+SRC_URI[sha256sum] = "4278e9a5181d5af9cd7885322fdecebc444f9a3da87c526e7d47f7a12a37d1cc"
 
 inherit autotools pkgconfig
 
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [dunfell-backport PATCH 4/9] dtc: update to 1.6.0
  2020-06-12 17:33 [dunfell-backport PATCH 1/9] gdbm: add patch to fix link failure against gcc 10 Otavio Salvador
  2020-06-12 17:33 ` [dunfell-backport PATCH 2/9] libtirpc: remove extra "-fcommon" from CFLAGS Otavio Salvador
  2020-06-12 17:33 ` [dunfell-backport PATCH 3/9] libtirpc: upgrade 1.2.5 -> 1.2.6 Otavio Salvador
@ 2020-06-12 17:33 ` Otavio Salvador
  2020-06-12 17:33 ` [dunfell-backport PATCH 5/9] go-mod.bbclass: Add class for `go mod` support Otavio Salvador
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Otavio Salvador @ 2020-06-12 17:33 UTC (permalink / raw)
  To: OpenEmbedded Core Mailing List
  Cc: Richard Leitner, Richard Purdie, Otavio Salvador

From: Richard Leitner <richard.leitner@skidata.com>

This also fixes issues with gcc 10's default change to "-fno-common".

Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3acc1e5d5bce4e229801c9d66391e007390fb373)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---

 meta/recipes-kernel/dtc/{dtc_1.5.1.bb => dtc_1.6.0.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-kernel/dtc/{dtc_1.5.1.bb => dtc_1.6.0.bb} (81%)

diff --git a/meta/recipes-kernel/dtc/dtc_1.5.1.bb b/meta/recipes-kernel/dtc/dtc_1.6.0.bb
similarity index 81%
rename from meta/recipes-kernel/dtc/dtc_1.5.1.bb
rename to meta/recipes-kernel/dtc/dtc_1.6.0.bb
index 9df8a06d47..92df70d9fc 100644
--- a/meta/recipes-kernel/dtc/dtc_1.5.1.bb
+++ b/meta/recipes-kernel/dtc/dtc_1.6.0.bb
@@ -3,7 +3,7 @@ require dtc.inc
 LIC_FILES_CHKSUM = "file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
 		    file://libfdt/libfdt.h;beginline=4;endline=7;md5=05bb357cfb75cae7d2b01d2ee8d76407"
 
-SRCREV = "60e0db3d65a1218b0d5a29474e769f28a18e3ca6"
+SRCREV = "2525da3dba9beceb96651dc2986581871dbeca30"
 
 S = "${WORKDIR}/git"
 
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [dunfell-backport PATCH 5/9] go-mod.bbclass: Add class for `go mod` support
  2020-06-12 17:33 [dunfell-backport PATCH 1/9] gdbm: add patch to fix link failure against gcc 10 Otavio Salvador
                   ` (2 preceding siblings ...)
  2020-06-12 17:33 ` [dunfell-backport PATCH 4/9] dtc: update to 1.6.0 Otavio Salvador
@ 2020-06-12 17:33 ` Otavio Salvador
  2020-06-12 17:33 ` [dunfell-backport PATCH 6/9] glide: Avoid use of 'go mod' support Otavio Salvador
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Otavio Salvador @ 2020-06-12 17:33 UTC (permalink / raw)
  To: OpenEmbedded Core Mailing List
  Cc: Otavio Salvador, Otavio Salvador, Richard Purdie

From: Otavio Salvador <otavio.salvador@gmail.com>

When using Go Modules, the the current working directory MUST be at or
below the location of the 'go.mod' file when the go tool is used, and
there is no way to tell it to look elsewhere.  It will automatically
look upwards for the file, but not downwards.

To support this use case, we provide the `GO_WORKDIR` variable, which
defaults to `GO_IMPORT` but allows for easy override.

[YOCTO #13883]

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 11c2b06ac98cc5064640705712bffa156519f450)
---

 meta/classes/go-mod.bbclass | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 meta/classes/go-mod.bbclass

diff --git a/meta/classes/go-mod.bbclass b/meta/classes/go-mod.bbclass
new file mode 100644
index 0000000000..5871d02506
--- /dev/null
+++ b/meta/classes/go-mod.bbclass
@@ -0,0 +1,20 @@
+# Handle Go Modules support
+#
+# When using Go Modules, the the current working directory MUST be at or below
+# the location of the 'go.mod' file when the go tool is used, and there is no
+# way to tell it to look elsewhere.  It will automatically look upwards for the
+# file, but not downwards.
+#
+# To support this use case, we provide the `GO_WORKDIR` variable, which defaults
+# to `GO_IMPORT` but allows for easy override.
+#
+# Copyright 2020 (C) O.S. Systems Software LTDA.
+
+# The '-modcacherw' option ensures we have write access to the cached objects so
+# we avoid errors during clean task as well as when removing the TMPDIR.
+export GOBUILDFLAGS ?= "-v ${GO_LDFLAGS} -modcacherw"
+
+inherit go
+
+GO_WORKDIR ?= "${GO_IMPORT}"
+do_compile[dirs] += "${B}/src/${GO_WORKDIR}"
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [dunfell-backport PATCH 6/9] glide: Avoid use of 'go mod' support
  2020-06-12 17:33 [dunfell-backport PATCH 1/9] gdbm: add patch to fix link failure against gcc 10 Otavio Salvador
                   ` (3 preceding siblings ...)
  2020-06-12 17:33 ` [dunfell-backport PATCH 5/9] go-mod.bbclass: Add class for `go mod` support Otavio Salvador
@ 2020-06-12 17:33 ` Otavio Salvador
  2020-06-12 17:33 ` [dunfell-backport PATCH 7/9] go-dep: " Otavio Salvador
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Otavio Salvador @ 2020-06-12 17:33 UTC (permalink / raw)
  To: OpenEmbedded Core Mailing List
  Cc: Otavio Salvador, Otavio Salvador, Richard Purdie

From: Otavio Salvador <otavio.salvador@gmail.com>

Glide utility must not use 'go mod' support, so we explicitly disable
it.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b5a4369ba606677285b0a89a78c040b38f57767f)
---

 meta/recipes-devtools/glide/glide_0.13.3.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-devtools/glide/glide_0.13.3.bb b/meta/recipes-devtools/glide/glide_0.13.3.bb
index ebad0ec60a..31295edf90 100644
--- a/meta/recipes-devtools/glide/glide_0.13.3.bb
+++ b/meta/recipes-devtools/glide/glide_0.13.3.bb
@@ -9,6 +9,10 @@ SRCREV = "8ed5b9292379d86c39592a7e6a58eb9c903877cf"
 
 inherit go
 
+# New Go versions has Go modules support enabled by default and cause the Glide
+# tool build to fail.
+export GO111MODULE = "off"
+
 RDEPENDS_${PN}-dev += "bash"
 RDEPENDS_${PN}-ptest += "bash"
 
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [dunfell-backport PATCH 7/9] go-dep: Avoid use of 'go mod' support
  2020-06-12 17:33 [dunfell-backport PATCH 1/9] gdbm: add patch to fix link failure against gcc 10 Otavio Salvador
                   ` (4 preceding siblings ...)
  2020-06-12 17:33 ` [dunfell-backport PATCH 6/9] glide: Avoid use of 'go mod' support Otavio Salvador
@ 2020-06-12 17:33 ` Otavio Salvador
  2020-06-12 17:33 ` [dunfell-backport PATCH 8/9] go.bbclass: Add `-trimpath` to default build flags Otavio Salvador
  2020-06-12 17:33 ` [dunfell-backport PATCH 9/9] binutils: add patch to fix issues with gcc 10 Otavio Salvador
  7 siblings, 0 replies; 10+ messages in thread
From: Otavio Salvador @ 2020-06-12 17:33 UTC (permalink / raw)
  To: OpenEmbedded Core Mailing List
  Cc: Otavio Salvador, Otavio Salvador, Richard Purdie

From: Otavio Salvador <otavio.salvador@gmail.com>

dep utility must not use 'go mod' support, so we explicitly disable it.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b34000ae3dd6e0a1d7fc332efb35c5da84cf2275)
---

 meta/recipes-devtools/go/go-dep_0.5.4.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-devtools/go/go-dep_0.5.4.bb b/meta/recipes-devtools/go/go-dep_0.5.4.bb
index 615cb289e5..496224a5cf 100644
--- a/meta/recipes-devtools/go/go-dep_0.5.4.bb
+++ b/meta/recipes-devtools/go/go-dep_0.5.4.bb
@@ -13,6 +13,10 @@ SRCREV = "1f7c19e5f52f49ffb9f956f64c010be14683468b"
 
 inherit go
 
+# New Go versions has Go modules support enabled by default and cause the Glide
+# tool build to fail.
+export GO111MODULE = "off"
+
 GO_INSTALL = "${GO_IMPORT}/cmd/dep"
 
 RDEPENDS_${PN}-dev += "bash"
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [dunfell-backport PATCH 8/9] go.bbclass: Add `-trimpath` to default build flags
  2020-06-12 17:33 [dunfell-backport PATCH 1/9] gdbm: add patch to fix link failure against gcc 10 Otavio Salvador
                   ` (5 preceding siblings ...)
  2020-06-12 17:33 ` [dunfell-backport PATCH 7/9] go-dep: " Otavio Salvador
@ 2020-06-12 17:33 ` Otavio Salvador
  2020-06-12 17:33 ` [dunfell-backport PATCH 9/9] binutils: add patch to fix issues with gcc 10 Otavio Salvador
  7 siblings, 0 replies; 10+ messages in thread
From: Otavio Salvador @ 2020-06-12 17:33 UTC (permalink / raw)
  To: OpenEmbedded Core Mailing List
  Cc: Otavio Salvador, Otavio Salvador, Richard Purdie

From: Otavio Salvador <otavio.salvador@gmail.com>

The `-trimpath` option is important for reproducible builds so full
build paths and module paths are not embedded.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e3df027b3697b6a92b417bba8d442a5bd15525fd)
---

 meta/classes/go.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
index c99689ac59..a9e31b50ea 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -41,7 +41,7 @@ GO_EXTLDFLAGS ?= "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} ${GO_RPATH_LINK} ${LDFLAGS
 GO_LINKMODE ?= ""
 GO_LINKMODE_class-nativesdk = "--linkmode=external"
 GO_LDFLAGS ?= '-ldflags="${GO_RPATH} ${GO_LINKMODE} -extldflags '${GO_EXTLDFLAGS}'"'
-export GOBUILDFLAGS ?= "-v ${GO_LDFLAGS}"
+export GOBUILDFLAGS ?= "-v ${GO_LDFLAGS} -trimpath"
 export GOPATH_OMIT_IN_ACTIONID ?= "1"
 export GOPTESTBUILDFLAGS ?= "${GOBUILDFLAGS} -c"
 export GOPTESTFLAGS ?= ""
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [dunfell-backport PATCH 9/9] binutils: add patch to fix issues with gcc 10
  2020-06-12 17:33 [dunfell-backport PATCH 1/9] gdbm: add patch to fix link failure against gcc 10 Otavio Salvador
                   ` (6 preceding siblings ...)
  2020-06-12 17:33 ` [dunfell-backport PATCH 8/9] go.bbclass: Add `-trimpath` to default build flags Otavio Salvador
@ 2020-06-12 17:33 ` Otavio Salvador
  7 siblings, 0 replies; 10+ messages in thread
From: Otavio Salvador @ 2020-06-12 17:33 UTC (permalink / raw)
  To: OpenEmbedded Core Mailing List
  Cc: Richard Leitner, Richard Purdie, Otavio Salvador

From: Richard Leitner <richard.leitner@skidata.com>

gcc 10 introduced "-fno-common" as default. Therefore backport the
according binutils patch to fix this issue.

Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit fbeb572e1872cf64786d01d5c6408a6765f814ce)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---

 .../binutils/binutils-2.34.inc                |  1 +
 ...dundant-program_name-definition-fno-.patch | 61 +++++++++++++++++++
 2 files changed, 62 insertions(+)
 create mode 100644 meta/recipes-devtools/binutils/binutils/0017-binutils-drop-redundant-program_name-definition-fno-.patch

diff --git a/meta/recipes-devtools/binutils/binutils-2.34.inc b/meta/recipes-devtools/binutils/binutils-2.34.inc
index 66a3850ef2..f65fdb7328 100644
--- a/meta/recipes-devtools/binutils/binutils-2.34.inc
+++ b/meta/recipes-devtools/binutils/binutils-2.34.inc
@@ -41,6 +41,7 @@ SRC_URI = "\
      file://0014-Detect-64-bit-MIPS-targets.patch \
      file://0015-sync-with-OE-libtool-changes.patch \
      file://0016-Check-for-clang-before-checking-gcc-version.patch \
+     file://0017-binutils-drop-redundant-program_name-definition-fno-.patch \
      file://CVE-2020-0551.patch \
 "
 S  = "${WORKDIR}/git"
diff --git a/meta/recipes-devtools/binutils/binutils/0017-binutils-drop-redundant-program_name-definition-fno-.patch b/meta/recipes-devtools/binutils/binutils/0017-binutils-drop-redundant-program_name-definition-fno-.patch
new file mode 100644
index 0000000000..55af9abc13
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils/0017-binutils-drop-redundant-program_name-definition-fno-.patch
@@ -0,0 +1,61 @@
+From 57a3e055605b28a9449b1b27eda7125737c42b00 Mon Sep 17 00:00:00 2001
+From: Sergei Trofimovich <siarheit@google.com>
+Date: Sat, 1 Feb 2020 23:16:11 +0000
+Subject: [PATCH] binutils: drop redundant 'program_name' definition
+ (-fno-common)
+
+	* coffdump.c (program_name): Drop redundant definition.
+	* srconv.c (program_name): Likewise
+	* sysdump.c (program_name): Likewise
+
+Upstream-Status: Accepted (commit 0b398d69ac)
+Signed-off-by: Sergei Trofimovich <siarheit@google.com>
+Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
+---
+ binutils/coffdump.c | 2 --
+ binutils/srconv.c   | 2 --
+ binutils/sysdump.c  | 2 --
+ 3 files changed, 6 deletions(-)
+
+diff --git a/binutils/coffdump.c b/binutils/coffdump.c
+index 531a4e46c3..336da57ca2 100644
+--- a/binutils/coffdump.c
++++ b/binutils/coffdump.c
+@@ -456,8 +456,6 @@ coff_dump (struct coff_ofile *ptr)
+     dump_coff_section (ptr->sections + i);
+ }
+ 
+-char * program_name;
+-
+ static void
+ show_usage (FILE *file, int status)
+ {
+diff --git a/binutils/srconv.c b/binutils/srconv.c
+index 5742b16759..f071794f0a 100644
+--- a/binutils/srconv.c
++++ b/binutils/srconv.c
+@@ -1687,8 +1687,6 @@ prescan (struct coff_ofile *otree)
+     }
+ }
+ 
+-char *program_name;
+-
+ ATTRIBUTE_NORETURN static void
+ show_usage (FILE *ffile, int status)
+ {
+diff --git a/binutils/sysdump.c b/binutils/sysdump.c
+index d433e71ed9..7eebbd61d3 100644
+--- a/binutils/sysdump.c
++++ b/binutils/sysdump.c
+@@ -633,8 +633,6 @@ module (void)
+     }
+ }
+ 
+-char *program_name;
+-
+ ATTRIBUTE_NORETURN static void
+ show_usage (FILE *ffile, int status)
+ {
+-- 
+2.26.2
+
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [OE-core] [dunfell-backport PATCH 3/9] libtirpc: upgrade 1.2.5 -> 1.2.6
  2020-06-12 17:33 ` [dunfell-backport PATCH 3/9] libtirpc: upgrade 1.2.5 -> 1.2.6 Otavio Salvador
@ 2020-06-12 21:02   ` Andreas Müller
  0 siblings, 0 replies; 10+ messages in thread
From: Andreas Müller @ 2020-06-12 21:02 UTC (permalink / raw)
  To: Otavio Salvador
  Cc: OpenEmbedded Core Mailing List, zhengruoqin, Richard Purdie,
	Otavio Salvador

On Fri, Jun 12, 2020 at 7:33 PM Otavio Salvador
<otavio.salvador@gmail.com> wrote:
>
> From: zhengruoqin <zhengrq.fnst@cn.fujitsu.com>
>
> 0001-xdr_float-do-not-include-bits-endian.h.patch
> removed since it is included in 1.2.6
>
> Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> (cherry picked from commit c940792e1492923036cae97010f9945e7ad43a32)
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
For me this fixes native build on hosts with gcc10

Acked-by: Andreas Müller <schnitzeltony@gmail.com>

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-06-12 21:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-12 17:33 [dunfell-backport PATCH 1/9] gdbm: add patch to fix link failure against gcc 10 Otavio Salvador
2020-06-12 17:33 ` [dunfell-backport PATCH 2/9] libtirpc: remove extra "-fcommon" from CFLAGS Otavio Salvador
2020-06-12 17:33 ` [dunfell-backport PATCH 3/9] libtirpc: upgrade 1.2.5 -> 1.2.6 Otavio Salvador
2020-06-12 21:02   ` [OE-core] " Andreas Müller
2020-06-12 17:33 ` [dunfell-backport PATCH 4/9] dtc: update to 1.6.0 Otavio Salvador
2020-06-12 17:33 ` [dunfell-backport PATCH 5/9] go-mod.bbclass: Add class for `go mod` support Otavio Salvador
2020-06-12 17:33 ` [dunfell-backport PATCH 6/9] glide: Avoid use of 'go mod' support Otavio Salvador
2020-06-12 17:33 ` [dunfell-backport PATCH 7/9] go-dep: " Otavio Salvador
2020-06-12 17:33 ` [dunfell-backport PATCH 8/9] go.bbclass: Add `-trimpath` to default build flags Otavio Salvador
2020-06-12 17:33 ` [dunfell-backport PATCH 9/9] binutils: add patch to fix issues with gcc 10 Otavio Salvador

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.