From ced396fedc05842467f147ec67e926e4eb577faf Mon Sep 17 00:00:00 2001 From: Kris Austin Date: Fri, 20 Nov 2026 17:19:27 -0600 Subject: [PATCH] Pin the Flatpak wxWidgets source by commit alone (#17743) flatpak-builder checks that a named branch's tip is the pinned commit, so the source download failed as soon as the fork's v3.3.2 branch moved past b44c39c1. Both Flatpak jobs stopped with "Git commit for branch v3.3.2 is 89844cb1..., but expected b44c39c1...". #17742 fixed the same breakage in the CMake deps recipe, which the Flatpak build does not use. The manifest carries its own pin, so it needed its own fix. Dropping the branch keeps the commit pin and leaves nothing that goes stale when the fork moves. kde-extra-cmake-modules in this file already pins itself the safe way, with an immovable tag plus its commit. disable-shallow-clone makes git fetch full history, which it needs to check out a commit that is no longer a branch tip. Also rewords the comment #17742 left in deps/wxWidgets/wxWidgets.cmake. No build change there. Reported in #17740. --- deps/wxWidgets/wxWidgets.cmake | 4 ++-- scripts/flatpak/com.orcaslicer.OrcaSlicer.yml | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/deps/wxWidgets/wxWidgets.cmake b/deps/wxWidgets/wxWidgets.cmake index f2e30e8a22..2f384e6cbe 100644 --- a/deps/wxWidgets/wxWidgets.cmake +++ b/deps/wxWidgets/wxWidgets.cmake @@ -45,8 +45,8 @@ orcaslicer_add_cmake_project( wxWidgets GIT_REPOSITORY "https://github.com/OrcaSlicer/Orca-deps-wxWidgets" GIT_TAG b44c39c100975a0ac0e46f937aa3f3eae5e18631 - # Not shallow: GIT_TAG is a commit, and a shallow clone fetches only the branch head, so the - # checkout fails as soon as the fork moves past it. + # A shallow clone fetches only the branch head, so checking out a pinned commit fails once the + # branch moves past it. GIT_SHALLOW OFF GIT_SUBMODULES 3rdparty/catch 3rdparty/pcre 3rdparty/libwebp DEPENDS ${PNG_PKG} ${ZLIB_PKG} ${EXPAT_PKG} ${JPEG_PKG} diff --git a/scripts/flatpak/com.orcaslicer.OrcaSlicer.yml b/scripts/flatpak/com.orcaslicer.OrcaSlicer.yml index 46ed319244..13e395b4e0 100644 --- a/scripts/flatpak/com.orcaslicer.OrcaSlicer.yml +++ b/scripts/flatpak/com.orcaslicer.OrcaSlicer.yml @@ -119,8 +119,10 @@ modules: # submodules (PCRE2, etc.) that are not included in GitHub tarballs. - type: git url: https://github.com/OrcaSlicer/Orca-deps-wxWidgets.git - branch: v3.3.2 + # flatpak-builder requires a named branch's tip to be the pinned commit, so this names no + # branch and clones in full, which git needs to check out a commit that is not a tip. commit: b44c39c100975a0ac0e46f937aa3f3eae5e18631 + disable-shallow-clone: true # OrcaSlicer C++ dependencies (built offline with pre-downloaded archives) - name: orca_deps