From 09472c79f8a8aea0cda6a82e62ba67572bef1887 Mon Sep 17 00:00:00 2001 From: Marshall Ward Date: Mon, 8 Jun 2026 22:14:35 -0400 Subject: [PATCH 1/4] ncurses: Disable C++ and TERMINFO * Build host without C++ bindings * Unset TERMINFO and TERMINFO_DIR to prevent tic reading user environ --- projects/ROCKNIX/packages/devel/ncurses/package.mk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/projects/ROCKNIX/packages/devel/ncurses/package.mk b/projects/ROCKNIX/packages/devel/ncurses/package.mk index b1fdfacf00d..2252410e9c8 100644 --- a/projects/ROCKNIX/packages/devel/ncurses/package.mk +++ b/projects/ROCKNIX/packages/devel/ncurses/package.mk @@ -62,13 +62,20 @@ PKG_CONFIGURE_OPTS_TARGET="--without-ada \ --enable-sigwinch \ --cache-file=config.cache" -PKG_CONFIGURE_OPTS_HOST="--enable-termcap \ +PKG_CONFIGURE_OPTS_HOST="--without-cxx-binding \ + --enable-termcap \ --with-termlib \ --with-shared \ --enable-pc-files \ --without-tests \ --without-manpages" +pre_configure_host() { + unset TERMINFO + unset TERMINFO_DIR +} + + pre_configure_target() { cat >config.cache < Date: Wed, 10 Jun 2026 21:48:05 -0400 Subject: [PATCH 2/4] SPIRV-tools: patch an uninitialized variable Patch to get around an uninitialized variable warning. --- .../patches/spirv-tools-0001-op-words-warn.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 projects/ROCKNIX/packages/graphics/spirv-tools/patches/spirv-tools-0001-op-words-warn.patch diff --git a/projects/ROCKNIX/packages/graphics/spirv-tools/patches/spirv-tools-0001-op-words-warn.patch b/projects/ROCKNIX/packages/graphics/spirv-tools/patches/spirv-tools-0001-op-words-warn.patch new file mode 100644 index 00000000000..9d27302f2ff --- /dev/null +++ b/projects/ROCKNIX/packages/graphics/spirv-tools/patches/spirv-tools-0001-op-words-warn.patch @@ -0,0 +1,14 @@ +diff --git a/source/opt/decoration_manager.cpp b/source/opt/decoration_manager.cpp +index 3e95dbc..92657fb 100644 +--- a/source/opt/decoration_manager.cpp ++++ b/source/opt/decoration_manager.cpp +@@ -543,7 +543,8 @@ void DecorationManager::CloneDecorations(uint32_t from, uint32_t to) { + const uint32_t num_operands = inst->NumOperands(); + for (uint32_t i = 1; i < num_operands; i += 2) { + Operand op = inst->GetOperand(i); +- if (op.words[0] == from) { // add new pair of operands: (to, literal) ++ if (!op.words.empty() && ++ op.words[0] == from) { + inst->AddOperand( + Operand(spv_operand_type_t::SPV_OPERAND_TYPE_ID, {to})); + op = inst->GetOperand(i + 1); From c88458d9dc832257260781d66d2358940380f45e Mon Sep 17 00:00:00 2001 From: Marshall Ward Date: Thu, 11 Jun 2026 08:05:56 -0400 Subject: [PATCH 3/4] Fluidsynth: Add rpaths --- projects/ROCKNIX/packages/audio/fluidsynth/package.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/ROCKNIX/packages/audio/fluidsynth/package.mk b/projects/ROCKNIX/packages/audio/fluidsynth/package.mk index 51a263feddc..19fd900f3f0 100644 --- a/projects/ROCKNIX/packages/audio/fluidsynth/package.mk +++ b/projects/ROCKNIX/packages/audio/fluidsynth/package.mk @@ -11,3 +11,7 @@ PKG_CMAKE_OPTS_TARGET="-DBUILD_SHARED_LIBS=1 \ -Denable-pulseaudio=1 \ -Denable-systemd=1 \ -Denable-readline=0" + +pre_configure_target() { + export LDFLAGS="${LDFLAGS} -Wl,-rpath-link,${TOOLCHAIN}/${TARGET_NAME}/lib" +} From 2d97d93ffdaf092636d9b9720b8793e02ab0a225 Mon Sep 17 00:00:00 2001 From: Marshall Ward Date: Sat, 13 Jun 2026 19:07:13 -0400 Subject: [PATCH 4/4] grub: Patch to handle str* API changes Updates to several glibc str*() functions now expect inputs and output const state to match. This patch adds a patch to grub to correct these arguments. --- .../tools/grub/patches/grub-const-char.patch | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 projects/ROCKNIX/packages/tools/grub/patches/grub-const-char.patch diff --git a/projects/ROCKNIX/packages/tools/grub/patches/grub-const-char.patch b/projects/ROCKNIX/packages/tools/grub/patches/grub-const-char.patch new file mode 100644 index 00000000000..ab6d6de383f --- /dev/null +++ b/projects/ROCKNIX/packages/tools/grub/patches/grub-const-char.patch @@ -0,0 +1,79 @@ +diff --git a/grub-core/osdep/linux/ofpath.c b/grub-core/osdep/linux/ofpath.c +index a6153d3..79e442b 100644 +--- a/grub-core/osdep/linux/ofpath.c ++++ b/grub-core/osdep/linux/ofpath.c +@@ -488,13 +488,13 @@ check_hba_identifiers (const char *sysfs_path, int *vendor, int *device_id) + static void + check_sas (const char *sysfs_path, int *tgt, unsigned long int *sas_address) + { +- char *ed = strstr (sysfs_path, "end_device"); +- char *p, *q, *path; ++ const char *sysfs_ed = strstr (sysfs_path, "end_device"); ++ char *ed, *p, *q, *path; + char phy[21]; + int fd; + size_t path_size; + +- if (!ed) ++ if (!sysfs_ed) + return; + + /* SAS devices are identified using disk@$PHY_ID */ +diff --git a/util/probe.c b/util/probe.c +index 81d91cf..a9158d6 100644 +--- a/util/probe.c ++++ b/util/probe.c +@@ -70,7 +70,7 @@ char * + grub_util_guess_bios_drive (const char *orig_path) + { + char *canon; +- char *ptr; ++ const char *ptr; + canon = grub_canonicalize_file_name (orig_path); + if (!canon) + return NULL; +@@ -99,7 +99,7 @@ char * + grub_util_guess_efi_drive (const char *orig_path) + { + char *canon; +- char *ptr; ++ const char *ptr; + canon = grub_canonicalize_file_name (orig_path); + if (!canon) + return NULL; +@@ -128,7 +128,7 @@ char * + grub_util_guess_baremetal_drive (const char *orig_path) + { + char *canon; +- char *ptr; ++ const char *ptr; + canon = grub_canonicalize_file_name (orig_path); + if (!canon) + return NULL; +diff --git a/util/resolve.c b/util/resolve.c +index b6e2631..5310a55 100644 +--- a/util/resolve.c ++++ b/util/resolve.c +@@ -138,8 +138,8 @@ read_dep_list (FILE *fp) + static char * + get_module_name (const char *str) + { +- char *base; +- char *ext; ++ const char *base; ++ const char *ext; + + base = strrchr (str, '/'); + if (! base) +@@ -164,9 +164,9 @@ get_module_name (const char *str) + static char * + get_module_path (const char *prefix, const char *str) + { +- char *dir; ++ const char *dir; + char *base; +- char *ext; ++ const char *ext; + char *ret; + + ext = strrchr (str, '.');