From nobody@FreeBSD.org  Tue Nov 23 02:40:12 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 7D803106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 23 Nov 2010 02:40:12 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 604658FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 23 Nov 2010 02:40:12 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id oAN2eCkU063600
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 23 Nov 2010 02:40:12 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id oAN2eCNJ063599;
	Tue, 23 Nov 2010 02:40:12 GMT
	(envelope-from nobody)
Message-Id: <201011230240.oAN2eCNJ063599@red.freebsd.org>
Date: Tue, 23 Nov 2010 02:40:12 GMT
From: Nicole Reid <root@cooltrainer.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Maintainer update: emulators/snes9x-gtk fix build with ALSA
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         152503
>Category:       ports
>Synopsis:       Maintainer update: emulators/snes9x-gtk fix build with ALSA
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 23 02:50:08 UTC 2010
>Closed-Date:    Tue Nov 23 10:10:55 UTC 2010
>Last-Modified:  Tue Nov 23 10:20:09 UTC 2010
>Originator:     Nicole Reid
>Release:        8.1
>Organization:
>Environment:
>Description:
Snes9x-GTK auto-detects the presence of ALSA and fails to build if audio/alsa-lib is installed.


===>  Building for snes9x-gtk-1.52r79_2
Making all in data
gmake[1]: Entering directory `/usr/ports/emulators/snes9x-gtk/work/snes9x-1.52-src/gtk/data'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/usr/ports/emulators/snes9x-gtk/work/snes9x-1.52-src/gtk/data'
Making all in po
gmake[1]: Entering directory `/usr/ports/emulators/snes9x-gtk/work/snes9x-1.52-src/gtk/po'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/usr/ports/emulators/snes9x-gtk/work/snes9x-1.52-src/gtk/po'
gmake[1]: Entering directory `/usr/ports/emulators/snes9x-gtk/work/snes9x-1.52-src/gtk'
  CXX    src/snes9x_gtk-gtk_sound.o
In file included from /usr/local/include/alsa/asoundlib.h:51,
                 from src/gtk_sound_driver_alsa.h:6,
                 from src/gtk_sound.cpp:18:
/usr/local/include/alsa/error.h:64:16: warning: anonymous variadic macros were introduced in C99
/usr/local/include/alsa/error.h:65:16: warning: anonymous variadic macros were introduced in C99
In file included from /usr/local/include/alsa/asoundlib.h:52,
                 from src/gtk_sound_driver_alsa.h:6,
                 from src/gtk_sound.cpp:18:
/usr/local/include/alsa/conf.h:126: error: ISO C++ does not support 'long long'
/usr/local/include/alsa/conf.h:135: error: ISO C++ does not support 'long long'
/usr/local/include/alsa/conf.h:142: error: ISO C++ does not support 'long long'
In file included from /usr/local/include/alsa/asoundlib.h:85,
                 from src/gtk_sound_driver_alsa.h:6,
                 from src/gtk_sound.cpp:18:
/usr/local/include/alsa/control.h:387: error: ISO C++ does not support 'long long'
/usr/local/include/alsa/control.h:388: error: ISO C++ does not support 'long long'
/usr/local/include/alsa/control.h:389: error: ISO C++ does not support 'long long'
/usr/local/include/alsa/control.h:411: error: ISO C++ does not support 'long long'
/usr/local/include/alsa/control.h:411: error: ISO C++ does not support 'long long'
/usr/local/include/alsa/control.h:411: error: ISO C++ does not support 'long long'
/usr/local/include/alsa/control.h:443: error: ISO C++ does not support 'long long'
/usr/local/include/alsa/control.h:448: error: ISO C++ does not support 'long long'
In file included from /usr/local/include/alsa/asoundlib.h:86,
                 from src/gtk_sound_driver_alsa.h:6,
                 from src/gtk_sound.cpp:18:
/usr/local/include/alsa/mixer.h:201: error: comma at end of enumerator list
src/gtk_sound.cpp: In function 'void S9xPortSoundInit()':
src/gtk_sound.cpp:61: warning: unused variable 'pao_driver'
gmake[1]: *** [src/snes9x_gtk-gtk_sound.o] Error 1
gmake[1]: Leaving directory `/usr/ports/emulators/snes9x-gtk/work/snes9x-1.52-src/gtk'
gmake: *** [all-recursive] Error 1
*** Error code 1

Stop in /usr/ports/emulators/snes9x-gtk.
*** Error code 1

Stop in /usr/ports/emulators/snes9x-gtk.
>How-To-Repeat:

>Fix:
Explicitly disable ALSA. Patch attached.

Patch attached with submission follows:

diff -ruN snes9x-gtk.bak/Makefile snes9x-gtk/Makefile
--- snes9x-gtk.bak/Makefile	2010-11-22 21:08:16.047693584 -0500
+++ snes9x-gtk/Makefile	2010-11-22 21:20:23.921664600 -0500
@@ -28,6 +28,7 @@
 USE_SDL=	sdl
 CONFIGURE_ENV+=	CPPFLAGS="-I${LOCALBASE}/include" \
 		LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ARGS+=	--without-alsa
 
 WRKSRC=		${WRKDIR}/${DISTNAME}/gtk
 
diff -ruN snes9x-gtk.bak/distinfo snes9x-gtk/distinfo
--- snes9x-gtk.bak/distinfo	2010-11-22 21:08:16.047693584 -0500
+++ snes9x-gtk/distinfo	2010-11-22 21:19:36.594813620 -0500
@@ -1,3 +1,2 @@
-MD5 (snes9x-1.52-src.tar.bz2) = 813bd3a0f99732ee0238a2c8ab417725
 SHA256 (snes9x-1.52-src.tar.bz2) = 36e09b2da62b9210feb224cfd183047a151a71c1d5e5f92749dc28bd4b7ff1cb
 SIZE (snes9x-1.52-src.tar.bz2) = 1720137


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: makc 
State-Changed-When: Tue Nov 23 10:10:53 UTC 2010 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=152503 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/152503: commit references a PR
Date: Tue, 23 Nov 2010 10:10:51 +0000 (UTC)

 makc        2010-11-23 10:10:47 UTC
 
   FreeBSD ports repository
 
   Modified files:
     emulators/snes9x-gtk Makefile distinfo 
   Log:
   Disable ALSA support explicitly to fix build when ALSA compat port is installed
   
   PR:             ports/152503
   Submitted by:   Nicole Reid (maintainer)
   
   Revision  Changes    Path
   1.7       +1 -0      ports/emulators/snes9x-gtk/Makefile
   1.3       +0 -1      ports/emulators/snes9x-gtk/distinfo
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
