sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[[SM-Commit] ] GIT changes to master grimoire by Pavel Vinogradov (04013ca9d642d38e1cdaf8bda3a32eb3b3fdfe91)
- From: Pavel Vinogradov <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org, sm-commit AT lists.sourcemage.org
- Subject: [[SM-Commit] ] GIT changes to master grimoire by Pavel Vinogradov (04013ca9d642d38e1cdaf8bda3a32eb3b3fdfe91)
- Date: Thu, 15 Oct 2026 02:19:48 +0000
GIT changes to master grimoire by Pavel Vinogradov <public AT sourcemage.org>:
libs/yasm/HISTORY | 4 ++
libs/yasm/PRE_BUILD | 4 ++
libs/yasm/patches/fix-build-with-gcc-15.patch | 36
++++++++++++++++++++++++++
3 files changed, 43 insertions(+), 1 deletion(-)
New commits:
commit 04013ca9d642d38e1cdaf8bda3a32eb3b3fdfe91
Author: Pavel Vinogradov <public AT sourcemage.org>
Commit: Pavel Vinogradov <public AT sourcemage.org>
libs/yasm: fixed building with gcc >= 15
diff --git a/libs/yasm/HISTORY b/libs/yasm/HISTORY
index ed66637..065877d 100644
--- a/libs/yasm/HISTORY
+++ b/libs/yasm/HISTORY
@@ -1,3 +1,7 @@
+2026-1-14 Pavel Vinogradov <public AT sourcemage.org>
+ * PRE_BUILD, patches/fix-build-with-gcc-15.patch: added patch to fix
building
+ with gcc >= 15 (kudos to diego3kas forv spotting), sedit -> sed -i
+
2021-03-29 Treeve Jelbert <>treeve AT sourcemage.org
* DEPENDS: add optional GETTEXT
diff --git a/libs/yasm/PRE_BUILD b/libs/yasm/PRE_BUILD
index ddbdb63..19bf9f8 100755
--- a/libs/yasm/PRE_BUILD
+++ b/libs/yasm/PRE_BUILD
@@ -1,3 +1,5 @@
default_pre_build &&
cd "$SOURCE_DIRECTORY" &&
-sedit 's!maybe_os in$!& linux-musl*|\\!' config/config.sub
+sed 's!maybe_os in$!& linux-musl*|\\!' -i config/config.sub &&
+
+apply_patch_dir "patches"
diff --git a/libs/yasm/patches/fix-build-with-gcc-15.patch
b/libs/yasm/patches/fix-build-with-gcc-15.patch
new file mode 100644
index 0000000..655cb18
--- /dev/null
+++ b/libs/yasm/patches/fix-build-with-gcc-15.patch
@@ -0,0 +1,36 @@
+From 715d3d5c5c955155bd53f2577693c8803ced8d01 Mon Sep 17 00:00:00 2001
+From: Martin 'JaMa' Jansa <Martin.Jansa AT gmail.com>
+Date: Wed, 22 Jul 2026 03:45:50 +0200
+Subject: [PATCH] bitvect: fix build with gcc-15 (#287)
+
+* fixes:
+libyasm/bitvect.h:86:32: error: cannot use keyword 'false' as enumeration
constant
+ 86 | typedef enum boolean { false = FALSE, true = TRUE } boolean;
+ | ^~~~~
+../git/libyasm/bitvect.h:86:32: note: 'false' is a keyword with '-std=c23'
onwards
+
+as suggested in:
+https://github.com/yasm/yasm/issues/283#issuecomment-2661108816
+
+Signed-off-by: Martin Jansa <martin.jansa AT gmail.com>
+---
+ libyasm/bitvect.h | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/libyasm/bitvect.h b/libyasm/bitvect.h
+index 3aee3a531..a13470ada 100644
+--- a/libyasm/bitvect.h
++++ b/libyasm/bitvect.h
+@@ -83,7 +83,11 @@ typedef Z_longword *Z_longwordptr;
+ #ifdef MACOS_TRADITIONAL
+ #define boolean Boolean
+ #else
+- typedef enum boolean { false = FALSE, true = TRUE } boolean;
++ #if __STDC_VERSION__ < 202311L
++ typedef enum boolean { false = FALSE, true = TRUE } boolean;
++ #else
++ typedef bool boolean;
++ #endif
+ #endif
+ #endif
+
- [[SM-Commit] ] GIT changes to master grimoire by Pavel Vinogradov (04013ca9d642d38e1cdaf8bda3a32eb3b3fdfe91), Pavel Vinogradov, 10/14/2026
Archive powered by MHonArc 2.6.24.