ports/108232: [PATCH] graphics/svgalib: fix on gcc4
Rong-En Fan
rafan at FreeBSD.org
Tue Jan 23 05:00:39 UTC 2007
>Number: 108232
>Category: ports
>Synopsis: [PATCH] graphics/svgalib: fix on gcc4
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Jan 23 05:00:34 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Rong-En Fan
>Release: FreeBSD 6.2-PRERELEASE amd64
>Organization:
NTU CSIE
>Environment:
>Description:
- Fix error about round(3) on gcc 4
- Replace deprecated variable
Added file(s):
- files/patch-utils-gtf-gtfcalc.c
Port maintainer (danfe at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- svgalib-1.4.3_5.patch begins here ---
Index: Makefile
===================================================================
RCS file: /big/freebsd-cvsup/ncvs/ports/graphics/svgalib/Makefile,v
retrieving revision 1.20
diff -u -u -r1.20 Makefile
--- Makefile 4 Oct 2006 00:02:05 -0000 1.20
+++ Makefile 23 Jan 2007 04:53:41 -0000
@@ -15,7 +15,7 @@
COMMENT= A low level console graphics library
USE_GMAKE= yes
-INSTALLS_SHLIB= yes
+USE_LDCONFIG= yes
MANCOMPRESSED= yes
ALL_TARGET= shared static
Index: files/patch-utils-gtf-gtfcalc.c
===================================================================
RCS file: files/patch-utils-gtf-gtfcalc.c
diff -N files/patch-utils-gtf-gtfcalc.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-utils-gtf-gtfcalc.c 23 Jan 2007 04:53:41 -0000
@@ -0,0 +1,23 @@
+--- utils/gtf/gtfcalc.c.orig Tue Jan 23 12:48:50 2007
++++ utils/gtf/gtfcalc.c Tue Jan 23 12:49:18 2007
+@@ -45,6 +45,7 @@
+ #include <string.h>
+ #include <ctype.h>
+ #include <math.h>
++#include <sys/param.h>
+ #include "gtf.h"
+
+ /*------------------------- Global Variables ------------------------------*/
+@@ -64,10 +65,12 @@
+
+ /*-------------------------- Implementation -------------------------------*/
+
++#if __FreeBSD_version < 503000
+ static double round(double v)
+ {
+ return floor(v + 0.5);
+ }
++#endif
+
+ static void GetInternalConstants(GTF_constants *c)
+ /****************************************************************************
--- svgalib-1.4.3_5.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list