<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>169219</bug_id>
          
          <creation_ts>2007-03-04 01:45 0000</creation_ts>
          <short_desc>&gt;=games-emulation/dosbox-0.65 should check for midi useflag on alsa-lib</short_desc>
          <delta_ts>2007-03-04 02:19:08 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Games</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>flameeyes@gentoo.org</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2007-03-04 01:45:18 0000</bug_when>
            <thetext>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&apos;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&apos;
/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&apos;
gui/libgui.a(midi.o): In function `MidiHandler_alsa::Close()&apos;:
/var/tmp/portage/games-emulation/dosbox-0.70/work/dosbox-0.70/src/gui/midi_alsa.h:122: undefined reference to `snd_seq_close&apos;
gui/libgui.a(midi.o): In function `MidiHandler_alsa::Open(char const*)&apos;:
/var/tmp/portage/games-emulation/dosbox-0.70/work/dosbox-0.70/src/gui/midi_alsa.h:143: undefined reference to `snd_seq_open&apos;
/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&apos;
/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&apos;
/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&apos;
/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&apos;
/var/tmp/portage/games-emulation/dosbox-0.70/work/dosbox-0.70/src/gui/midi_alsa.h:159: undefined reference to `snd_seq_close&apos;
/var/tmp/portage/games-emulation/dosbox-0.70/work/dosbox-0.70/src/gui/midi_alsa.h:167: undefined reference to `snd_seq_close&apos;
gui/libgui.a(midi.o): In function `MidiHandler_alsa::send_event(int)&apos;:
/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&apos;
/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&apos;
/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&apos;

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

Thanks,
Diego</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2007-03-04 01:45:38 0000</bug_when>
            <thetext>Created an attachment (id=112005)
alsa-lib midi check patch

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2007-03-04 02:19:08 0000</bug_when>
            <thetext>in portage.  thanks for the bug report and patch.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>112005</attachid>
            <date>2007-03-04 01:45 0000</date>
            <desc>alsa-lib midi check patch</desc>
            <filename>dosbox-alsa-midi.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC92YXIvcG9ydGFnZS90cmVlL2dhbWVzLWVtdWxhdGlvbi9kb3Nib3gvZG9zYm94LTAuNzAu
ZWJ1aWxkCTIwMDctMDMtMDMgMjE6NDY6MTcuMDAwMDAwMDAwICswMTAwCisrKyBnYW1lcy1lbXVs
YXRpb24vZG9zYm94L2Rvc2JveC0wLjcwLmVidWlsZAkyMDA3LTAzLTA0IDAyOjM0OjAxLjg5OTk4
MTg2NCArMDEwMApAQCAtMjEsNiArMjEsMTQgQEAKIAltZWRpYS1saWJzL3NkbC1uZXQKIAltZWRp
YS1saWJzL3NkbC1zb3VuZCIKIAorcGtnX3NldHVwKCkgeworCWlmIHVzZSBhbHNhICYmICEgYnVp
bHRfd2l0aF91c2UgLS1taXNzaW5nIHRydWUgbWVkaWEtbGlicy9hbHNhLWxpYiBtaWRpOyB0aGVu
CisJCWVlcnJvciAiVG8gYmUgYWJsZSB0byBidWlsZCBkb3Nib3ggd2l0aCBBTFNBIHN1cHBvcnQg
eW91IG5lZWQiCisJCWVlcnJvciAidG8gaGF2ZSBidWlsdCBtZWRpYS1saWJzL2Fsc2EtbGliIHdp
dGggbWlkaSBVU0UgZmxhZy4iCisJCWRpZSAiTWlzc2luZyBtaWRpIFVTRSBmbGFnIG9uIG1lZGlh
LWxpYnMvYWxzYS1saWIiCisJZmkKK30KKwogc3JjX2NvbXBpbGUoKSB7CiAJbG9jYWwgbXljb25m
PQogCg==
</data>        

          </attachment>
    </bug>

</bugzilla>