Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libpkg: allow filtering provided shlibs #2422

Merged
merged 5 commits into from
Feb 24, 2025
Merged

Conversation

ifreund
Copy link
Contributor

@ifreund ifreund commented Feb 17, 2025

This branch adds several useful ways to filter the shared libraries automatically added to shlibs_provided by a pkg based on parsing the ELF/Mach-O binary. These two commits are the most relevant:

libpkg: add SHLIB_PROVIDE_PATHS_* options

This allows limiting the files in a package that can affect
shlibs_provided when ELF files are scanned during e.g. pkg create.

The ports system will be able to populate these options automatically
based on the already existing USE_LDCONFIG variable.
libpkg: add SHLIB_PROVIDE_IGNORE_{GLOB,REGEX} options

These are quite simple to implement and nicely complement the
SHLIB_REQUIRE_IGNORE_{GLOB,REGEX} options.

Sponsored by:	The FreeBSD Foundation
Sponsored by:	The FreeBSD Foundation
This is consistent with the behavior for required shlibs and will make
the next commit simpler to implement correctly.

Sponsored by:	The FreeBSD Foundation
This allows limiting the files in a package that can affect
shlibs_provided when ELF files are scanned during e.g. pkg create.

The ports system will be able to populate these options automatically
based on the already existing USE_LDCONFIG variable.

Sponsored by:	The FreeBSD Foundation
These are quite simple to implement and nicely complement the
SHLIB_REQUIRE_IGNORE_{GLOB,REGEX} options.

Sponsored by:	The FreeBSD Foundation
@ifreund
Copy link
Contributor Author

ifreund commented Feb 17, 2025

Looks like the macos CI is broken due to some upstream homebrew? issue.

@bapt bapt merged commit 6ec1463 into freebsd:main Feb 24, 2025
6 of 9 checks passed
@ifreund ifreund deleted the filter-provided branch February 27, 2025 11:42
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.

3 participants