From aehlig@linta.de  Mon Jun 20 17:51:07 2011
Return-Path: <aehlig@linta.de>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 7EA71106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 20 Jun 2011 17:51:07 +0000 (UTC)
	(envelope-from aehlig@linta.de)
Received: from linta.de (isilmar-3.linta.de [188.40.101.200])
	by mx1.freebsd.org (Postfix) with ESMTP id AA3F28FC08
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 20 Jun 2011 17:50:53 +0000 (UTC)
Received: (qmail 4153 invoked by uid 10); 20 Jun 2011 17:50:37 -0000
Received: from kta1c10 by isilmar.linta.de with BSMTP; 20 Jun 2011 17:50:37 -0000
Received: by kta1c10.sesnet.soton.ac.uk (Postfix, from userid 1001)
	id 1D13D3981D; Mon, 20 Jun 2011 18:50:29 +0100 (BST)
Message-Id: <20110620175029.1D13D3981D@kta1c10.sesnet.soton.ac.uk>
Date: Mon, 20 Jun 2011 18:50:29 +0100 (BST)
From: Klaus Aehlig <aehlig@linta.de>
Reply-To: Klaus Aehlig <aehlig@linta.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [maintainer] x11-clocks/tclock
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         158073
>Category:       ports
>Synopsis:       [maintainer] x11-clocks/tclock
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jlaffaye
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 20 18:00:22 UTC 2011
>Closed-Date:    Tue Jun 28 20:43:02 CEST 2011
>Last-Modified:  Tue Jun 28 18:50:06 UTC 2011
>Originator:     Klaus Aehlig
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD kta1c10.sesnet.soton.ac.uk 8.2-STABLE FreeBSD 8.2-STABLE #2: Sat May 28 19:30:07 BST 2011 root@kta1c10.sesnet.soton.ac.uk:/usr/obj/usr/src/sys/KTA1C10 amd64

>Description:
	x11-clocks/tclock fails to build with CC=clang
>How-To-Repeat:
>Fix:

	Apply the following patch

--- tclock.patch begins here ---
diff -ruN tclock.orig/files/patch-aa tclock/files/patch-aa
--- tclock.orig/files/patch-aa	2011-06-20 18:41:06.000000000 +0100
+++ tclock/files/patch-aa	2011-06-20 18:42:50.000000000 +0100
@@ -1,5 +1,5 @@
---- tclock.c.orig	Mon Dec 21 20:56:29 1992
-+++ tclock.c	Tue Sep 24 13:02:59 2002
+--- tclock.c.orig	1992-12-21 19:56:29.000000000 +0000
++++ tclock.c	2011-06-20 18:42:37.000000000 +0100
 @@ -22,7 +22,10 @@
   */ 
  
@@ -53,6 +53,15 @@
  }
  
  unsigned long
+@@ -294,7 +295,7 @@
+   strcpy(appClass, "Tclock");
+ }
+ 
+-void
++int
+ main(ac, av)
+   int ac;
+   char **av;
 @@ -309,6 +310,7 @@
    extern
    char		*getenv();
--- tclock.patch ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->jlaffaye 
Responsible-Changed-By: jlaffaye 
Responsible-Changed-When: Mon Jun 20 21:09:07 CEST 2011 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=158073 
State-Changed-From-To: open->closed 
State-Changed-By: jlaffaye 
State-Changed-When: Tue Jun 28 20:43:01 CEST 2011 
State-Changed-Why:  
Committed. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/158073: commit references a PR
Date: Tue, 28 Jun 2011 18:42:06 +0000 (UTC)

 jlaffaye    2011-06-28 18:41:58 UTC
 
   FreeBSD ports repository
 
   Modified files:
     x11-clocks/tclock/files patch-aa 
   Log:
   Fixes build with clang
   
   PR:             ports/158073
   Submitted by:   Klaus Aehlig <aehlig@linta.de> (maintainer)
   Approved by:    rene (mentor vacation)
   
   Revision  Changes    Path
   1.4       +11 -2     ports/x11-clocks/tclock/files/patch-aa
 _______________________________________________
 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:
