Skip to contentSkip to conversation

ignore mkfds BPF related tests

PATCH New Khem Raj 1 participant 2 messages Apr 30, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 ignore mkfds BPF related tests

They do not pass with GCC-15, ignore them for now

---
 meta/recipes-core/util-linux/util-linux/run-ptest | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/util-linux/util-linux/run-ptest +1 -1
index 7b6b1d1dc2a..c3d57c8262f 100644
@@ -24,7 +24,7 @@ mount --make-shared /
 
 # lsfd/option-inet has races in the test script:
 # https://github.com/util-linux/util-linux/issues/2399
-./tests/run.sh --use-system-commands --parsable --show-diff --exclude=lsfd/option-inet | sed -u '{
+./tests/run.sh --use-system-commands --parsable --show-diff --exclude=lsfd/option-inet --exclude=lsfd/mkfds-bpf-map --exclude=lsfd/mkfds-bpf-prog | sed -u '{
       s/^\(.*\):\(.*\) \.\.\. OK$/PASS: \1:\2/                              
       s/^\(.*\):\(.*\) \.\.\. FAILED \(.*\)$/FAIL: \1:\2 \3/                
       s/^\(.*\):\(.*\) \.\.\. SKIPPED \(.*\)$/SKIP: \1:\2 \3/               
author
#1 lore raw

PATCH 2/2 gdb: Upgrade to 16.3

Add couple of readline patches to fix build with internal readline

Other Changes

* PR symtab/32309 ([gdb/symtab, fission] gdb/dwarf2/read.h:289:
internal-error: version: Assertion `m_dwarf_version != 0' failed)

* PR corefiles/32441 (gdb segfaults when generating a core file if
target_fileio_read_alloc fails)

* PR tui/32623 (TUI console window doesn't update while inferior is running)

* PR corefiles/32634 ([gdb/corefiles] segfault in
gdb.arch/i386-biarch-core.exp)

* PR backtrace/32757 ("Assertion `stashed' failed" when inline frame #0 is
duplicated)

* PR tdep/32770 ([gdb/tdep, i386] FAIL: gdb.reverse/recvmsg-reverse.exp:
continue to breakpoint: marker2)

* PR gdb/32775 ([AArch64] gdbserver crashes on SVE/SME-enabled systems)

* PR record/32784 ([gdb/record, aarch64] Stack smashing detected in
aarch64_record_asimd_load_store)

* PR tui/32797 (Escape sequences to only reset foreground or background color
to default fail)

* PR gdb/32828 (gstack regression: missing file names and line numbers)

---
 ...ian_16.2.bb => gdb-cross-canadian_16.3.bb} |   0
 .../{gdb-cross_16.2.bb => gdb-cross_16.3.bb}  |   0
 meta/recipes-devtools/gdb/gdb.inc             |   4 +-
 ...ux-nat-Define-_ABIO32-if-not-defined.patch |   2 +-
 ...e-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch |   6 +-
 ...readline.a-when-using-disable-static.patch |   2 +-
 .../gdb/gdb/0004-use-asm-sgidefs.h.patch      |   2 +-
 .../gdb/gdb/0005-Change-order-of-CFLAGS.patch |   4 +-
 .../0006-Fix-invalid-sigprocmask-call.patch   |   2 +-
 ...sing-_Alignof-when-using-C11-or-newe.patch |   2 +-
 ...ages-that-are-not-compatible-with-C2.patch |  29 ++++
 .../gdb/0009-Readline-8.3-alpha-release.patch | 164 ++++++++++++++++++
 .../gdb/{gdb_16.2.bb => gdb_16.3.bb}          |   0
 13 files changed, 206 insertions(+), 11 deletions(-)
 rename meta/recipes-devtools/gdb/{gdb-cross-canadian_16.2.bb => gdb-cross-canadian_16.3.bb} (100%)
 rename meta/recipes-devtools/gdb/{gdb-cross_16.2.bb => gdb-cross_16.3.bb} (100%)
 create mode 100644 meta/recipes-devtools/gdb/gdb/0008-Add-fix-for-packages-that-are-not-compatible-with-C2.patch
 create mode 100644 meta/recipes-devtools/gdb/gdb/0009-Readline-8.3-alpha-release.patch
 rename meta/recipes-devtools/gdb/{gdb_16.2.bb => gdb_16.3.bb} (100%)
meta/recipes-devtools/gdb/gdb-cross-canadian_16.3.bb renamed from meta/recipes-devtools/gdb/gdb-cross-canadian_16.2.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/gdb/gdb-cross-canadian_16.2.bb
rename to meta/recipes-devtools/gdb/gdb-cross-canadian_16.3.bb
meta/recipes-devtools/gdb/gdb-cross_16.3.bb renamed from meta/recipes-devtools/gdb/gdb-cross_16.2.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/gdb/gdb-cross_16.2.bb
rename to meta/recipes-devtools/gdb/gdb-cross_16.3.bb
meta/recipes-devtools/gdb/gdb.inc +3 -1
index 1ac29b45f68..a36f78fe672 100644
@@ -12,5 +12,7 @@ SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.xz \
            file://0005-Change-order-of-CFLAGS.patch \
            file://0006-Fix-invalid-sigprocmask-call.patch \
            file://0007-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch \
+           file://0008-Add-fix-for-packages-that-are-not-compatible-with-C2.patch \
+           file://0009-Readline-8.3-alpha-release.patch \
            "
-SRC_URI[sha256sum] = "4002cb7f23f45c37c790536a13a720942ce4be0402d929c9085e92f10d480119"
+SRC_URI[sha256sum] = "bcfcd095528a987917acf9fff3f1672181694926cc18d609c99d0042c00224c5"
meta/recipes-devtools/gdb/gdb/0001-mips-linux-nat-Define-_ABIO32-if-not-defined.patch +1 -1
index 5e313a08b21..7a3064a14bb 100644
@@ -1,4 +1,4 @@
-From 31c6c42479e750aff3130e76bae2646c418cb548 Mon Sep 17 00:00:00 2001
+From 8448967d9cfb09eb11fd3573a72a35ae94a89ba1 Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Wed, 23 Mar 2016 06:30:09 +0000
 Subject: [PATCH] mips-linux-nat: Define _ABIO32 if not defined
meta/recipes-devtools/gdb/gdb/0002-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch +3 -3
index 69d4d51af08..56cbacf3848 100644
@@ -1,4 +1,4 @@
-From 8f350f9b7b3934bd492cad35e1b6e44d142313a4 Mon Sep 17 00:00:00 2001
+From ec49e6283bc6a4a99596410db9509bee6cd941ce Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Sat, 30 Apr 2016 18:32:14 -0700
 Subject: [PATCH] ppc/ptrace: Define pt_regs uapi_pt_regs on !GLIBC systems
@@ -12,7 +12,7 @@ Signed-off-by: Khem Raj <[email protected]>
  2 files changed, 12 insertions(+)
 
 diff --git a/gdb/nat/ppc-linux.h b/gdb/nat/ppc-linux.h
-index b51e2278f4b..f1bc07df0e9 100644
+index 3efc1b9a9bf..635d07486de 100644
 --- a/gdb/nat/ppc-linux.h
 +++ b/gdb/nat/ppc-linux.h
 @@ -18,7 +18,13 @@
@@ -30,7 +30,7 @@ index b51e2278f4b..f1bc07df0e9 100644
  
  /* This sometimes isn't defined.  */
 diff --git a/gdbserver/linux-ppc-low.cc b/gdbserver/linux-ppc-low.cc
-index bd3ac143660..1c8c0b3a98e 100644
+index 3ce978f4c7c..38534297cdf 100644
 --- a/gdbserver/linux-ppc-low.cc
 +++ b/gdbserver/linux-ppc-low.cc
 @@ -22,7 +22,13 @@
meta/recipes-devtools/gdb/gdb/0003-Dont-disable-libreadline.a-when-using-disable-static.patch +1 -1
index 0f7f3878662..024cf34427c 100644
@@ -1,4 +1,4 @@
-From c4102e4fd74804b053c437352ef92c64c8b1fdbf Mon Sep 17 00:00:00 2001
+From 2fa91dec5f0ec5663861ca53bde8951e48557bb3 Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Sat, 30 Apr 2016 15:25:03 -0700
 Subject: [PATCH] Dont disable libreadline.a when using --disable-static
meta/recipes-devtools/gdb/gdb/0004-use-asm-sgidefs.h.patch +1 -1
index 6dee5037daf..556f371fee0 100644
@@ -1,4 +1,4 @@
-From 91e294b399c8e3de2cbdd495309f31b6a218516d Mon Sep 17 00:00:00 2001
+From 6d37100388d45185a6e88ea7099a698c2c76b084 Mon Sep 17 00:00:00 2001
 From: Andre McCurdy <[email protected]>
 Date: Sat, 30 Apr 2016 15:29:06 -0700
 Subject: [PATCH] use <asm/sgidefs.h>
meta/recipes-devtools/gdb/gdb/0005-Change-order-of-CFLAGS.patch +2 -2
index 6d5d3a7e4f9..809cd232aaa 100644
@@ -1,4 +1,4 @@
-From c151a90c6df7a8b31fe0a6c4d6d28aaff55ac25f Mon Sep 17 00:00:00 2001
+From e7cab417080f3454ea984e19384d9f1bf9e48fba Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Sat, 30 Apr 2016 15:35:39 -0700
 Subject: [PATCH] Change order of CFLAGS
@@ -13,7 +13,7 @@ Signed-off-by: Khem Raj <[email protected]>
  1 file changed, 1 insertion(+)
 
 diff --git a/gdbserver/Makefile.in b/gdbserver/Makefile.in
-index 6148ccf9121..3ad15573923 100644
+index 365dcf23650..fc16218334f 100644
 --- a/gdbserver/Makefile.in
 +++ b/gdbserver/Makefile.in
 @@ -174,6 +174,7 @@ INTERNAL_CFLAGS = \
meta/recipes-devtools/gdb/gdb/0006-Fix-invalid-sigprocmask-call.patch +1 -1
index a256b8fc682..7c9129b9f57 100644
@@ -1,4 +1,4 @@
-From f63dddf6b986642eeeefa27176d59780e1681ddd Mon Sep 17 00:00:00 2001
+From 13e61d515b74389e61fa52ca43656f9d1c294683 Mon Sep 17 00:00:00 2001
 From: Yousong Zhou <[email protected]>
 Date: Fri, 24 Mar 2017 10:36:03 +0800
 Subject: [PATCH] Fix invalid sigprocmask call
meta/recipes-devtools/gdb/gdb/0007-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch +1 -1
index dcc01e414cc..d8816e3bef2 100644
@@ -1,4 +1,4 @@
-From f1b4a90ea61771840fcf4889f616b156b5157843 Mon Sep 17 00:00:00 2001
+From 3d3d91ac1db8ee7f624d225734cb5b57b752e00b Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Sun, 15 Jan 2023 00:16:25 -0800
 Subject: [PATCH] Define alignof using _Alignof when using C11 or newer
meta/recipes-devtools/gdb/gdb/0008-Add-fix-for-packages-that-are-not-compatible-with-C2.patch new file +29 -0
new file mode 100644
index 00000000000..661eb261c2e
@@ -0,0 +1,29 @@
+From f71cfa9db1a196f0fadb2090ac04ce3164e171d3 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sun, 16 Mar 2025 12:48:46 -0700
+Subject: [PATCH] Add fix for packages that are not compatible with C23
+
+Fixes builds with GCC-15
+Sourced from Fedora: https://src.fedoraproject.org/rpms/readline/c/c47eb813afb942128253213ad5b8221770557e48?branch=rawhide
+
+Help getting packages like bluez5 building
+
+Upstream-Status: Submitted [https://lists.gnu.org/archive/html/bug-readline/2025-03/msg00001.html]
+Signed-off-by: Khem Raj <[email protected]>
+---
+ readline/readline/rlstdc.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/readline/readline/rlstdc.h b/readline/readline/rlstdc.h
+index 2aaa30babfb..a7a0ef30428 100644
+--- a/readline/readline/rlstdc.h
++++ b/readline/readline/rlstdc.h
+@@ -44,7 +44,7 @@
+ 
+ /* Moved from config.h.in because readline.h:rl_message depends on these
+    defines. */
+-#if defined (__STDC__) && defined (HAVE_STDARG_H)
++#if defined (__STDC__)
+ #  define PREFER_STDARG
+ #  define USE_VARARGS
+ #else
meta/recipes-devtools/gdb/gdb/0009-Readline-8.3-alpha-release.patch new file +164 -0

164 lines not on this page · raw message

meta/recipes-devtools/gdb/gdb_16.3.bb renamed from meta/recipes-devtools/gdb/gdb_16.2.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/gdb/gdb_16.2.bb
rename to meta/recipes-devtools/gdb/gdb_16.3.bb