Skip to content

Conversation

@baszalmstra
Copy link
Contributor

Fixes issue #1949 where rattler-build incorrectly warns about overdepending for packages that contain no linkable binaries.

The overdepending check looks for unused library dependencies by checking which libraries the package's binaries link against. For packages without any binaries, this check is meaningless - there's nothing that could link to libraries.

This prevents false positives when building packages with only run dependencies like pixi-build-api-version (version constraint packages).

Fixes #1949

AI Disclosure

Claude Code Web wrote this.

Fixes issue prefix-dev#1949 where rattler-build incorrectly warns about
overdepending for packages that contain no linkable binaries.

The overdepending check looks for unused library dependencies by checking
which libraries the package's binaries link against. For packages without
any binaries, this check is meaningless - there's nothing that could link
to libraries.

This prevents false positives when building packages with only run
dependencies like pixi-build-api-version (version constraint packages).

Fixes prefix-dev#1949
@baszalmstra baszalmstra requested a review from wolfv November 6, 2025 14:29
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.

Overlinking against packages without shared objects

2 participants