From xride@x12.dk  Mon Mar  7 22:32:14 2005
Return-Path: <xride@x12.dk>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9A5F316A4CF
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  7 Mar 2005 22:32:14 +0000 (GMT)
Received: from swip.net (mailfe04.swip.net [212.247.154.97])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2AD5F43D41
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  7 Mar 2005 22:32:13 +0000 (GMT)
	(envelope-from xride@x12.dk)
Received: from x12.dk ([83.72.97.237] verified)
  by mailfe04.swip.net (CommuniGate Pro SMTP 4.2.9)
  with ESMTP id 314546879 for FreeBSD-gnats-submit@freebsd.org; Mon, 07 Mar 2005 23:32:11 +0100
Received: by x12.dk (Postfix, from userid 666)
	id 30683208A; Mon,  7 Mar 2005 23:32:10 +0100 (CET)
Message-Id: <20050307223210.30683208A@x12.dk>
Date: Mon,  7 Mar 2005 23:32:10 +0100 (CET)
From: Sren Straarup <xride@x12.dk>
Reply-To: Sren Straarup <xride@x12.dk>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Patch: astro/phoon . Fix for compilation warnings
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         78566
>Category:       ports
>Synopsis:       Patch: astro/phoon . Fix for compilation warnings
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 07 22:40:02 GMT 2005
>Closed-Date:    Wed Mar 09 09:11:52 GMT 2005
>Last-Modified:  Wed Mar 09 09:11:52 GMT 2005
>Originator:     Sren Straarup
>Release:        FreeBSD 6.0-CURRENT i386
>Organization:
>Environment:
FreeBSD wilfred.xride.dk 6.0-CURRENT FreeBSD 6.0-CURRENT #4: Sun Jan 23 20:33:24 CET 2005     xride@wilfred.lan:/usr/src/sys/i386/compile/wilfred  i386

	Ports cvsup'ed date 2005-03-06
>Description:
	Compilation warnings:
	astro.h: an #endif had an argument, didn't like it..
		My change looks to be style(9) compliant
	phoon.c: clocknow was of type long, with it should had been time_t

	Further more I would like to Maintainer of the port astro/phoon.
>How-To-Repeat:
	cd ...ports/astro/phoon && make
>Fix:

	Place the files patch-astro.h and patch-phoon.c in:
	...ports/astro/phoon/files/

	Apply Makefile.patch to:
	...ports/astro/phoon/Makefile

--- patch-astro.h begins here ---
--- astro.h.orig	Sun Mar  6 22:43:59 2005
+++ astro.h	Sun Mar  6 22:44:05 2005
@@ -43,4 +43,4 @@
  */
 extern double phase( double pdate, double* pphase, double* mage, double* dist, double* angdia, double* sudist, double* suangdia );
 
-#endif _ASTRO_H_
+#endif
--- patch-astro.h ends here ---

--- patch-phoon.c begins here ---
--- phoon.c.orig	Sun Mar  6 22:33:22 2005
+++ phoon.c	Sun Mar  6 22:33:45 2005
@@ -354,7 +354,7 @@
     struct tm* tmP;
     double jd, pctphase, angphase, cphase, aom, cdist, cangdia, csund, csuang;
     double phases[2], which[2];
-    long clocknow;
+    time_t clocknow;
     int atflrlen, atflridx, numcols, lin, col, midlin;
     double mcap, yrad, xrad, y, xright, xleft;
     int colright, colleft;
--- patch-phoon.c ends here ---

--- Makefile.patch begins here ---
--- Makefile.orig	Mon Mar  7 22:13:34 2005
+++ Makefile	Mon Mar  7 22:13:48 2005
@@ -12,7 +12,7 @@
 PKGNAMESUFFIX=	_20jan
 DISTNAME=	${PORTNAME}${PKGNAMESUFFIX}${PORTVERSION}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	xride@x12.dk
 COMMENT=	Displays the phase of the moon
 
 WRKSRC=		${WRKDIR}/${PORTNAME}
--- Makefile.patch ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed  
State-Changed-By: ahze 
State-Changed-When: Wed Mar 9 09:10:01 GMT 2005 
State-Changed-Why:  


http://www.freebsd.org/cgi/query-pr.cgi?pr=78566 
State-Changed-From-To: closed->closed  
State-Changed-By: ahze 
State-Changed-When: Wed Mar 9 09:10:59 GMT 2005 
State-Changed-Why:  
Committed, Thanks 

Next time please send a diff of the entire work directory, not each file 
ie. diff -ruN port-name.orig port-name > patch-file 

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