From nobody@FreeBSD.org  Sun Sep 15 14:57:05 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 4B15EF5
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 15 Sep 2013 14:57:05 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 38DCE2581
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 15 Sep 2013 14:57:05 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r8FEv4UU028464
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 15 Sep 2013 14:57:04 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r8FEv4hZ028460;
	Sun, 15 Sep 2013 14:57:04 GMT
	(envelope-from nobody)
Message-Id: <201309151457.r8FEv4hZ028460@oldred.freebsd.org>
Date: Sun, 15 Sep 2013 14:57:04 GMT
From: Dirk-Willem van Gulik <dirkx@webweaving.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: patch - update net/widentd for clang
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         182117
>Category:       ports
>Synopsis:       patch - update net/widentd for clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    tijl
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 15 15:00:00 UTC 2013
>Closed-Date:    Sat Oct 19 16:15:13 CEST 2013
>Last-Modified:  Sat Oct 19 14:20:00 UTC 2013
>Originator:     Dirk-Willem van Gulik
>Release:        10
>Organization:
WebWeaving
>Environment:
FreeBSD freebsd10 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r255342: Sat Sep  7 07:34:47 UTC 2013     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
Patch to hopefully fix http://beefy2.isc.freebsd.org/bulk/head-amd64-default/2013-09-12_01h37m09s/logs/widentd-1.03_1.log attached.

It is against:

URL: https://svn0.us-west.freebsd.org/ports/head/net/widentd
Repository Root: https://svn0.us-west.freebsd.org/ports
Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
Revision: 327342
Node Kind: directory
Schedule: normal
Last Changed Author: dougb
Last Changed Rev: 302141



>How-To-Repeat:

>Fix:
Index: files/patch-widentd.c
===================================================================
--- files/patch-widentd.c	(revision 0)
+++ files/patch-widentd.c	(working copy)
@@ -0,0 +1,13 @@
+--- widentd.c.orig	2013-09-15 16:42:45.000000000 +0200
++++ widentd.c	2013-09-15 16:43:18.000000000 +0200
+@@ -41,6 +41,10 @@
+ 
+ #define SERVICE			("ident")	/* 113 */
+ 
++// Seek middle ground between clang and gcc warnings.
++extern int verbose;
++extern const char *user, *os;
++
+ int             verbose = 0;
+ const char     *user = UID;
+ const char     *os = OS;

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Sep 15 15:00:08 UTC 2013 
Responsible-Changed-Why:  
miwi@ wants this submitter's PRs (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=182117 
Responsible-Changed-From-To: miwi->freebsd-ports-bugs 
Responsible-Changed-By: bdrewery 
Responsible-Changed-When: Sun Sep 22 09:12:16 CDT 2013 
Responsible-Changed-Why:  
Back to the heap due to timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=182117 
State-Changed-From-To: open->closed 
State-Changed-By: tijl 
State-Changed-When: Sat Oct 19 16:13:41 CEST 2013 
State-Changed-Why:  
Modified patch committed in r330870.  Let me know if there are any 
issues with it. 


Responsible-Changed-From-To: freebsd-ports-bugs->tijl 
Responsible-Changed-By: tijl 
Responsible-Changed-When: Sat Oct 19 16:13:41 CEST 2013 
Responsible-Changed-Why:  
Modified patch committed in r330870.  Let me know if there are any 
issues with it. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/182117: commit references a PR
Date: Sat, 19 Oct 2013 14:13:35 +0000 (UTC)

 Author: tijl
 Date: Sat Oct 19 14:13:27 2013
 New Revision: 330870
 URL: http://svnweb.freebsd.org/changeset/ports/330870
 
 Log:
   Fix build with clang and -Wmissing-variable-declarations by moving the
   variables into main.
   
   PR:		ports/182117
   Submitted by:	Dirk-Willem van Gulik <dirkx@webweaving.org> (maintainer)
 
 Added:
   head/net/widentd/files/patch-widentd.c   (contents, props changed)
 Modified:
   head/net/widentd/Makefile   (contents, props changed)
 Directory Properties:
   head/net/widentd/distinfo   (props changed)
   head/net/widentd/files/widentd.in   (props changed)
   head/net/widentd/pkg-descr   (props changed)
 
 Modified: head/net/widentd/Makefile
 ==============================================================================
 --- head/net/widentd/Makefile	Sat Oct 19 14:13:00 2013	(r330869)
 +++ head/net/widentd/Makefile	Sat Oct 19 14:13:27 2013	(r330870)
 @@ -3,7 +3,7 @@
  
  PORTNAME=	widentd
  PORTVERSION=	1.03
 -PORTREVISION=	1
 +PORTREVISION=	2
  CATEGORIES=	net ipv6
  MASTER_SITES=	http://www.webweaving.org/widentd/
  EXTRACT_SUFX=	.tgz
 
 Added: head/net/widentd/files/patch-widentd.c
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/net/widentd/files/patch-widentd.c	Sat Oct 19 14:13:27 2013	(r330870)
 @@ -0,0 +1,22 @@
 +--- widentd.c.orig
 ++++ widentd.c
 +@@ -41,9 +41,6 @@
 + 
 + #define SERVICE			("ident")	/* 113 */
 + 
 +-int             verbose = 0;
 +-const char     *user = UID;
 +-const char     *os = OS;
 + 
 + static void
 + usage(void)
 +@@ -64,6 +61,9 @@ main(int argc, char **argv)
 + 	fd_set         *lst = malloc(FD_SETSIZE), *xst = malloc(FD_SETSIZE),
 + 	               *wst = malloc(FD_SETSIZE);
 + 	struct addrinfo *ports, *p;
 ++	int             verbose = 0;
 ++	const char     *user = UID;
 ++	const char     *os = OS;
 + 	const char	* node = NULL, * service = SERVICE;
 + 	struct addrinfo hints;
 + 	int s = -1;
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
