Page MenuHomeFreeBSD

libsamplerate: Build as internal library
AbandonedPublic

Authored by christos on Jul 31 2025, 5:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Aug 30, 5:07 AM
Unknown Object (File)
Thu, Aug 21, 12:04 AM
Unknown Object (File)
Fri, Aug 15, 8:59 AM
Unknown Object (File)
Fri, Aug 15, 4:01 AM
Unknown Object (File)
Wed, Aug 13, 3:48 PM
Unknown Object (File)
Wed, Aug 13, 9:12 AM
Unknown Object (File)
Wed, Aug 13, 1:37 AM
Unknown Object (File)
Tue, Aug 5, 3:12 PM
Subscribers

Details

Reviewers
markj
emaste
fuz
Summary

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 65868
Build 62751: arc lint + arc unit

Event Timeline

Do we need to remove audio/libsamplerate from ports once this is committed?

I copied the tree from the virtual_oss codebase, but I forgot to remove some
#if 0s introduced by @fuz in
https://github.com/freebsd/virtual_oss/commit/6f05c06774956031b6ec115c0875ead3ebf4a1c9.
Remove them.

This should be a private library if possible; I don't feel like we should add it to our documented API.
I would then also suggest to put the #if 0 back in.

In that case, the port should stay.

In D51657#1179993, @fuz wrote:

This should be a private library if possible; I don't feel like we should add it to our documented API.
I would then also suggest to put the #if 0 back in.

In that case, the port should stay.

I agree. A private library is effectively invisible to third-party software and is only intended for use by the base system. That way we don't have to worry about binary compatibility issues.

I believe it's sufficient to define PRIVATELIB= in the makefile.

lib/libsamplerate/Makefile
22

You'll also need to add this to the _PRIVATELIBS variable in share/mk/src.libnames.mk.

christos retitled this revision from libsamplerate: Vendor import to libsamplerate: Vendor import as internal library.Aug 1 2025, 10:03 AM
christos marked an inline comment as done.

Address comments. Define as internal library.

This revision is now accepted and ready to land.Aug 1 2025, 11:01 AM
christos retitled this revision from libsamplerate: Vendor import as internal library to libsamplerate: Build as internal library.Aug 1 2025, 12:18 PM
christos edited the summary of this revision. (Show Details)