Subject: pkg/21479: pkgsrc audio/esound doesn't compile in FreeBSD ( fix attached )
To: None <gnats-bugs@gnats.netbsd.org>
From: None <juan@xtraeme.unixbsd.org>
List: netbsd-bugs
Date: 05/06/2003 14:55:53
>Number:         21479
>Category:       pkg
>Synopsis:       pkgsrc audio/esound doesn't compile in FreeBSD ( fix attached )
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue May 06 12:57:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Juan RP
>Release:        NetBSD 1.6R
>Organization:
Juan RP		jrp@hispabsd.org
--
>Environment:
System: NetBSD Nocturno 1.6R NetBSD 1.6R (Nocturno) #2: Sun May 4 07:16:47 CEST 2003 juan@Nocturno:/home/juan/current/obj/sys/arch/i386/compile/Nocturno i386
Architecture: i386
Machine: i386
>Description:

Compiling the package audio/esound on a FreeBSD i386 system, esound
fails compiling. Tested in FreeBSD and NetBSD. 

>How-To-Repeat:

cd pkgsrc/audio/esound && bmake 

>Fix:


Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/audio/esound/distinfo,v
retrieving revision 1.12
diff -b -u -r1.12 distinfo
--- distinfo	2002/10/30 03:09:25	1.12
+++ distinfo	2003/05/06 12:52:25
@@ -3,6 +3,6 @@
 SHA1 (esound-0.2.29.tar.gz) = fea170b3453a14d5a4cdbf3ab9a578f0a423ebd9
 Size (esound-0.2.29.tar.gz) = 364819 bytes
 SHA1 (patch-aa) = fe632a5514073f8d898fef5182a1047b9f2a44c9
-SHA1 (patch-ab) = 50d4c829fe5d53f28a4a38b1962097b8a47b97c7
+SHA1 (patch-ab) = e837557a030a0af081ac785265e0e3bfc3dc1732
 SHA1 (patch-ac) = 8c68050320c80363b831745eb17cc0703acbaf24
 SHA1 (patch-ae) = f0e06658e7cd1f19da089c20f0b89ff89ca5a10f
Index: patches/patch-ab
===================================================================
RCS file: /cvsroot/pkgsrc/audio/esound/patches/patch-ab,v
retrieving revision 1.5
diff -b -u -r1.5 patch-ab
--- patches/patch-ab	2002/10/03 12:21:29	1.5
+++ patches/patch-ab	2003/05/06 12:52:25
@@ -1,8 +1,25 @@
 $NetBSD: patch-ab,v 1.5 2002/10/03 12:21:29 jlam Exp $
 
---- audio_oss.c.orig	Tue Jul 18 18:33:41 2000
-+++ audio_oss.c
-@@ -19,7 +19,7 @@
+--- audio_oss.c.orig	Tue May  6 12:36:46 2003
++++ audio_oss.c	Tue May  6 12:38:20 2003
+@@ -10,16 +10,24 @@
+ #  endif
+ #endif
+ 
++#if defined(__sparc__) || defined(__powerpc__)
++#define AFMT_S16_NE AFMT_S16_BE
++#else
++#define AFMT_S16_NE AFMT_S16_LE
++#endif
++
+ 
+ /* FreeBSD uses a different identifier? what other BSDs? */
+ #ifdef __FreeBSD__
++#ifndef SNDCTL_DSP_SETDUPLEX
+ #define SNDCTL_DSP_SETDUPLEX DSP_CAP_DUPLEX
+ #endif
++#endif
+ 
  #define ARCH_esd_audio_devices
  const char *esd_audio_devices()
  {
@@ -11,7 +28,7 @@
  }
  
  
-@@ -38,7 +38,7 @@
+@@ -38,7 +46,7 @@
      mode |= O_NONBLOCK;
  
      /* open the sound device */
>Release-Note:
>Audit-Trail:
>Unformatted: