From mad@madpilot.net  Tue Jun 21 11:19:37 2011
Return-Path: <mad@madpilot.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 3BD0E1065674
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 21 Jun 2011 11:19:37 +0000 (UTC)
	(envelope-from mad@madpilot.net)
Received: from megatron.madpilot.net (megatron.madpilot.net [88.149.173.206])
	by mx1.freebsd.org (Postfix) with ESMTP id D95168FC12
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 21 Jun 2011 11:19:36 +0000 (UTC)
Received: from megatron.madpilot.net (localhost [127.0.0.1])
	by megatron.madpilot.net (Postfix) with ESMTP id 26D321DCE
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 21 Jun 2011 13:19:35 +0200 (CEST)
Received: from megatron.madpilot.net ([127.0.0.1])
	by megatron.madpilot.net (megatron.madpilot.net [127.0.0.1]) (amavisd-new, port 10026)
	with ESMTP id GhJ-nRBw6Yi3 for <FreeBSD-gnats-submit@freebsd.org>;
	Tue, 21 Jun 2011 13:19:27 +0200 (CEST)
Received: by megatron.madpilot.net (Postfix, from userid 1000)
	id 747881DC6; Tue, 21 Jun 2011 13:19:27 +0200 (CEST)
Message-Id: <20110621111927.747881DC6@megatron.madpilot.net>
Date: Tue, 21 Jun 2011 13:19:27 +0200 (CEST)
From: Guido Falsi <mad@madpilot.net>
Reply-To: Guido Falsi <ma@madpilot.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: games/acm: fix build with clang
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         158103
>Category:       ports
>Synopsis:       games/acm: fix build with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 21 11:20:07 UTC 2011
>Closed-Date:    Sat Jun 25 07:48:40 UTC 2011
>Last-Modified:  Sat Jun 25 07:50:12 UTC 2011
>Originator:     Guido Falsi
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
none
>Environment:
System: FreeBSD megatron.madpilot.net 8.2-STABLE FreeBSD 8.2-STABLE #1: Mon Jun 6 20:10:31 CEST 2011 root@megatron.madpilot.net:/usr/obj/usr/src/sys/MEGATRON amd64

>Description:

Fix trivial error reported by exp run with clang.

Add patch file files/patch-dis-test-disscope.c

I don't have a clang machine to test this, the patch fixes the error shown here:

http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp.20110616185105/acm-5.0_2.log

If more errors show up when proceeding with the build I'd have to look at them.

>How-To-Repeat:
>Fix:

diff -ruN acm.old/files/patch-dis-test-disscope.c acm/files/patch-dis-test-disscope.c
--- acm.old/files/patch-dis-test-disscope.c	1970-01-01 01:00:00.000000000 +0100
+++ acm/files/patch-dis-test-disscope.c	2011-06-21 13:09:41.475448806 +0200
@@ -0,0 +1,11 @@
+--- dis/test/disscope.c.orig	1998-12-10 23:58:01.000000000 +0100
++++ dis/test/disscope.c	2011-06-21 13:01:46.689444826 +0200
+@@ -172,7 +172,7 @@
+ #endif
+ 		++ count;
+ 	}
+-	return;
++	return 0;
+ }
+ 
+ char *
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Sat Jun 25 07:48:39 UTC 2011 
State-Changed-Why:  
Committed. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/158103: commit references a PR
Date: Sat, 25 Jun 2011 07:48:44 +0000 (UTC)

 miwi        2011-06-25 07:48:30 UTC
 
   FreeBSD ports repository
 
   Modified files:
     games/acm            distinfo 
   Added files:
     games/acm/files      patch-dis-test-disscope.c 
   Log:
   - Fix build with CLANG
   
   PR:             158103
   Submitted by:   Guido Falsi <mad@madpilot.net>
   
   Revision  Changes    Path
   1.8       +0 -1      ports/games/acm/distinfo
   1.1       +11 -0     ports/games/acm/files/patch-dis-test-disscope.c (new)
 _______________________________________________
 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:
