PulseAudio 3.0 requires Alsa >=184.108.40.206. However, configure.ac only checks for >=1.0.19. If you have an older version, the build fails:
In file included from modules/alsa/alsa-mixer.h:51:0,
modules/alsa/alsa-ucm.h:27:22: fatal error: use-case.h: No such file or directory
IMHO, support for the use case manager should be optional.
The version check is already fixed.
I don't personally see the point of complicating things by making UCM an optional feature.
(In reply to comment #1)
> The version check is already fixed.
Yes, apparently on master, but not on stable-3.x.
> I don't personally see the point of complicating things by making UCM an
> optional feature.
The point would be to be able to use modern versions of PulseAudio on systems which does not have bleeding edge versions of Alsa: Debian (even unstable) has 1.0.23. The latest CentOS/RHEL has 1.0.22. Suse Linux Enterprise has 1.0.18. We (=Cendio) are also shipping PulseAudio in our ThinLinc client, which targets many thin terminals, which certainly does not have the latest Alsa.
If you require bleeding edge versions of Alsa (and other software packages), this means that you are limiting the audience and potential use of PulseAudio. This in turn, means that we and others are forced to use older versions, and cannot contribute to the development. We have done major contributions in the past, including the Win32 and Solaris ports, the alsa-pulseaudio bridge etc. We would be glad if we could continue contributing in the future.
Thus, from our perspective, it is critical that we can use slightly older versions of Alsa. I did some work yesterday and it wasn't that difficult to introduce an ifdef HAVE_ALSA_UCM. Are you sure you are not interested in such a patch?
Users of released (and thus more or less frozen) distribution versions aren't our target audience. If they were, we couldn't depend on any software that was newer than five years or so. (How long are RHEL releases, for example, supported by Red Hat?) Users are expected to get new PulseAudio versions when they upgrade their operating systems.
I can see how this is a problem for you, if you want to distribute PulseAudio directly (skipping the distribution middle-man) to your users, but you aren't prepared to distribute also all of PulseAudio's dependencies in a similar manner. I don't like this situation either - I'd like to target users directly, but that's just too much of a hassle. I wish Zero Install (http://0install.net/) or something like it would really take off.
Anyway, if you write a patch for relaxing the alsa-lib version requirement, I don't think there's much reason for me to reject it. Just don't expect me to write that patch.
I'm using Debian testing myself, BTW, and it has libasound2 1.0.25-4, so your information about Debian unstable's alsa-lib version is outdated.
(In reply to comment #3)
> Users of released (and thus more or less frozen) distribution versions
> aren't our target audience.
I tend to disagree; it is still helpful for users of stable distros to help out with testing new versions. Having a little bit better backwards compatibility generally helps.
This is a trade-off though, and we could use a generic discussion about how long we should keep it though. My gut feeling is that it would be okay to move forward to mandatory depend on something that has a stable release about one to two years ago or so, but to determine this on a case-by-case basis.
(In reply to comment #4)
> This is a trade-off though, and we could use a generic discussion about how
> long we should keep it though. My gut feeling is that it would be okay to
> move forward to mandatory depend on something that has a stable release
> about one to two years ago or so, but to determine this on a case-by-case
For what it's worth, I agree with this.
Closing this for now. As Tanu notes, patches to make UCM optional are welcome (with a personal caveat from me that they should not be too intrusive).
I don't think supporting ALSA versions more than 2 years old is a useful way to spend our time.
Opened bug 66777 for a suggested patch.