Skip to contentSkip to conversation

makedumpfile: Upgrade 1.7.9 -> 1.8.0

PATCH New Jaipaul Cheernam 1 participant 2 messages Nov 17 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 makedumpfile: Upgrade 1.7.9 -> 1.8.0

ReleaseInfo: https://github.com/makedumpfile/makedumpfile/releases/tag/1.8.0

[v1.8.0] Update version
[PATCH] Derive the mem_section mem_map mask from SIZE(page) [PATCH] README: Remove email addresses that will be gone and update information [PATCH v2 7/9] Add PG_INCLUDE_HEAD extension return status
[PATCH v2 6/9] Simplify arguments for page checks
[PATCH v2 5/9] Move page checks into makedumpfile.h
[PATCH v2 4/9] Introduce a stat for pages retained by extension [PATCH v2 3/9] Share page information with extension callbacks [PATCH v2 2/9] Honor CFLAGS in extensions/Makefile
[PATCH v2 1/9] Do not call extensions for tail pages
[PATCH 6/6] Ensure e_phentsize does not exceed buf size
[PATCH 5/6] Ensure get_smram_cpu_state() does not read beyond smram [PATCH 4/6] Add an out-of-bounds check for info->valid_pages[] [PATCH 3/6] Prevent a multiply overflow in cache_init()
[PATCH 2/6] Add an out-of-bounds check for si->block_table[] [PATCH 1/6] Ensure page_desc does not exceed page_size
[PATCH] Avoid glibc lazy-unwind machinery in parallel teardown [PATCH] arm64: Add 5-level page table support for 4K pages with 52-bit VA [PATCH v6 09/10] Doc: Add --extension option to makedumpfile manual [PATCH v6 08/10] Add erase_sample extension as an data erase reference [PATCH v6 07/10] Add sample extension as an example reference [PATCH v6 06/10] Add makedumpfile extensions support
[PATCH v6 05/10] Implement kernel module's btf resolving
[PATCH v6 04/10] Implement kernel module's kallsyms resolving [PATCH v6 03/10] Implement kernel btf resolving
[PATCH v6 02/10] Implement kernel kallsyms resolving
[PATCH v6 01/10] Reserve sections for makedumpfile and extenions [PATCH] Fix error and simplify eppic_scripts/proc_names_3_10_to_4_8.c [PATCH] Fix wrong exclusion of compound tail pages on Linux 7.1 and later [PATCH v2 2/2] riscv64: Fix huge page translation in vtop_riscv64() [PATCH v2 1/2] riscv64: Fix vaddr_to_paddr for vmalloc and vmemmap regions [PATCH] Mark start of 1.8.0 development phase with version 1.7.9++

- Refresh existing patch for 1.8.0

---
 ...makedumpfile-replace-hardcode-CFLAGS.patch | 45 +++++++++++--------
 ...umpfile_1.7.9.bb => makedumpfile_1.8.0.bb} |  2 +-
 2 files changed, 27 insertions(+), 20 deletions(-)
 rename meta/recipes-kernel/makedumpfile/{makedumpfile_1.7.9.bb => makedumpfile_1.8.0.bb} (96%)
meta/recipes-kernel/makedumpfile/makedumpfile/0001-makedumpfile-replace-hardcode-CFLAGS.patch +26 -19
index 9b527cfb99..5afdd338ff 100644
@@ -1,6 +1,6 @@
-From 8d200d7cd700f93333353632e7dce48cf4b871fe Mon Sep 17 00:00:00 2001
+From b19405a555473b6045cea94f77ac14388085c960 Mon Sep 17 00:00:00 2001
 From: Mingli Yu <[email protected]>
-Date: Sun, 24 Apr 2022 17:25:33 +0800
+Date: Tue, 17 Nov 2026 12:25:17 +0000
 Subject: [PATCH] makedumpfile: replace hardcode CFLAGS
 
 * Create alias for target such as powerpc as powerpc32
@@ -19,15 +19,19 @@ Signed-off-by: Fathi Boudra <[email protected]>
 
 Rebase to 1.7.1
 Signed-off-by: Mingli Yu <[email protected]>
