alsa-oss: fix libio.patch
authorHenning Heinold <heinold@inf.fu-berlin.de>
Mon, 21 Jul 2008 20:37:16 +0000 (20:37 +0000)
committerHenning Heinold <heinold@inf.fu-berlin.de>
Mon, 21 Jul 2008 20:37:16 +0000 (20:37 +0000)
*stupid else vs. #else from some how dont break uclibc build
so I catched not _fildes vs __filedes, fixed now to, thanks
to shoragan to spot this
* add LEAD_SONAME as suggested by bitbake
* bump PR this time the rightway

packages/alsa/alsa-oss_1.0.15.bb
packages/alsa/files/libio.patch

index 3cfe886..de840e7 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION = "Alsa OSS Compatibility Package"
 SECTION = "libs/multimedia"
 LICENSE = "GPL"
 DEPENDS = "alsa-lib"
-PR = "1"
+PR = "r2"
 
 SRC_URI = "ftp://ftp.alsa-project.org/pub/oss-lib/alsa-oss-${PV}.tar.bz2 \
           file://libio.patch;patch=1 \
@@ -10,6 +10,8 @@ SRC_URI = "ftp://ftp.alsa-project.org/pub/oss-lib/alsa-oss-${PV}.tar.bz2 \
 
 inherit autotools 
 
+LEAD_SONAME = "libaoss.so.0"
+
 do_configure_prepend () {
        touch NEWS README AUTHORS ChangeLog
 }
index 83345a9..a053e4c 100644 (file)
@@ -1,7 +1,7 @@
 Index: alsa-oss-1.0.15/alsa/stdioemu.c
 ===================================================================
 --- alsa-oss-1.0.15.orig/alsa/stdioemu.c       2007-10-15 10:50:40.000000000 +0200
-+++ alsa-oss-1.0.15/alsa/stdioemu.c    2008-07-20 22:29:46.767474560 +0200
++++ alsa-oss-1.0.15/alsa/stdioemu.c    2008-07-21 22:17:06.303161438 +0200
 @@ -37,7 +37,9 @@
  #endif
  
@@ -18,8 +18,8 @@ Index: alsa-oss-1.0.15/alsa/stdioemu.c
                result = fopencookie (fdc,"w", fns);
 +#ifdef HAVE_FILENO
                result->_fileno = fdc->fd;              /* ugly patchy slimy kludgy hack */
-+else
-+              result->_filedes = fdc->fd;
++#else
++              result->__filedes = fdc->fd;
 +#endif
        }
        return result;
@@ -27,7 +27,7 @@ Index: alsa-oss-1.0.15/alsa/stdioemu.c
 Index: alsa-oss-1.0.15/configure.in
 ===================================================================
 --- alsa-oss-1.0.15.orig/configure.in  2007-10-15 10:50:40.000000000 +0200
-+++ alsa-oss-1.0.15/configure.in       2008-07-20 22:49:45.455837502 +0200
++++ alsa-oss-1.0.15/configure.in       2008-07-21 22:16:11.719837298 +0200
 @@ -33,6 +33,12 @@
    LIBS="$OLD_LIBS"
  fi