<?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>100112</bug_id>
          
          <creation_ts>2005-07-24 05:44 0000</creation_ts>
          <short_desc>a52dec compile fails: audio_out_oss.c:38:31: machine/soundcard.h: No such file or directory</short_desc>
          <delta_ts>2006-04-12 10:50:11 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo/Alt</product>
          <component>Other</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>FreeBSD</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>morph@ngi.it</reporter>
          <assigned_to>sound@gentoo.org</assigned_to>
          <cc>bsd@gentoo.org</cc>
    
    <cc>sbriesen@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>morph@ngi.it</who>
            <bug_when>2005-07-24 05:44:29 0000</bug_when>
            <thetext>When i try to compile a52dec with +oss flag:   
   
Making all in libao   
`-mcpu=&apos; is deprecated. Use `-mtune=&apos; or &apos;-march=&apos; instead.   
`-mcpu=&apos; is deprecated. Use `-mtune=&apos; or &apos;-march=&apos; instead.   
`-mcpu=&apos; is deprecated. Use `-mtune=&apos; or &apos;-march=&apos; instead.   
`-mcpu=&apos; is deprecated. Use `-mtune=&apos; or &apos;-march=&apos; instead.   
`-mcpu=&apos; is deprecated. Use `-mtune=&apos; or &apos;-march=&apos; instead.   
`-mcpu=&apos; is deprecated. Use `-mtune=&apos; or &apos;-march=&apos; instead.   
audio_out_oss.c:38:31: machine/soundcard.h: No such file or directory   
audio_out_oss.c: In function `oss_play&apos;:   
audio_out_oss.c:102: error: `SNDCTL_DSP_CHANNELS&apos; undeclared (first use in   
this function)   
audio_out_oss.c:102: error: (Each undeclared identifier is reported only once   
audio_out_oss.c:102: error: for each function it appears in.)   
audio_out_oss.c:109: error: `SNDCTL_DSP_SPEED&apos; undeclared (first use in this   
function)   
audio_out_oss.c: In function `oss_open&apos;:   
audio_out_oss.c:163: error: `AFMT_S16_LE&apos; undeclared (first use in this   
function)   
audio_out_oss.c:164: error: `SNDCTL_DSP_SETFMT&apos; undeclared (first use in this   
function)   
`-mcpu=&apos; is deprecated. Use `-mtune=&apos; or &apos;-march=&apos; instead.   
gmake[1]: *** [audio_out_oss.o] Error 1   
gmake[1]: *** Waiting for unfinished jobs....   
gmake: *** [all-recursive] Error 1   
   
!!! ERROR: media-libs/a52dec-0.7.4-r5 failed.   
!!! Function src_compile, Line 45, Exitcode 2   
!!! emake failed   
!!! If you need support, post the topmost build error, NOT this status   
message.   
 
---- 
 
Portage 2.0.51.22 (!/usr/local/portage/profiles/default-bsd/fbsd/5.4/x86, 
gcc-, freebsd-lib-5.4-r2, 5.4-RELEASE i386) 
================================================================= 
System uname: 5.4-RELEASE i386 i386 
Gentoo/FreeBSD: FreeBSD version 5.4-RELEASE; Gentoo base version 0.7 
dev-lang/python:     2.4.1-r1 
sys-apps/sandbox:    [Not Present] 
sys-devel/autoconf:  2.13, 2.59-r7 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 
sys-devel/binutils:  2.15, 2.16.1 
sys-devel/libtool:   1.5.18-r1 
virtual/os-headers:  5.4 
ACCEPT_KEYWORDS=&quot;x86 x86-fbsd ~x86 ~x86-fbsd&quot; 
AUTOCLEAN=&quot;yes&quot; 
CBUILD=&quot;i686-gentoo-freebsd5.4&quot; 
CFLAGS=&quot;-march=athlon-xp -Os -pipe -fomit-frame-pointer -m3dnow -msse -mmmx&quot; 
CHOST=&quot;i686-gentoo-freebsd5.4&quot; 
CONFIG_PROTECT=&quot;/etc&quot; 
CONFIG_PROTECT_MASK=&quot; /etc/env.d&quot; 
CXXFLAGS=&quot;-march=athlon-xp -Os -pipe -fomit-frame-pointer -m3dnow -msse -mmmx&quot; 
DISTDIR=&quot;/usr/portage/distfiles&quot; 
FEATURES=&quot;candy distlocks&quot; 
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo&quot; 
MAKEOPTS=&quot;-j2 -s&quot; 
PKGDIR=&quot;/usr/portage/packages&quot; 
PORTAGE_TMPDIR=&quot;/var/tmp&quot; 
PORTDIR=&quot;/usr/portage&quot; 
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot; 
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot; 
USE=&quot;x86-fbsd 3dnow 3dnowext X a52 aac arts bash-completion browserplugin 
crypt dvd dvdr estraier ffmpeg flac freetype gstreamer gtk gtk2 jpeg kde 
kdeenablefinal matroska moznocompose moznoirc moznomail moznoxft mozsvg mp3 
mpeg nocxx ogg oggvorbis opengl oss pam perl png python qt quicktime readline 
real slang spell ssl symlink tiff truetype truetype-fonts type1-fonts unicode 
visualization vorbis win32codecs wxwindows xine xml2 xscreensaver xv xvid zlib 
userland_BSD kernel_FreeBSD elibc_FreeBSD&quot; 
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>morph@ngi.it</who>
            <bug_when>2005-07-24 05:46:40 0000</bug_when>
            <thetext>Created an attachment (id=64199)
