Skip to content

state: drop the <cvc/core/state*.h> forwarding headers -- hard cutover (layout refactor Phase 2) - #578

Merged
transfix merged 1 commit into
masterfrom
refactor/state-dir-layout-phase2
Oct 7, 2026
Merged

transfix merged 1 commit into
masterfrom
refactor/state-dir-layout-phase2

Conversation

@transfix

@transfix transfix commented Oct 7, 2026 •

Copy link
Copy Markdown
Owner

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/...>.

  • Deletes compat/ (the 57 forwarding headers), its install(DIRECTORY compat/inc/cvc/ …) rule, and state_compat_headers_test with its five src/cvc/tests/CMakeLists.txt entries. 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.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 every recipe's revision at 1.

No in-tree code changes: #577 kept compat/inc off libcvc's include path, so nothing in the tree could use the old paths.

Release note (source break, no ABI change)

The state subsystem moved from cvc/core/ to cvc/state/. <cvc/core/state*.h>, <cvc/core/distributed_state_session.h> and <cvc/core/state_exec/*.h> no longer exist; include <cvc/state/...> instead. In includes, replace cvc/core/state with cvc/state/state and cvc/core/distributed_state with cvc/state/distributed_state. Symbols and ABI are unchanged.

Verification

@transfix
transfix force-pushed the refactor/state-dir-layout-phase2 branch from 0f9fab4 to 71dcee1 Compare October 7, 2026 16:08
@transfix
transfix changed the base branch from refactor/state-dir-layout to master October 7, 2026 16:08
@transfix transfix changed the title state: drop the <cvc/core/state*.h> forwarding headers -- hard cutover (layout refactor Phase 2, stacked on #577) state: drop the <cvc/core/state*.h> forwarding headers -- hard cutover (layout refactor Phase 2) Oct 7, 2026
@transfix
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
transfix force-pushed the refactor/state-dir-layout-phase2 branch from 71dcee1 to 50c5f30 Compare October 7, 2026 17:23
@transfix
transfix merged commit 83cc712 into master Oct 7, 2026
14 checks passed
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
transfix deleted the refactor/state-dir-layout-phase2 branch October 8, 2026 18:44
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant