Skip to content

fix: count SONAME symlinks in the package itself in linking checks - #2975

Merged
wolfv merged 1 commit into
prefix-dev:mainfrom
chrisburr:fix/soname-symlink-package-itself
Nov 28, 2026
Merged

wolfv merged 1 commit into
prefix-dev:mainfrom
chrisburr:fix/soname-symlink-package-itself

Conversation

@chrisburr

Copy link
Copy Markdown
Contributor

Since #2831, a linked library resolves to the SONAME symlink (e.g. lib/libfoo.so.1) rather than its target. The "package itself" check only compares against the package's regular files, so linking a sibling library through its SONAME symlink is reported as overlinking. This also accepts a symlink in the package whose target is one of its files, and adds a regression test.

Since prefix-dev#2831 a linked library resolves to the path the loader looks up,
usually the SONAME symlink (lib/libfoo.so.1), instead of its target. The
"package itself" check only compares against the package's regular files,
so a library linking a sibling through its SONAME symlink is reported as
overlinking, e.g. lib/libG4ptl.so.3 in geant4.

Also accept a symlink in the package whose target is one of its files.
@wolfv
wolfv merged commit 52ec398 into prefix-dev:main Nov 28, 2026
13 checks passed
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.

2 participants