From d1bc7a2d8f640465d81209fbdb6c7cf0291b2890 Mon Sep 17 00:00:00 2001 From: vasilito Date: Tue, 4 Aug 2026 22:00:11 +0300 Subject: [PATCH] cook: name the recipe and URL when an offline fetch has no source.tar fetch_offline hashed source.tar BEFORE checking it exists, so a missing tarball surfaced as repo: failed to fetch: Opening file for blake3 failed at "recipes/x11/libice/source.tar": No such file (os error 2) which names neither the recipe nor the remedy. That message sent me to work around the symptom by hand twice -- libogg/libvorbis, then four newly promoted X11 recipes -- because it points at hashing rather than at a missing download. Now it reports the recipe, the upstream URL and the exact curl command. Also drops libice/libsm from redbear-full. They are X11 session-management libraries used only by ksmserver, which sits inside if(WITH_X11) and is not built, and they need xorg util-macros, which no recipe in the tree provides. Including them would have meant porting a build dependency for code that is never compiled. --- config/redbear-full.toml | 7 +++++-- src/cook/fetch.rs | 28 +++++++++++++++++++++++++++- 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/config/redbear-full.toml b/config/redbear-full.toml index 79705cc26d..f0778b5add 100644 --- a/config/redbear-full.toml +++ b/config/redbear-full.toml @@ -290,8 +290,11 @@ libxfixes = {} libxi = {} libxrender = {} libxft = {} -libice = {} -libsm = {} +# libice/libsm deliberately NOT included: they are X11 session-management +# libraries used only by ksmserver, which is inside if(WITH_X11) and is not +# built. They also need xorg util-macros, which is in no recipe here -- so +# including them would mean porting a build dependency for code we do not +# compile. libvorbis = {} libogg = {} diff --git a/src/cook/fetch.rs b/src/cook/fetch.rs index bb4e7eea2c..91c0b89677 100644 --- a/src/cook/fetch.rs +++ b/src/cook/fetch.rs @@ -551,7 +551,7 @@ pub fn fetch_offline(recipe: &CookRecipe, logger: &PtyOut) -> Result Result