Repository navigation
Conversation
The GNOME 50 SDK now ships CMake 4.5, which rejects Boost 1.84's source_group(TREE .../include/boost/locale ...) because the file list also holds include/boost/locale.hpp, outside that tree. The Boost configure step, and so every dependency build, failed. Patch libs/locale/CMakeLists.txt before configuring: keep only the headers under include/boost/locale/ for that call. The script is idempotent and does nothing when the call is not there. On macOS the zstd patch still runs after it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Summary
With CMake 4.x, the dependency build stops while configuring Boost 1.84. Boost.Locale calls
source_group(TREE .../include/boost/locale ...)with a file list that also holdsinclude/boost/locale.hpp, which is outside that tree, and CMake 4 rejects that. This PR patches thatCMakeLists.txtbefore Boost is configured, the same wayapply-static-zstd-patch.cmakealready patches Boost.Iostreams on macOS.Two files are changed:
deps/Boost/Boost.cmakeand the newdeps/Boost/apply-locale-source-group-patch.cmake. The patch only affects how the Boost.Locale sources are grouped in IDE projects, not what is compiled.Symptom
Any dependency build with CMake 4.5 (the version in the Flathub GNOME 50 SDK since its 2026-11-19 update,
50.6-20) fails at the Boost configure step:Root cause
libs/locale/CMakeLists.txtin Boost 1.84:sources_inckeepsinclude/boost/locale.hpp, which is not underinclude/boost/locale/. CMake 4 errors on asource_group(TREE ...)file outside the tree. The next line already groupslocale.hppon its own.Fix
New script
deps/Boost/apply-locale-source-group-patch.cmake. Right before thatsource_group(TREE …/include/boost/locale …)call, it inserts:The script is idempotent: if the filter is already there, it does nothing. If the call is not found, for example in a newer Boost that fixed it, it only prints a status message and leaves the file alone.
deps/Boost/Boost.cmakeruns it as the BoostPATCH_COMMANDon all platforms. On macOS the existing zstd patch runs after it, as a secondCOMMANDof the samePATCH_COMMAND, andDEPENDS dep_zstdis kept.Testing
🤖 Generated with Claude Code