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.
This commit is contained in:
Kris Austin authored and GitHub committed 2026-11-20 17:19:27 -06:00
1 parent c4096cadb6
commit ced396fedc
2 files changed
+5 -3

No files matched your search

+2 -2
View File
@@ -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}
@@ -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