Skip to content

Commit 108bce3

Browse files
andyclaude
andcommitted
Split packages: Breaks/Replaces the monolithic ecce below this version, computed each configure
ECCE_MONOLITHIC_BREAK_VERSION was a CACHE variable defaulting to the version, so it froze at the build directory's first configure (8.17.0). Installing the 8.18.0 split packages over an 8.17.x monolithic ecce then stopped on file conflicts, and the metapackage's unpack removed the old files. ECCE_MONOLITHIC_BREAK_VERSION_OVERRIDE still sets it explicitly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0167GfjZWhsGJh9at1F9sc9y (cherry picked from commit ac76fbf)
1 parent 09f1880 commit 108bce3

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎CMakeLists.txt‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,8 +1343,14 @@ if(ECCE_SPLIT_PACKAGES)
13431343
# whichever release first ships split packages is the real boundary,
13441344
# and that is a decision for whoever cuts that release, not something
13451345
# to hardcode here now.
1346-
set(ECCE_MONOLITHIC_BREAK_VERSION "${_ecce_deb_version}" CACHE STRING
1347-
"ecce-client/ecce-server Break+Replace the monolithic ecce package for versions strictly below this (Debian: 'ecce (<< VERSION)'; RPM: 'ecce < VERSION'). Defaults to this build's own version, i.e. the first split release breaks/replaces every version older than itself.")
1346+
# Not a cache variable: a cached default froze at the version of the
1347+
# build directory's first configure (8.17.0), so an 8.17.x install was
1348+
# not replaced and the upgrade stopped on file conflicts.
1349+
if(NOT ECCE_MONOLITHIC_BREAK_VERSION_OVERRIDE)
1350+
set(ECCE_MONOLITHIC_BREAK_VERSION "${_ecce_deb_version}")
1351+
else()
1352+
set(ECCE_MONOLITHIC_BREAK_VERSION "${ECCE_MONOLITHIC_BREAK_VERSION_OVERRIDE}")
1353+
endif()
13481354

13491355
# CPack falls back to the monolithic-build globals below (Depends,
13501356
# Recommends, Suggests) for any component that doesn't set its own --

0 commit comments

Comments
 (0)