+
+[2026-11-17] Rebase to 1.8.0.
+rebase CFLAGS patch to 1.8.0 (keep -llzma, add powerpc32 alias)
+Signed-off-by: Jaipaul Cheernam <[email protected]>
 ---
- Makefile | 40 +++++++++++++++++++++-------------------
- 1 file changed, 21 insertions(+), 19 deletions(-)
+ Makefile | 39 +++++++++++++++++++++------------------
+ 1 file changed, 21 insertions(+), 18 deletions(-)
 
 diff --git a/Makefile b/Makefile
-index b2ffcec..e416f4e 100644
+index a7b5ec9..a0d86ba 100644
 --- a/Makefile
 +++ b/Makefile
-@@ -8,12 +8,6 @@ ifeq ($(strip $CC),)
+@@ -8,10 +8,6 @@ ifeq ($(strip $CC),)
  CC	= gcc
  endif
  
@@ -35,12 +39,10 @@ index b2ffcec..e416f4e 100644
 -		-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
 -CFLAGS      := $(CFLAGS_BASE) -DVERSION='"$(VERSION)"' -DRELEASE_DATE='"$(DATE)"'
 -CFLAGS_ARCH := $(CFLAGS_BASE)
--# LDFLAGS = -L/usr/local/lib -I/usr/local/include
--
+ # LDFLAGS = -L/usr/local/lib -I/usr/local/include
+ 
  HOST_ARCH := $(shell uname -m)
- # Use TARGET as the target architecture if specified.
- # Defaults to uname -m
-@@ -24,26 +18,34 @@ endif
+@@ -24,26 +20,33 @@ endif
  ARCH := $(shell echo ${TARGET}  | sed -e s/i.86/x86/ -e s/sun4u/sparc64/ \
  			       -e s/arm.*/arm/ -e s/sa110/arm/ \
  			       -e s/s390x/s390/ -e s/parisc64/parisc/ \
@@ -76,12 +78,11 @@ index b2ffcec..e416f4e 100644
 +CFLAGS_COMMON = $(CFLAGS_ARCH) \
 +              -DVERSION='"$(VERSION)"' \
 +              -DRELEASE_DATE='"$(DATE)"'
-+
 +
  SRC_BASE = makedumpfile.c makedumpfile.h diskdump_mod.h sadump_mod.h sadump_info.h
- SRC_PART = print_info.c dwarf_info.c elf_info.c erase_info.c sadump_info.c cache.c tools.c printk.c detect_cycle.c
+ SRC_PART = print_info.c dwarf_info.c elf_info.c erase_info.c sadump_info.c cache.c tools.c printk.c detect_cycle.c kallsyms.c btf_info.c extension.c
  OBJ_PART=$(patsubst %.c,%.o,$(SRC_PART))
-@@ -52,12 +54,12 @@ OBJ_ARCH=$(patsubst %.c,%.o,$(SRC_ARCH))
+@@ -52,12 +55,12 @@ OBJ_ARCH=$(patsubst %.c,%.o,$(SRC_ARCH))
  
  LIBS = -ldw -lbz2 -ldl -lelf -lz
  ifneq ($(LINKTYPE), dynamic)
@@ -96,7 +97,7 @@ index b2ffcec..e416f4e 100644
  endif
  
  ifeq ($(USESNAPPY), on)
-@@ -65,12 +67,12 @@ LIBS := -lsnappy $(LIBS)
+@@ -65,17 +68,17 @@ LIBS := -lsnappy $(LIBS)
  ifneq ($(LINKTYPE), dynamic)
  LIBS := $(LIBS) -lstdc++
  endif
@@ -110,8 +111,14 @@ index b2ffcec..e416f4e 100644
 +CFLAGS_COMMON += -DUSEZSTD
  endif
  
+ ifeq ($(EXTENSION), on)
+ LIBS := -lbpf $(LIBS)
+-CFLAGS += -DEXTENSION
++CFLAGS_COMMON += -DEXTENSION
+ endif
+ 
  ifeq ($(DEBUG), on)
-@@ -106,14 +108,14 @@ SBINDIR ?= /usr/sbin
+@@ -111,14 +114,14 @@ SBINDIR ?= /usr/sbin
  all: makedumpfile
  
  $(OBJ_PART): $(SRC_PART)
@@ -123,12 +130,12 @@ index b2ffcec..e416f4e 100644
  	$(CC) $(CFLAGS_ARCH) -c -o ./$@ $(VPATH)$(@:.o=.c)
  
  makedumpfile: $(SRC_BASE) $(OBJ_PART) $(OBJ_ARCH)
--	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJ_PART) $(OBJ_ARCH) -rdynamic -o $@ $< $(LIBS)
-+	$(CC) $(CFLAGS_COMMON) $(LDFLAGS) $(OBJ_PART) $(OBJ_ARCH) -rdynamic -o $@ $< $(LIBS)
+-	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJ_PART) $(OBJ_ARCH) -rdynamic -Wl,-T,makedumpfile.ld -o $@ $< $(LIBS)
++	$(CC) $(CFLAGS_COMMON) $(LDFLAGS) $(OBJ_PART) $(OBJ_ARCH) -rdynamic -Wl,-T,makedumpfile.ld -o $@ $< $(LIBS)
  	@sed -e "s/@DATE@/$(DATE)/" \
  	     -e "s/@VERSION@/$(VERSION)/" \
  	     $(VPATH)makedumpfile.8.in > $(VPATH)makedumpfile.8
