From naddy@mips.inka.de  Sat Dec 16 16:30:40 2000
Return-Path: <naddy@mips.inka.de>
Received: from mail.inka.de (quechua.inka.de [212.227.14.2])
	by hub.freebsd.org (Postfix) with ESMTP id 5140237B400
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 16 Dec 2000 16:30:39 -0800 (PST)
Received: from kemoauc.mips.inka.de (uucp@)
	by mail.inka.de with local-bsmtp 
	id 147Rii-0000kw-01; Sun, 17 Dec 2000 01:30:32 +0100
Received: (from naddy@localhost)
	by kemoauc.mips.inka.de (8.11.1/8.11.1) id eBH09tc04309;
	Sun, 17 Dec 2000 01:09:55 +0100 (CET)
	(envelope-from naddy)
Message-Id: <200012170009.eBH09tc04309@kemoauc.mips.inka.de>
Date: Sun, 17 Dec 2000 01:09:55 +0100 (CET)
From: Christian Weisgerber <naddy@mips.inka.de>
Reply-To: naddy@mips.inka.de
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: audio/nas doesn't build on alpha
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         23592
>Category:       ports
>Synopsis:       audio/nas doesn't build on alpha
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 16 16:40:01 PST 2000
>Closed-Date:    Sat Dec 16 17:53:46 PST 2000
>Last-Modified:  Sat Dec 16 17:54:10 PST 2000
>Originator:     Christian Weisgerber
>Release:        FreeBSD 5.0-CURRENT alpha
>Organization:
>Environment:
System: FreeBSD kemoauc.mips.inka.de 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Thu Dec 7 17:54:55 CET 2000 naddy@kemoauc.mips.inka.de:/usr/obj/usr/src/sys/KEMOAUC alpha

>Description:

The audio/nas port fails to build on alpha since it unconditionally
includes <machine/pcaudioio.h>, which is only available on i386.
Further references to the PC speaker audio subsystem are already
properly ifdef'ed, so only the #include needs to be conditionalized.

>How-To-Repeat:

>Fix:

diff -uNr --exclude=CVS /home/naddy/tmp/nas/files/patch-ab nas/files/patch-ab
--- /home/naddy/tmp/nas/files/patch-ab	Thu Mar 30 05:25:57 2000
+++ nas/files/patch-ab	Sat Dec 16 22:13:45 2000
@@ -1,6 +1,17 @@
---- server/dda/voxware/auvoxware.c.orig	Sun Mar  5 11:40:55 2000
-+++ server/dda/voxware/auvoxware.c	Sat Mar 25 15:18:36 2000
-@@ -610,7 +610,11 @@
+--- server/dda/voxware/auvoxware.c.orig	Sun Mar  5 03:40:55 2000
++++ server/dda/voxware/auvoxware.c	Sat Dec 16 22:11:35 2000
+@@ -156,7 +156,9 @@
+ 
+ #ifdef __FreeBSD__
+ # include <machine/soundcard.h>
+-# include <machine/pcaudioio.h>
++# ifdef __i386__
++#  include <machine/pcaudioio.h>
++# endif
+ #else
+ # ifdef __NetBSD__
+ #  include <sys/ioctl.h>
+@@ -610,7 +612,11 @@
  
      if(sndStatOut.fd == -1)
      {
@@ -12,7 +23,7 @@
         {
             osLogMsg("openDevice: waiting on output device\n");
             sleep(1);
-@@ -1230,6 +1234,11 @@
+@@ -1230,6 +1236,11 @@
  /*
   * Setup soundcard at maximum audio quality.
   */
@@ -24,7 +35,7 @@
  static void setupSoundcard(sndStatPtr)
  SndStat* sndStatPtr;
  {
-@@ -1380,7 +1389,11 @@
+@@ -1380,7 +1391,11 @@
  
      AL_initialized = AuTrue;
  

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: trevor 
State-Changed-When: Sat Dec 16 17:53:46 PST 2000 
State-Changed-Why:  
Committed--thanks, Christian. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=23592 
>Unformatted:
