Page MenuHomeFreeBSD

libsamplerate: Only build when virtual_oss is built
ClosedPublic

Authored by ivy on Mar 30 2026, 2:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 15, 11:20 AM
Unknown Object (File)
Fri, May 15, 9:27 AM
Unknown Object (File)
Fri, May 15, 2:51 AM
Unknown Object (File)
Thu, May 14, 11:41 PM
Unknown Object (File)
Thu, May 14, 11:40 PM
Unknown Object (File)
Tue, May 12, 9:08 AM
Unknown Object (File)
Tue, May 12, 9:08 AM
Unknown Object (File)
Tue, May 12, 9:08 AM
Subscribers

Details

Summary
libsamplerate: Only build when virtual_oss is built

Gate libsamplerate behind MK_CUSE and MK_SOUND, like virtual_oss.
Nothing else uses this library, so there's no point building it
if we aren't building virtual_oss.

This avoids building a useless FreeBSD-sound package containing
only this library when WITHOUT_SOUND is set.

MFC after:      1 week
Sponsored by:   https://www.patreon.com/bsdivy

Diff Detail

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

Event Timeline

ivy requested review of this revision.Mar 30 2026, 2:05 PM
emaste added inline comments.
lib/Makefile
239

could it go here instead? it's only used by virtual_oss I think?

lib/Makefile
239

that would also be fine, if christos has no objection.

Thanks for this patch. I agree with Ed's comment.

ivy retitled this revision from libsamplerate: Don't build if WITHOUT_SOUND is set to libsamplerate: Only build when virtual_oss is built.Mar 31 2026, 8:10 AM
ivy edited the summary of this revision. (Show Details)

also gate behind MK_CUSE, to match virtual_oss

ivy marked an inline comment as done.Mar 31 2026, 8:11 AM

i'm testing this now (which takes ~5 hours since i have to run two full builds) but i think it's correct :-)

This revision is now accepted and ready to land.Mar 31 2026, 12:27 PM