Skip to content

Comments

pulseaudio: wrong path fallout from multiple outputs#15049

Closed
peterhoeg wants to merge 1 commit intoNixOS:masterfrom
peterhoeg:pa_output
Closed

pulseaudio: wrong path fallout from multiple outputs#15049
peterhoeg wants to merge 1 commit intoNixOS:masterfrom
peterhoeg:pa_output

Conversation

@peterhoeg
Copy link
Member

This isn't tested admittedly, but ShouldJustWork(tm).

needs .out appended to package

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @abbradar, @ttuegel and @edolstra to be potential reviewers

@ttuegel
Copy link
Member

ttuegel commented Apr 28, 2016

I fixed this on staging by instead changing the default value for config.hardware.pulseaudio.package so that it points to the .out output only. I leave it to the other reviewers to decide which solution they like better; there are probably arguments in favor of either.

@abbradar
Copy link
Member

I think let's do it the way @peterhoeg proposes, but using getBin function. The reason is to save the interface -- users now have things like package = pulseaudioFull and they would have PulseAudio silently broken because of invalid output selected. getBin allows one who truly wants some output to be specified to do so: it has necessary magic so that package = myPulseaudio.foo would work as intended.

@abbradar
Copy link
Member

Pushed as 5e2bb0b. I originally pushed this to staging, but it looks like @ttuegel's changes are already in master, so cherry-picked there.

@abbradar abbradar closed this Apr 28, 2016
@abbradar
Copy link
Member

Ouch, master doesn't have getBin yet. I've reverted the patch from master for now; staging looks nearly finished building so I expect the merge will be done soon.

@peterhoeg
Copy link
Member Author

@abbradar, maybe this is off-topic, but how does getBin work with packages that do not define a bin output?

@abbradar
Copy link
Member

@peterhoeg It uses out and then pkg itself. Plus, it checks if the output has already been specified. It's easier to see in the code:

    if pkg.outputUnspecified or false
      then pkg.${output} or pkg.out or pkg
      else pkg;

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.

4 participants