Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/diffutils: fix build on microblazeel
@ 2021-11-11  9:00 Fabrice Fontaine
  2021-11-13 14:25 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2021-11-11  9:00 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine

Fix the following build failure raised since bump to version 3.8 in
commit 1f89c80417ad03127650b22c41ec4e30d42c549f:

sigsegv.c: In function 'sigsegv_handler':
sigsegv.c:979:28: error: 'struct vma_struct' has no member named 'is_near_this'
  979 |                       : vma.is_near_this (addr, &vma))
      |                            ^

Fixes:
 - http://autobuild.buildroot.org/results/5ecd55b7c72f9630a7acc72341ccb60e94ddb574

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...rection.m4-fix-build-on-microblazeel.patch | 39 +++++++++++++++++++
 package/diffutils/diffutils.mk                |  2 +
 2 files changed, 41 insertions(+)
 create mode 100644 package/diffutils/0001-m4-stack-direction.m4-fix-build-on-microblazeel.patch

diff --git a/package/diffutils/0001-m4-stack-direction.m4-fix-build-on-microblazeel.patch b/package/diffutils/0001-m4-stack-direction.m4-fix-build-on-microblazeel.patch
new file mode 100644
index 0000000000..6e60beecbd
--- /dev/null
+++ b/package/diffutils/0001-m4-stack-direction.m4-fix-build-on-microblazeel.patch
@@ -0,0 +1,39 @@
+From 7fd9de7f12718db0ace575c15c3a0e061ef6c542 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Thu, 11 Nov 2021 09:46:41 +0100
+Subject: [PATCH] m4/stack-direction.m4: fix build on microblazeel
+
+Fix the following build failure on microblazeel with diffutils raised
+since version 3.8 and
+https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=e54aa6196947ed22ff66bcd714e4fc7bd0c5c3b4
+
+sigsegv.c: In function 'sigsegv_handler':
+sigsegv.c:979:28: error: 'struct vma_struct' has no member named 'is_near_this'
+  979 |                       : vma.is_near_this (addr, &vma))
+      |                            ^
+
+Fixes:
+ - http://autobuild.buildroot.org/results/5ecd55b7c72f9630a7acc72341ccb60e94ddb574
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: sent to bug-gnulib@gnu.org]
+---
+ m4/stack-direction.m4 | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/m4/stack-direction.m4 b/m4/stack-direction.m4
+index c90d69733..70286c8f5 100644
+--- a/m4/stack-direction.m4
++++ b/m4/stack-direction.m4
+@@ -37,7 +37,7 @@ AC_DEFUN([SV_STACK_DIRECTION],
+       m68* | \
+       m88k | \
+       mcore | \
+-      microblaze | \
++      microblaze* | \
+       mips* | \
+       mmix | \
+       mn10200 | \
+-- 
+2.33.0
+
diff --git a/package/diffutils/diffutils.mk b/package/diffutils/diffutils.mk
index db8a5070a9..3d86541295 100644
--- a/package/diffutils/diffutils.mk
+++ b/package/diffutils/diffutils.mk
@@ -10,6 +10,8 @@ DIFFUTILS_SITE = $(BR2_GNU_MIRROR)/diffutils
 DIFFUTILS_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
 DIFFUTILS_LICENSE = GPL-3.0+
 DIFFUTILS_LICENSE_FILES = COPYING
+# We're patching m4/stack-direction.m4
+DIFFUTILS_AUTORECONF = YES
 
 # Since glibc >= 2.26, don't try to use getopt_long replacement bundled
 # with diffutils. It will conflict with the one from glibc.
-- 
2.33.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/diffutils: fix build on microblazeel
  2021-11-11  9:00 [Buildroot] [PATCH 1/1] package/diffutils: fix build on microblazeel Fabrice Fontaine
@ 2021-11-13 14:25 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2021-11-13 14:25 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: buildroot

On Thu, 11 Nov 2021 10:00:31 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Fix the following build failure raised since bump to version 3.8 in
> commit 1f89c80417ad03127650b22c41ec4e30d42c549f:
> 
> sigsegv.c: In function 'sigsegv_handler':
> sigsegv.c:979:28: error: 'struct vma_struct' has no member named 'is_near_this'
>   979 |                       : vma.is_near_this (addr, &vma))
>       |                            ^
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/5ecd55b7c72f9630a7acc72341ccb60e94ddb574
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  ...rection.m4-fix-build-on-microblazeel.patch | 39 +++++++++++++++++++
>  package/diffutils/diffutils.mk                |  2 +
>  2 files changed, 41 insertions(+)
>  create mode 100644 package/diffutils/0001-m4-stack-direction.m4-fix-build-on-microblazeel.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2021-11-13 14:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-11  9:00 [Buildroot] [PATCH 1/1] package/diffutils: fix build on microblazeel Fabrice Fontaine
2021-11-13 14:25 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox