Bug 169219 - >=games-emulation/dosbox-0.65 should check for midi useflag on alsa-lib
Bug#: 169219 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-0.65 should check for midi useflag on alsa-lib
Keywords:  
Status Whiteboard: 
Opened: 2007-03-04 01:45 0000
Description:   Opened: 2007-03-04 01:45 0000
As per summary.

The currently-masked alsa-lib version has a midi useflag that I introduced to
reduce the size of the library itself. When this useflag is disabled (the
default is enabled), the snd_seq_* functions won't be in the library. The
snd_seq_* functions are needed by dosbox to be able to compile:

/var/tmp/portage/games-emulation/dosbox-0.70/work/dosbox-0.70/src/gui/midi_alsa.h:48:
undefined reference to `snd_seq_event_output'
/var/tmp/portage/games-emulation/dosbox-0.70/work/dosbox-0.70/src/gui/midi_alsa.h:50:
undefined reference to `snd_seq_drain_output'
gui/libgui.a(midi.o): In function `MidiHandler_alsa::Close()':
/var/tmp/portage/games-emulation/dosbox-0.70/work/dosbox-0.70/src/gui/midi_alsa.h:122:
undefined reference to `snd_seq_close'
gui/libgui.a(midi.o): In function `MidiHandler_alsa::Open(char const*)':
/var/tmp/portage/games-emulation/dosbox-0.70/work/dosbox-0.70/src/gui/midi_alsa.h:143:
undefined reference to `snd_seq_open'
/var/tmp/portage/games-emulation/dosbox-0.70/work/dosbox-0.70/src/gui/midi_alsa.h:148:
undefined reference to `snd_seq_client_id'
/var/tmp/portage/games-emulation/dosbox-0.70/work/dosbox-0.70/src/gui/midi_alsa.h:149:
undefined reference to `snd_seq_set_client_name'
/var/tmp/portage/games-emulation/dosbox-0.70/work/dosbox-0.70/src/gui/midi_alsa.h:157:
undefined reference to `snd_seq_create_simple_port'
/var/tmp/portage/games-emulation/dosbox-0.70/work/dosbox-0.70/src/gui/midi_alsa.h:166:
undefined reference to `snd_seq_connect_to'
/var/tmp/portage/games-emulation/dosbox-0.70/work/dosbox-0.70/src/gui/midi_alsa.h:159:
undefined reference to `snd_seq_close'
/var/tmp/portage/games-emulation/dosbox-0.70/work/dosbox-0.70/src/gui/midi_alsa.h:167:
undefined reference to `snd_seq_close'
gui/libgui.a(midi.o): In function `MidiHandler_alsa::send_event(int)':
/var/tmp/portage/games-emulation/dosbox-0.70/work/dosbox-0.70/src/gui/midi_alsa.h:48:
undefined reference to `snd_seq_event_output'
/var/tmp/portage/games-emulation/dosbox-0.70/work/dosbox-0.70/src/gui/midi_alsa.h:48:
undefined reference to `snd_seq_event_output'
/var/tmp/portage/games-emulation/dosbox-0.70/work/dosbox-0.70/src/gui/midi_alsa.h:50:
undefined reference to `snd_seq_drain_output'

I'm attaching an ebuild patch for 0.70 that adds the (almost standard now)
check for the midi useflag on alsa-lib.

Thanks,
Diego

------- Comment #1 From Diego E. 'Flameeyes' Pettenò 2007-03-04 01:45:38 0000 -------
Created an attachment (id=112005) [details]
alsa-lib midi check patch

------- Comment #2 From Mr. Bones. 2007-03-04 02:19:08 0000 -------
in portage.  thanks for the bug report and patch.