-@@ -122,7 +124,7 @@ makedumpfile: $(SRC_BASE) $(OBJ_PART) $(OBJ_ARCH)
+@@ -127,7 +130,7 @@ makedumpfile: $(SRC_BASE) $(OBJ_PART) $(OBJ_ARCH)
  	     $(VPATH)makedumpfile.conf.5.in > $(VPATH)makedumpfile.conf.5
  
  eppic_makedumpfile.so: extension_eppic.c
meta/recipes-kernel/makedumpfile/makedumpfile_1.8.0.bb renamed from meta/recipes-kernel/makedumpfile/makedumpfile_1.7.9.bb +1 -1
similarity index 96%
rename from meta/recipes-kernel/makedumpfile/makedumpfile_1.7.9.bb
rename to meta/recipes-kernel/makedumpfile/makedumpfile_1.8.0.bb
index 62298735ea..f8a952dac3 100644
@@ -11,7 +11,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
 LICENSE = "GPL-2.0-only"
 
 SRCBRANCH ?= "master"
-SRCREV = "eb42d6330b275ba344ca170286480917450d7f73"
+SRCREV = "ae6c64cd2693cd7c4b683d1948d4bb1b206636d0"
 
 DEPENDS = "bzip2 zlib elfutils xz"
 RDEPENDS:${PN}-tools = "perl ${PN}"
#1 lore raw

PATCH 2/2 webkitgtk: Upgrade 2.52.6 -> 2.54.2

ReleaseNotes: https://www.webkitgtk.org/2026/10/23/webkitgtk2.54.2-released.html

CompareLog: https://github.com/WebKit/WebKit/compare/webkitgtk-2.52.6...webkitgtk-2.54.2
(CompareLogs shows 5000+ commits)

- Refresh existing patches
- Add patch 0001-libpas-Do-not-include-stdatomic.h-from-C-translation.patch to fix a build failure with GCC.

---
 ...able-to-control-macro-__PAS_ALWAYS_I.patch | 23 ++++----
 ...spection.cmake-prefix-variables-obta.patch |  2 +-
 ...dGLib.cmake-do-not-set-include-dirs-.patch |  6 +-
 ...clude-stdatomic.h-from-C-translation.patch | 57 +++++++++++++++++++
 .../webkit/webkitgtk/fix-ftbfs-riscv64.patch  |  8 +--
 .../webkit/webkitgtk/reproducibility.patch    |  2 +-
 .../webkit/webkitgtk/sys_futex.patch          |  2 +-
 .../webkit/webkitgtk/t6-not-declared.patch    |  6 +-
 ...ebkitgtk_2.52.6.bb => webkitgtk_2.54.2.bb} |  3 +-
 9 files changed, 85 insertions(+), 24 deletions(-)
 create mode 100644 meta/recipes-sato/webkit/webkitgtk/0001-libpas-Do-not-include-stdatomic.h-from-C-translation.patch
 rename meta/recipes-sato/webkit/{webkitgtk_2.52.6.bb => webkitgtk_2.54.2.bb} (98%)
meta/recipes-sato/webkit/webkitgtk/0001-CMake-Add-a-variable-to-control-macro-__PAS_ALWAYS_I.patch +13 -10
index 3d8ef579a0..243f5870bf 100644
@@ -1,4 +1,4 @@
-From 891c2de3ea6a3399d0144824c35b2dae0b7a246d Mon Sep 17 00:00:00 2001
+From bf74a02e45b3e147d912833a4ec6ba489a28344d Mon Sep 17 00:00:00 2001
 From: Kai Kang <[email protected]>
 Date: Fri, 11 Aug 2023 14:20:48 +0800
 Subject: [PATCH] Add a variable to control macro
@@ -35,19 +35,21 @@ gcc option `-Og` is used.
 * Source/bmalloc/libpas/src/libpas/pas_utils_prefix.h:
 * Source/cmake/WebKitCompilerFlags.cmake:
 
+Rebased on 2.54.2.
+
 Upstream-Status: Submitted [https://github.com/WebKit/WebKit/pull/16601]
 
 Signed-off-by: Kai Kang <[email protected]>
 ---
  Source/bmalloc/libpas/src/libpas/pas_utils_prefix.h | 2 +-
- Source/cmake/WebKitCompilerFlags.cmake              | 7 +++++++
- 2 files changed, 8 insertions(+), 1 deletion(-)
+ Source/cmake/WebKitCompilerFlags.cmake              | 8 ++++++++
+ 2 files changed, 9 insertions(+), 1 deletion(-)
 
 diff --git a/Source/bmalloc/libpas/src/libpas/pas_utils_prefix.h b/Source/bmalloc/libpas/src/libpas/pas_utils_prefix.h
-index a845ed01..4bde7544 100644
+index c42ee5f1..353c58f3 100644
 --- a/Source/bmalloc/libpas/src/libpas/pas_utils_prefix.h
 +++ b/Source/bmalloc/libpas/src/libpas/pas_utils_prefix.h
-@@ -46,7 +46,7 @@ __PAS_BEGIN_EXTERN_C;
+@@ -45,7 +45,7 @@ __PAS_BEGIN_EXTERN_C;
  #define __SUSPICIOUS__
  #define __BROKEN__
  
@@ -57,14 +59,15 @@ index a845ed01..4bde7544 100644
  #else
  #define __PAS_ALWAYS_INLINE_BUT_NOT_INLINE
 diff --git a/Source/cmake/WebKitCompilerFlags.cmake b/Source/cmake/WebKitCompilerFlags.cmake
-index efdf8d4d..8c57ad5b 100644
+index 0793c789..9a139f2f 100644
 --- a/Source/cmake/WebKitCompilerFlags.cmake
 +++ b/Source/cmake/WebKitCompilerFlags.cmake
-@@ -570,3 +570,10 @@ endif ()
- 
- # FIXME: Enable pre-compiled headers for all ports <https://webkit.org/b/139438>
- set(CMAKE_DISABLE_PRECOMPILE_HEADERS ON)
+@@ -635,3 +635,11 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND WTF_CPU_MIPS)
+     # (see comment #28 in the link above).
+     WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-mno-lxc1-sxc1)
+ endif ()
 +
++# rebased on 2.54.2
 +# It fails to compile with `gcc -Og`
 +set(WEBKIT_NO_INLINE_HINTS OFF CACHE BOOL "Disable funtion attribute always_inline for WebKit")
 +
meta/recipes-sato/webkit/webkitgtk/0001-FindGObjectIntrospection.cmake-prefix-variables-obta.patch +1 -1
index f6449c29b0..37ad5ecb80 100644
@@ -1,4 +1,4 @@
-From 3cec4a230abbe5c2f78f8966c06b009be7504354 Mon Sep 17 00:00:00 2001
+From 1eb26767f3ce493e8fd4ecd7a0d3d8bb645a225b Mon Sep 17 00:00:00 2001
 From: Alexander Kanavin <[email protected]>
 Date: Tue, 27 Oct 2015 16:02:19 +0200
 Subject: [PATCH] FindGObjectIntrospection.cmake: prefix variables obtained
meta/recipes-sato/webkit/webkitgtk/0001-Source-cmake-FindGLib.cmake-do-not-set-include-dirs-.patch +3 -3
index 334bf33fc1..d9d664bca4 100644
@@ -1,4 +1,4 @@
-From a6e91e04651dbd2d003dbaef0919284a8944184e Mon Sep 17 00:00:00 2001
+From 1899b9f2eadbe4f2cd5b4a68d0788e8a9f02cabb Mon Sep 17 00:00:00 2001
 From: Alexander Kanavin <[email protected]>
 Date: Sun, 21 Jun 2026 22:57:24 +0200
 Subject: [PATCH] Source/cmake/FindGLib.cmake: do not set include dirs from
@@ -17,10 +17,10 @@ Signed-off-by: Alexander Kanavin <[email protected]>
  1 file changed, 1 deletion(-)
 
 diff --git a/Source/cmake/FindGLib.cmake b/Source/cmake/FindGLib.cmake
-index 00de647d..68581c25 100644
+index b6ff9283..e9697ba8 100644
 --- a/Source/cmake/FindGLib.cmake
 +++ b/Source/cmake/FindGLib.cmake
-@@ -191,7 +191,6 @@ function(GLib_HandleComponent name)
+@@ -195,7 +195,6 @@ function(GLib_HandleComponent name)
      list(TRANSFORM dependencies PREPEND GLib::)
      add_library(GLib::${name} UNKNOWN IMPORTED GLOBAL)
      set_target_properties(GLib::${name} PROPERTIES IMPORTED_LOCATION "${GLib_${name}_LIBRARY}")
meta/recipes-sato/webkit/webkitgtk/0001-libpas-Do-not-include-stdatomic.h-from-C-translation.patch new file +57 -0

57 lines not on this page · raw message

meta/recipes-sato/webkit/webkitgtk/fix-ftbfs-riscv64.patch +4 -4
index 9d10603e0c..a77db5668d 100644
@@ -1,4 +1,4 @@
-From a7e4c23c7f6faf76307ecad5f879e47b96ca66c9 Mon Sep 17 00:00:00 2001
+From ae017d7bd4d98a28a4f89a4ca75493333172bd35 Mon Sep 17 00:00:00 2001
 From: Alberto Garcia <[email protected]>
 Date: Fri, 19 Dec 2025 10:10:41 +0000
 Subject: [PATCH] Use WTF_CPU_UNKNOWN when building for riscv64
@@ -17,7 +17,7 @@ Signed-off-by: Khem Raj <[email protected]>
  2 files changed, 10 deletions(-)
 
 diff --git a/Source/WTF/wtf/PlatformCPU.h b/Source/WTF/wtf/PlatformCPU.h
-index 8aac1024..d9d69a40 100644
+index fabd6cba..c8639827 100644
 --- a/Source/WTF/wtf/PlatformCPU.h
 +++ b/Source/WTF/wtf/PlatformCPU.h
 @@ -286,14 +286,6 @@
@@ -36,10 +36,10 @@ index 8aac1024..d9d69a40 100644
  #define WTF_CPU_UNKNOWN 1
  #endif
 diff --git a/Source/cmake/WebKitCommon.cmake b/Source/cmake/WebKitCommon.cmake
-index 639b7e5d..c7e60287 100644
+index d96e1850..3daa0eaf 100644
 --- a/Source/cmake/WebKitCommon.cmake
 +++ b/Source/cmake/WebKitCommon.cmake
-@@ -129,8 +129,6 @@ if (NOT HAS_RUN_WEBKIT_COMMON)
+@@ -186,8 +186,6 @@ if (NOT HAS_RUN_WEBKIT_COMMON)
          set(WTF_CPU_PPC64 1)
      elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64le")
          set(WTF_CPU_PPC64LE 1)
meta/recipes-sato/webkit/webkitgtk/reproducibility.patch +1 -1
index 4a04b1393d..c2e7961db3 100644
@@ -1,4 +1,4 @@
-From 07ff0c87a0f584c7c6cc1cf723641707a16255f3 Mon Sep 17 00:00:00 2001
+From 5cbe3e7db8982078157de0d2bcc8e8bedf7d3c77 Mon Sep 17 00:00:00 2001
 From: Richard Purdie <[email protected]>
 Date: Mon, 3 Jan 2022 14:18:34 +0000
 Subject: [PATCH] webkitgtk: Add reproducibility fix
meta/recipes-sato/webkit/webkitgtk/sys_futex.patch +1 -1
index e9161ef037..1797d83303 100644
@@ -1,4 +1,4 @@
-From 4ca8868a69eaf046db523a0fde869bfd46d9878c Mon Sep 17 00:00:00 2001
+From addce4888885a925f7711efda729d94cea312fe0 Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Wed, 18 Dec 2024 20:24:22 -0800
 Subject: [PATCH] Fix build on newer 32bit architectures with only 64bit time_t
meta/recipes-sato/webkit/webkitgtk/t6-not-declared.patch +3 -3
index 46431d78f8..84fc64ca1b 100644
@@ -1,4 +1,4 @@
-From c480a5dc8491d1422994007b149ee08f8d2cc9c5 Mon Sep 17 00:00:00 2001
+From 8b7bb89d335163162fdc374f5a231273ae5b2f75 Mon Sep 17 00:00:00 2001
 From: Michael Catanzaro <[email protected]>
 Date: Mon, 5 Feb 2024 11:00:49 -0600
 Subject: [PATCH] =?UTF-8?q?LowLevelInterpreter.cpp:339:21:=20error:=20?=
@@ -21,10 +21,10 @@ Signed-off-by: Alexander Kanavin <[email protected]>
  1 file changed, 2 deletions(-)
 
 diff --git a/Source/JavaScriptCore/llint/LowLevelInterpreter.cpp b/Source/JavaScriptCore/llint/LowLevelInterpreter.cpp
-index fcec367d..851f68d9 100644
+index dd0b44de..c0a68a22 100644
 --- a/Source/JavaScriptCore/llint/LowLevelInterpreter.cpp
 +++ b/Source/JavaScriptCore/llint/LowLevelInterpreter.cpp
-@@ -341,8 +341,6 @@ JSValue CLoop::execute(OpcodeID entryOpcodeID, void* executableAddress, VM* vm,
+@@ -345,8 +345,6 @@ JSValue CLoop::execute(OpcodeID entryOpcodeID, void* executableAddress, VM* vm,
      UNUSED_VARIABLE(t2);
      UNUSED_VARIABLE(t3);
      UNUSED_VARIABLE(t5);
meta/recipes-sato/webkit/webkitgtk_2.54.2.bb renamed from meta/recipes-sato/webkit/webkitgtk_2.52.6.bb +2 -1
similarity index 98%
rename from meta/recipes-sato/webkit/webkitgtk_2.52.6.bb
rename to meta/recipes-sato/webkit/webkitgtk_2.54.2.bb
index e7296d0ad4..fe6713d641 100644
@@ -17,8 +17,9 @@ SRC_URI = "https://www.webkitgtk.org/releases/${BPN}-${PV}.tar.xz \
            file://sys_futex.patch \
            file://fix-ftbfs-riscv64.patch \
            file://0001-Source-cmake-FindGLib.cmake-do-not-set-include-dirs-.patch \
+           file://0001-libpas-Do-not-include-stdatomic.h-from-C-translation.patch \
            "
-SRC_URI[sha256sum] = "179a2ea3f8f6edd4be7f31fdc55afc57bd0729f1fba648c61d4181539ac116fc"
+SRC_URI[sha256sum] = "a76345b391bef6211fb5ab6cfab2e86b285d18cda17cbb9ade595f1252b86065"
 
 inherit cmake pkgconfig gobject-introspection perlnative features_check upstream-version-is-even gi-docgen