Repository navigation
state: drop the <cvc/core/state*.h> forwarding headers -- hard cutover (layout refactor Phase 2) - #578
Merged
Conversation
transfix
force-pushed
the
refactor/state-dir-layout-phase2
branch
from
October 7, 2026 16:08
0f9fab4 to
71dcee1
Compare
transfix
enabled auto-merge (squash)
October 7, 2026 16:09
…r (layout refactor Phase 2) Phase 2 of docs/roadmap/STATE_DIR_LAYOUT_REFACTOR.md, as a hard cutover. Phase 1 (#577) moved the state subsystem to <cvc/state/...> and added forwarding headers at the old <cvc/core/state*.h> / <cvc/core/state_exec/*.h> paths; this removes them before any release ships them, so libcvc 3.5.0 has only the new layout. - Delete compat/ (57 forwarding headers), its install(DIRECTORY) rule and state_compat_headers_test with its src/cvc/tests/CMakeLists.txt entries. Both CMake files are back to their pre-shim content. In-tree code was never able to use the old paths, so nothing else changes. - Source break for out-of-tree code on the old paths (no ABI change): in includes, cvc/core/state -> cvc/state/state and cvc/core/distributed_state -> cvc/state/distributed_state. - docs: STATE_API.md says the old paths are gone as of 3.5.0; the refactor plan is marked complete (hard cutover) with Phase 2 notes. No cvc_revision bump here: the 3.5.0 version bump restarts revisions at 1.
transfix
force-pushed
the
refactor/state-dir-layout-phase2
branch
from
October 7, 2026 17:23
71dcee1 to
50c5f30
Compare
transfix
added a commit
that referenced
this pull request
Oct 7, 2026
New minor version carrying the state subsystem's move from cvc/core/ to cvc/state/ (#577) as a hard cutover (#578): <cvc/core/state*.h>, <cvc/core/distributed_state_session.h> and <cvc/core/state_exec/*.h> are gone, a source break (no ABI change) that warrants the minor. Bumps project(VERSION) 3.4.0 -> 3.5.0 and every cvcpkg recipe's upstream_version to match (cvc_revision reset to 1, per the recipe-version gate).
transfix
added a commit
that referenced
this pull request
Nov 10, 2026
Joe, 2026-11-09: "dont vendor third party libraries in the libcvc repo!! make cvcpkg packages for them". The vendored src/cvc/third_party/CDT and shewchuk/ are gone; both are now cvcpkg packages (cy-pca/cvcpkg#597, open), as Qhull and Clipper2 already were (cy-pca/cvcpkg#578): - cdt 2.0.1 (CDT::CDT, #include <CDT/CDT.h>), with the same no-mutable-statics changes as a recipe patch; - shewchuk-predicates (Shewchuk::predicates, #include <shewchuk/predicates.hpp>), the same generated header, its generator in cvcpkg's third-party/shewchuk-predicates. CVC_WITH_CDT and CVC_WITH_SHEWCHUK find them like Qhull and Clipper2 (OFF when missing). cvc links the two header-only ones $<BUILD_INTERFACE:...>, as it links PEGTL, so they never reach its exports. permissive_libs_test runs each section whose package is present and prints SKIP otherwise. cgal_ab_test needs all four. CI: cgal-ab and permissive-wasm fetch #597's head (which includes #578) and let cvcpkg build whatever the catalog lacks from those recipes (--fallback-to-source), until the packages are published. libcvc's recipe gains them once published (install-deps is all-or-nothing). The roadmap's rule (1.2), 1.8, the P0c row and 9 item 1 now say: cvcpkg packages, never vendored. #597 also adds nanoflann 2.0.1, so the vendored nanoflann (#1080) can go once it is published; THIRD_PARTY_NOTICES and the third_party README say so. Checked locally against the packages as #597's scripts install them (Windows, MSVC 19.44): all four found, permissive_libs_test 19/19, cgal_ab_test ok, 0 failures.
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.
What
Phase 2 of
docs/roadmap/STATE_DIR_LAYOUT_REFACTOR.md, as a hard cutover. #577 moved the state subsystem to<cvc/state/...>and added forwarding headers at the old<cvc/core/state*.h>paths. This PR removes them before any release ships them, so libcvc 3.5.0 is the first release with the new layout, and it has only<cvc/state/...>.compat/(the 57 forwarding headers), itsinstall(DIRECTORY compat/inc/cvc/ …)rule, andstate_compat_headers_testwith its fivesrc/cvc/tests/CMakeLists.txtentries. Both CMake files go back to exactly their content before state: move the state subsystem from core/ to its own state/ directory (layout refactor Phase 1, + compat shims) #577 added the shims.docs/STATE_API.mdsays the old paths are gone as of 3.5.0. The refactor plan is marked complete (hard cutover), with Phase 2 notes.cvc_revisionbump here: the 3.5.0 version bump restarts every recipe's revision at 1.No in-tree code changes: #577 kept
compat/incoff libcvc's include path, so nothing in the tree could use the old paths.Release note (source break, no ABI change)
Verification
#include <cvc/…>/%includein the tree still resolves. Outside docs, nothing referencescvc/core/state*,compat/incor the removed test.check_test_targets.pypasses (160 targets, one fewer).src/cvc/CMakeLists.txtandsrc/cvc/tests/CMakeLists.txtare byte-identical to their state in state: move the state subsystem from core/ to its own state/ directory (layout refactor Phase 1, + compat shims) #577's first commit, before the shims were added.