Fix the wrong include path in audio_out_oss.c
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2005-07-29 06:40:01 0000</bug_when>
            <thetext>Thanks added to CVS. 
 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sbriesen@gentoo.org</who>
            <bug_when>2005-08-11 07:09:30 0000</bug_when>
            <thetext>patch doesn&apos;t work! 
 
&gt;&gt;&gt; Unpacking a52dec-0.7.4.tar.gz 
to /vol1/.gentoo/build/portage/a52dec-0.7.4-r5/work 
 * Applying a52dec-0.7.4-build.patch ...                                                                              
[ ok ] 
 * Applying a52dec-0.7.4-freebsd.patch ... 
 
 * Failed Patch: a52dec-0.7.4-freebsd.patch ! 
 *  ( /usr/portage/media-libs/a52dec/files/a52dec-0.7.4-freebsd.patch ) 
 * 
 * Include in your bugreport the contents of: 
 * 
 
*   /vol1/.gentoo/build/portage/a52dec-0.7.4-r5/temp/a52dec-0.7.4-freebsd.patch-24012.out 
 
 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sbriesen@gentoo.org</who>
            <bug_when>2005-08-11 07:11:01 0000</bug_when>
            <thetext>Created an attachment (id=65663)
a52dec-0.7.4-freebsd.patch-24715.out

Problem is this hardcoded, fully qualified path in the patchfile:

--- /var/tmp/portage/a52dec-0.7.4-r5/work/a52dec-0.7.4/libao/audio_out_oss.c   
2002-04-28 12:23:02 +0200
+++ audio_out_oss.c	2005-07-23 15:42:50 +0200
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sbriesen@gentoo.org</who>
            <bug_when>2005-08-11 07:13:21 0000</bug_when>
            <thetext>fixing the header to: 
 
--- libao/audio_out_oss.c     2002-04-28 12:23:02 +0200 
+++ libao/audio_out_oss.c     2005-07-23 15:42:50 +0200 
 
solves the problem! 
 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2005-08-11 07:29:04 0000</bug_when>
            <thetext>The problem with the patch is reported elsewhere. 
 
And I still can&apos;t reproduce it, if you can, feel free to commit the fix, I 
avoid committing fixes if I&apos;m unable to reproduce the problem as they can make 
things bad. 
 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sbriesen@gentoo.org</who>
            <bug_when>2005-08-11 07:32:06 0000</bug_when>
            <thetext>you can easily reproduce it, if your portage-temp is not /var/tmp/portage 
 
Mine is on a different location. 
 
*never* use absolute paths in patch files! 
 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sbriesen@gentoo.org</who>
            <bug_when>2005-08-11 07:32:44 0000</bug_when>
            <thetext>ok, I commit the fix. 
 </thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>64199</attachid>
            <date>2005-07-24 05:46 0000</date>
            <desc>Fix the wrong include path in audio_out_oss.c</desc>
            <filename>oss-include.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC92YXIvdG1wL3BvcnRhZ2UvYTUyZGVjLTAuNy40LXI1L3dvcmsvYTUyZGVjLTAuNy40L2xp
YmFvL2F1ZGlvX291dF9vc3MuYwkyMDAyLTA0LTI4IDEyOjIzOjAyICswMjAwCisrKyBhdWRpb19v
dXRfb3NzLmMJMjAwNS0wNy0yMyAxNTo0Mjo1MCArMDIwMApAQCAtMzUsNyArMzUsNyBAQAogI2lm
IGRlZmluZWQoX19PcGVuQlNEX18pCiAjaW5jbHVkZSA8c291bmRjYXJkLmg+CiAjZWxpZiBkZWZp
bmVkKF9fRnJlZUJTRF9fKQotI2luY2x1ZGUgPG1hY2hpbmUvc291bmRjYXJkLmg+CisjaW5jbHVk
ZSA8c3lzL3NvdW5kY2FyZC5oPgogI2lmbmRlZiBBRk1UX1MxNl9ORQogI2luY2x1ZGUgPG1hY2hp
bmUvZW5kaWFuLmg+CiAjaWYgQllURV9PUkRFUiA9PSBMSVRUTEVfRU5ESUFOCg==
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>65663</attachid>
            <date>2005-08-11 07:11 0000</date>
            <desc>a52dec-0.7.4-freebsd.patch-24715.out</desc>
            <filename>a52dec-0.7.4-freebsd.patch-24715.out</filename>
            <type>text/plain</type>
            <data encoding="base64">KioqKiogYTUyZGVjLTAuNy40LWZyZWVic2QucGF0Y2ggKioqKioKCj09PT09PT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