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)
Mon, Sep 22, 10:24 PM
Unknown Object (File)
Wed, Sep 10, 5:23 AM
Unknown Object (File)
Thu, Sep 4, 11:06 PM
Unknown Object (File)
Thu, Sep 4, 1:09 PM
Unknown Object (File)
Aug 31 2025, 9:33 PM
Unknown Object (File)
Aug 30 2025, 5:07 AM
Unknown Object (File)
Aug 21 2025, 12:04 AM
Unknown Object (File)
Aug 15 2025, 8:59 AM
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 65879
Build 62762: 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
23

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)