Page MenuHomeFreeBSD

libsamplerate: Only build when virtual_oss is built
AcceptedPublic

Authored by ivy on Mon, Mar 30, 2:05 PM.
Tags
None
Referenced Files
F150620617: D56164.id.diff
Thu, Apr 2, 9:17 PM
Unknown Object (File)
Wed, Apr 1, 5:13 AM
Unknown Object (File)
Tue, Mar 31, 9:38 AM
Unknown Object (File)
Tue, Mar 31, 4:42 AM
Unknown Object (File)
Tue, Mar 31, 3:40 AM
Subscribers

Details

Reviewers
christos
emaste
Group Reviewers
pkgbase
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.Mon, Mar 30, 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.Tue, Mar 31, 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.Tue, Mar 31, 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.Tue, Mar 31, 12:27 PM