Skip to content

Fix OCCT 8.0.2 installed package paths - #2

Merged
precsim merged 1 commit into
mainfrom
fix/occt-8.0.2-installed-config
Nov 22, 2026
Merged

precsim merged 1 commit into
mainfrom
fix/occt-8.0.2-installed-config

Conversation

@precsim

@precsim precsim commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

OCCT 8.0.2 changed its generated installed OpenCASCADEConfig.cmake: the relocatable install branch is correct, but the file also retains an unreachable else() build-tree branch containing absolute producer source/build paths. The SDK relocation/leak check correctly rejected /work/src, so the first 8.0.2 publication attempt could not complete.

This adds a shared post-install normalizer that recognizes that constant install-tree branch, keeps the PACKAGE_PREFIX_DIR-based relocatable content, and removes only the unreachable build-tree branch. Linux, macOS, and both Windows linkage builds run it immediately after installation and before validation/packaging. Older/future configs without this exact dead branch are left unchanged.

Validation:

  • reproduced the 8.0.2 generated config from upstream commit 83f9abe9477af36e4ca218e1468068aed052779f
  • normalizer removes the source/build paths and preserves PACKAGE_PREFIX_DIR
  • second normalization is a successful no-op
  • helper compiles with Python
  • Linux/macOS shell scripts pass bash -n
  • workflow YAML parses
  • git diff --check passes

@precsim
precsim merged commit 8106a92 into main Nov 22, 2026
2 checks passed
@precsim
precsim deleted the fix/occt-8.0.2-installed-config branch November 22, 2026 15:54
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