From 5987fffde70a77aeb785bd62182986dc73c662d7 Mon Sep 17 00:00:00 2001 From: Admin Pupkin Date: Fri, 29 May 2026 21:49:07 +0300 Subject: [PATCH] fix: P12 init_debug import error in base init The init_debug macro was used without importing it, causing a compile error. P12 patch adds the missing import. Wired into base recipe.toml patches list. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- local/patches/base/P12-init-fix-init-debug-import.patch | 7 +++++++ recipes/core/base/recipe.toml | 1 + 2 files changed, 8 insertions(+) create mode 100644 local/patches/base/P12-init-fix-init-debug-import.patch diff --git a/local/patches/base/P12-init-fix-init-debug-import.patch b/local/patches/base/P12-init-fix-init-debug-import.patch new file mode 100644 index 0000000000..a9cb04a7fb --- /dev/null +++ b/local/patches/base/P12-init-fix-init-debug-import.patch @@ -0,0 +1,7 @@ +diff --git a/init/src/main.rs b/init/src/main.rs +index 45cb9f73..f3861e94 100644 +--- a/init/src/main.rs ++++ b/init/src/main.rs +@@ -18 +18 @@ mod unit; +-use crate::color::{init_error, init_warn, status_fail, status_ok}; ++use crate::color::{init_debug, init_error, init_warn, status_ok}; diff --git a/recipes/core/base/recipe.toml b/recipes/core/base/recipe.toml index 6a8dab492c..c5d1f83376 100644 --- a/recipes/core/base/recipe.toml +++ b/recipes/core/base/recipe.toml @@ -5,6 +5,7 @@ patches = [ "redox.patch", "P10-rootfs-uuid-search-no-block.patch", "P11-init-noise-reduction.patch", + "P12-init-fix-init-debug-import.patch", ] [package]