Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 171942 - games-emulation/dosbox does not honour USE=-alsa
Summary: games-emulation/dosbox does not honour USE=-alsa
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-23 17:22 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2007-04-10 07:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dosbox build log (games-emulation:dosbox-0.70:20070323-171530.log,299.99 KB, text/plain)
2007-03-23 17:23 UTC, Diego Elio Pettenò (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2007-03-23 17:22:42 UTC
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 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-03-23 17:23:19 UTC
Created attachment 114155 [details]
dosbox build log
Comment 2 ebfe 2007-03-23 20:50:17 UTC
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 Mr. Bones. (RETIRED) gentoo-dev 2007-03-26 08:27:59 UTC
hmmmm, nope, not good enough.  Still pulls in alsa even with this patch and --disable-alsa
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-03-26 08:42:01 UTC
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 Mr. Bones. (RETIRED) gentoo-dev 2007-04-09 19:06:30 UTC
the next release of dosbox will have the autotool stuff fixed up.  Forced alsa on for now.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-04-10 07:58:46 UTC
*** Bug 173996 has been marked as a duplicate of this bug. ***