Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 169219

Summary: >=games-emulation/dosbox-0.65 should check for midi useflag on alsa-lib
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: alsa-lib midi check patch

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2007-03-04 01:45:18 UTC
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 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-03-04 01:45:38 UTC
Created attachment 112005 [details, diff]
alsa-lib midi check patch
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2007-03-04 02:19:08 UTC
in portage.  thanks for the bug report and patch.