From nobody@FreeBSD.org  Fri Mar 30 12:19:25 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 2C31616A401
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 30 Mar 2007 12:19:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 1ADEC13C4B0
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 30 Mar 2007 12:19:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l2UCJOAf066965
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 30 Mar 2007 12:19:24 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l2UCENXv065002;
	Fri, 30 Mar 2007 12:14:23 GMT
	(envelope-from nobody)
Message-Id: <200703301214.l2UCENXv065002@www.freebsd.org>
Date: Fri, 30 Mar 2007 12:14:23 GMT
From: Alexey Antipovsky<kemm@in-line.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] emulators/fuse: Fix build with gcc 4.1
X-Send-Pr-Version: www-3.0

>Number:         111031
>Category:       ports
>Synopsis:       [patch] emulators/fuse: Fix build with gcc 4.1
>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:   Fri Mar 30 12:20:05 GMT 2007
>Closed-Date:    Fri Mar 30 16:14:15 GMT 2007
>Last-Modified:  Fri Mar 30 16:14:15 GMT 2007
>Originator:     Alexey Antipovsky
>Release:        FreeBSD 6.2-PRERELEASE i386
>Organization:
Inline Technologies
>Environment:
System: FreeBSD redsun.bm.in-line.local 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #2: Tue Oct 3 14:06:39 MSD 2006 root@redsun.bm.in-line.local:/usr/obj/usr/src/sys/REDSUN i386

gcc version:
gcc41 (GCC) 4.1.3 20070312 (prerelease)
>Description:
port fails to build with the gcc 4.1
>How-To-Repeat:
$ cd /usr/ports/emulators/fuse; CC=gcc41 make
>Fix:
Patch was taken from Gentoo portages

--- fuse.patch begins here ---
diff -urN fuse.orig/Makefile fuse/Makefile
--- fuse.orig/Makefile  Wed Sep 20 15:20:43 2006
+++ fuse/Makefile   Thu Mar 29 16:48:39 2007
@@ -7,7 +7,7 @@

 PORTNAME=  fuse
 PORTVERSION=   0.7.0
-PORTREVISION=  3
+PORTREVISION=  4
 CATEGORIES=    emulators
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=    fuse-emulator
diff -urN fuse.orig/files/patch-sound.c fuse/files/patch-sound.c
--- fuse.orig/files/patch-sound.c   Thu Jan  1 03:00:00 1970
+++ fuse/files/patch-sound.c    Thu Mar 29 16:11:22 2007
@@ -0,0 +1,13 @@
+--- sound.c.orig   Thu Mar 29 16:09:24 2007
++++ sound.c    Thu Mar 29 16:09:50 2007
+@@ -58,8 +58,8 @@
+ int sound_stereo_ay_abc=0;    /* (AY stereo) true for ABC stereo, else ACB */
+ int sound_stereo_ay_narrow=0; /* (AY stereo) true for narrow AY st. sep. */
+
+-static int sound_stereo_ay=0; /* local copy of settings_current.stereo_ay */
+-static int sound_stereo_beeper=0;   /* and settings_current.stereo_beeper */
++int sound_stereo_ay=0;    /* local copy of settings_current.stereo_ay */
++int sound_stereo_beeper=0;   /* and settings_current.stereo_beeper */
+
+
+ /* assume all three tone channels together match the beeper volume (ish).
--- fuse.patch ends here ---
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Fri Mar 30 16:14:09 UTC 2007 
State-Changed-Why:  
Dupe 

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