Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jan 2007 12:54:42 +0800 (CST)
From:      Rong-En Fan <rafan@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        danfe@FreeBSD.org
Subject:   ports/108232: [PATCH] graphics/svgalib: fix on gcc4
Message-ID:  <200701230454.l0N4sgkh042335@svm.csie.ntu.edu.tw>
Resent-Message-ID: <200701230500.l0N50YXn018986@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701230454.l0N4sgkh042335>