<?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>115299</bug_id>
          
          <creation_ts>2005-12-12 05:57 0000</creation_ts>
          <short_desc>sdl-sound should have optional smpeg support</short_desc>
          <delta_ts>2006-02-11 08:59:36 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>Ebuilds</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>
          
          <blocked>100965</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>wolf31o2@gentoo.org</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          <cc>flash3001@yahoo.com</cc>
    
    <cc>wolfy@treellama.org</cc>

      

      
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2005-12-12 05:57:24 0000</bug_when>
            <thetext>According to bug #100965, sdl-sound needs optional smpeg support for alephone to
work properly with the original Marathon data files from Bungie.

Here&apos;s a simple ebuild patch.  Since I am unfamiliar with why smpeg support was
explicitly disabled, I&apos;m filing this as a bug.

Index: sdl-sound-1.0.1-r2.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/media-libs/sdl-sound/sdl-sound-1.0.1-r2.ebuild,v
retrieving revision 1.2
diff -u -b -B -r1.2 sdl-sound-1.0.1-r2.ebuild
--- sdl-sound-1.0.1-r2.ebuild   30 Sep 2005 18:48:46 -0000      1.2
+++ sdl-sound-1.0.1-r2.ebuild   12 Dec 2005 13:55:36 -0000
@@ -12,7 +12,7 @@
 LICENSE=&quot;LGPL-2.1&quot;
 SLOT=&quot;0&quot;
 KEYWORDS=&quot;~amd64 ~ppc ~x86&quot;
-IUSE=&quot;flac mikmod vorbis speex physfs mp3&quot;
+IUSE=&quot;flac mikmod vorbis speex physfs mp3 mpeg&quot;

 RDEPEND=&quot;&gt;=media-libs/libsdl-1.2
        flac? ( media-libs/flac )
@@ -20,7 +20,8 @@
        vorbis? ( &gt;=media-libs/libvorbis-1.0_beta4 )
        speex? ( media-libs/speex
                media-libs/libogg )
-       physfs? ( dev-games/physfs )&quot;
+       physfs? ( dev-games/physfs )
+       mpeg? ( media-libs/smpeg )&quot;
 DEPEND=&quot;${RDEPEND}
        dev-util/pkgconfig&quot;

@@ -33,7 +34,7 @@
        econf \
                --disable-dependency-tracking \
                --enable-midi \
-               --disable-smpeg \
+               $(use_enable mpeg smpeg) \
                $(use_enable mp3 mpglib) \
                $(use_enable flac) \
                $(use_enable speex) \</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2006-01-11 12:07:41 0000</bug_when>
            <thetext>I&apos;ve added this to CVS... let&apos;s hope it doesn&apos;t kill anything...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolfy@treellama.org</who>
            <bug_when>2006-02-11 06:10:54 0000</bug_when>
            <thetext>you need to re-add the gcc331.patch or it won&apos;t build in SMPEG
(using amd64 and gcc 3.4.4-r1 here)
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2006-02-11 08:29:38 0000</bug_when>
            <thetext>Strange, I tested it on amd64.  What error are you getting exactly?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolfy@treellama.org</who>
            <bug_when>2006-02-11 08:59:36 0000</bug_when>
            <thetext>...
checking for smpeg-config... /usr/bin/smpeg-config
checking for SMPEG - version &gt;= 0.4.3... no
*** Could not run SMPEG test program, checking why...
*** The test program compiled, but did not run. This
usually means
*** that the run-time linker is not finding SMPEG or
finding the wrong
*** version of SMPEG. If it is not finding SMPEG, you&apos;ll
need to set your
*** LD_LIBRARY_PATH environment variable, or edit
/etc/ld.so.conf to point
*** to the installed location  Also, make sure you have run
ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to
remove it, although
*** you may also be able to get things to work by modifying
LD_LIBRARY_PATH
...


running smpeg-config --version gives me 0.4.4

the problem is the acinclude.m4 that comes with SDL_Sound has string literals with literal newlines in them, which gcc apparently can&apos;t parse any more

adding gcc331.patch and the corresponding aclocal hacks from sdl-sound-1.0.1.ebuild into my overlay makes it compile in SMPEG</thetext>
          </long_desc>
      
    </bug>

</bugzilla>