Bug 171942 - games-emulation/dosbox does not honour USE=-alsa
Bug#: 171942 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: flameeyes@gentoo.org
Component: Games
URL: 
Summary: games-emulation/dosbox does not honour USE=-alsa
Keywords:  
Status Whiteboard: 
Opened: 2007-03-23 17:22 0000
Description:   Opened: 2007-03-23 17:22 0000
Just had time to check on it (I removed it when it failed without midi support
enabled, now I tried installing it on another box), with USE=-alsa dosbox
doesn't actually disable ALSA support, see the attached log, and note this:

checking for ALSA CFLAGS...  -Ino
checking for ALSA LDFLAGS...  -Lno -lasound -lm -ldl -lpthread

HTH,
Diego

------- Comment #1 From Diego E. 'Flameeyes' Pettenò 2007-03-23 17:23:19 0000 -------
Created an attachment (id=114155) [details]
dosbox build log

------- Comment #2 From ebfe 2007-03-23 20:50:17 0000 -------
diego is right, dosbox always binds to alsa if it finds it.

may it be a solution to patch config.in and run autoconf again?

-AM_PATH_ALSA(0.9.0, AC_DEFINE(HAVE_ALSA,1,[Define to 1 to use ALSA for MIDI])
, : )
+AC_ARG_ENABLE(alsa,AC_HELP_STRING([--enable-alsa],[Enable ALSA for MIDI]),[
+       AM_PATH_ALSA(0.9.0, AC_DEFINE(HAVE_ALSA,1,[Define to 1 to use ALSA for
MIDI]) , : )
+])

------- Comment #3 From Mr. Bones. 2007-03-26 08:27:59 0000 -------
hmmmm, nope, not good enough.  Still pulls in alsa even with this patch and
--disable-alsa

------- Comment #4 From Diego E. 'Flameeyes' Pettenò 2007-03-26 08:42:01 0000 -------
You misunderstood the parameters of AC_ARG_ENABLE, see [1], third last
parameter.Also see [2] for other example on how to fix this kind of dependency.

[1] http://www.gentoo.org/doc/en/articles/autotools-practices.xml
[2] http://www.gentoo.org/proj/en/qa/automagic.xml

------- Comment #5 From Mr. Bones. 2007-04-09 19:06:30 0000 -------
the next release of dosbox will have the autotool stuff fixed up.  Forced alsa
on for now.

------- Comment #6 From Jakub Moc (RETIRED) 2007-04-10 07:58:46 0000 -------
*** Bug 173996 has been marked as a duplicate of this bug. ***