Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package comfyui for openSUSE:Factory checked in at 2026-10-31 23:11:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/comfyui (Old) and /work/SRC/openSUSE:Factory/.comfyui.new.1255 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "comfyui" Sat Oct 31 23:11:59 2026 rev:16 rq:1394191 version:0.43.0 Changes: -------- --- /work/SRC/openSUSE:Factory/comfyui/comfyui.changes 2026-10-27 17:00:51.302363683 +0100 +++ /work/SRC/openSUSE:Factory/.comfyui.new.1255/comfyui.changes 2026-10-31 23:15:04.963665161 +0100 @@ -1,0 +2,20 @@ +Sat Oct 31 18:24:09 UTC 2026 - Martin Pluskal <[email protected]> + +- Fix comfyui --version: the launcher answers it itself with + the packaged version baked in at build time instead of + passing it to main.py, which has no such option +- Create models/checkpoints in the per-user base directory on + first start, so a fresh profile has somewhere to put + checkpoints +- Add README.SUSE (profile path, model locations, CPU-only + note, loopback and --offline guidance) + +------------------------------------------------------------------- +Sat Oct 31 15:07:23 UTC 2026 - Martin Pluskal <[email protected]> + +- Use an unpredictable mktemp -d directory instead of the static + /tmp/comfyui fallback when neither XDG_DATA_HOME nor HOME is set + (boo#1288691) + + +------------------------------------------------------------------- New: ---- README.SUSE ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ comfyui.spec ++++++ --- /var/tmp/diff_new_pack.akAUcy/_old 2026-10-31 23:15:06.706737389 +0100 +++ /var/tmp/diff_new_pack.akAUcy/_new 2026-10-31 23:15:06.709737514 +0100 @@ -28,6 +28,7 @@ Source0: https://github.com/Comfy-Org/ComfyUI/archive/refs/tags/v%{version}.tar.gz#/ComfyUI-%{version}.tar.gz Source1: comfyui.sh Source2: comfyui-packaged-paths.yaml +Source3: README.SUSE # PATCH-FIX-UPSTREAM comfyui-create-custom-nodes-directory.patch gh#Comfy-Org/ComfyUI#8110 gh#Comfy-Org/ComfyUI#8434 [email protected] -- create custom_nodes under --base-directory, main.py lists it before the server starts Patch0: comfyui-create-custom-nodes-directory.patch # PATCH-FIX-UPSTREAM comfyui-fall-back-to-cpu-without-accelerator.patch [email protected] -- start on the CPU when no accelerator is present, instead of raising AssertionError while importing @@ -158,12 +159,15 @@ %python_expand $python -m compileall -q -f -o 0 -o 1 --invalidation-mode unchecked-hash %{buildroot}%{_datadir}/comfyui sed -e 's|@@PYTHON@@|%{_bindir}/python3|g' \ -e 's|@@DATADIR@@|%{_datadir}/comfyui|g' \ + -e 's|@@VERSION@@|%{version}|g' \ %{SOURCE1} > %{buildroot}%{_bindir}/comfyui chmod 0755 %{buildroot}%{_bindir}/comfyui # --base-directory moves the custom_nodes search path into the user profile; # register the packaged one as an additional path so both are loaded. sed -e 's|@@DATADIR@@|%{_datadir}/comfyui|g' \ %{SOURCE2} > %{buildroot}%{_datadir}/comfyui/comfyui-packaged-paths.yaml +# Stage the SUSE notes for %doc (after cp -a, so they stay out of the app tree). +cp %{SOURCE3} . %fdupes %{buildroot}%{_datadir}/comfyui %check @@ -178,6 +182,13 @@ XDG_DATA_HOME="$xdg" sh %{buildroot}%{_bindir}/comfyui --help >/dev/null 2>&1 || : test -z "$(ls -A "$xdg")" rm -rf "$xdg" +# --version is answered by the launcher itself (main.py has no such +# option) and must not create anything either. +xdg=$(mktemp -d) +verout=$(XDG_DATA_HOME="$xdg" sh %{buildroot}%{_bindir}/comfyui --version) +test "$verout" = "comfyui %{version}" +test -z "$(ls -A "$xdg")" +rm -rf "$xdg" # The extra search path must resolve to the packaged custom nodes. grep -q '^ custom_nodes: %{_datadir}/comfyui/custom_nodes$' \ %{buildroot}%{_datadir}/comfyui/comfyui-packaged-paths.yaml @@ -185,7 +196,7 @@ %files %license LICENSE -%doc README.md extra_model_paths.yaml.example +%doc README.md README.SUSE extra_model_paths.yaml.example %{_bindir}/comfyui %{_datadir}/comfyui ++++++ README.SUSE ++++++ ComfyUI on openSUSE ================== This package ships the ComfyUI tree read-only under /usr/share/comfyui and the /usr/bin/comfyui launcher. Upstream's README assumes a git checkout; here everything writable lives in a per-user profile, and the server is started through the launcher. Profile location ---------------- Unless overridden, the launcher uses $XDG_DATA_HOME/comfyui, falling back to ~/.local/share/comfyui. It passes that directory to main.py as --base-directory and points the asset database at $base/user/comfyui.db via --database-url. Pass --base-directory or --database-url explicitly to use somewhere else. Where models go --------------- Put checkpoints, LoRAs, VAEs and other assets under $base/models/ (checkpoints in $base/models/checkpoints, created on first start alongside $base/user). Point --extra-model-paths-config at an extra_model_paths.yaml file to share model directories with other installations. CPU-only -------- The openSUSE PyTorch build has neither CUDA nor ROCm support, so ComfyUI runs on the CPU and falls back to it automatically. Expect generation to be slow; this is a packaging limitation, not a bug. Keep it on loopback ------------------- The server listens on 127.0.0.1:8188 by default and has no login. Keep it on loopback; passing --listen with a public address exposes an unauthenticated API and web UI to the network. Offline use ----------- The browser UI otherwise contacts api.comfy.org and Hugging Face. Start with --offline to stop that: it sets a restrictive Content-Security-Policy header and disables partner nodes. ++++++ comfyui.sh ++++++ --- /var/tmp/diff_new_pack.akAUcy/_old 2026-10-31 23:15:06.782740539 +0100 +++ /var/tmp/diff_new_pack.akAUcy/_new 2026-10-31 23:15:06.786740705 +0100 @@ -5,6 +5,7 @@ python="@@PYTHON@@" datadir="@@DATADIR@@" +version="@@VERSION@@" has_base=0 has_db=0 @@ -29,9 +30,15 @@ --database-url|--database-url=*) has_db=1 ;; - -h|--help|--version|--list-feature-flags) + -h|--help|--list-feature-flags) query_only=1 ;; + --version) + # main.py has no --version option; answer from the + # version baked in at build time and touch nothing. + printf 'comfyui %s\n' "$version" + exit 0 + ;; esac done @@ -41,7 +48,7 @@ elif [ -n "${HOME:-}" ]; then base=$HOME/.local/share/comfyui else - base=/tmp/comfyui + base=$(mktemp -d /tmp/comfyui.XXXXXX) fi fi @@ -54,6 +61,7 @@ if [ "$has_db" -eq 0 ]; then mkdir -p "$base/user" || exit 1 fi + mkdir -p "$base/models/checkpoints" || exit 1 fi if [ "$has_base" -eq 0 ]; then
