ports/78566: Patch: astro/phoon . Fix for compilation warnings
Søren Straarup
xride at x12.dk
Mon Mar 7 22:40:03 UTC 2005
>Number: 78566
>Category: ports
>Synopsis: Patch: astro/phoon . Fix for compilation warnings
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Mar 07 22:40:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Søren 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 at 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 at FreeBSD.org
+MAINTAINER= xride at x12.dk
COMMENT= Displays the phase of the moon
WRKSRC= ${WRKDIR}/${PORTNAME}
--- Makefile.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list