Skip site navigation (1)Skip section navigation (2)
Date:      22 Jun 2004 02:10:18 -0000
From:      Chris Pressey <cpressey@catseye.mine.nu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Robin.Miller@hp.com
Subject:   ports/68186: [PATCH] update sysutils/dt port to 15.6
Message-ID:  <20040622021018.73715.qmail@catseye.mine.nu>
Resent-Message-ID: <200406220220.i5M2KNY3023049@freefall.freebsd.org>

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

>Number:         68186
>Category:       ports
>Synopsis:       [PATCH] update sysutils/dt port to 15.6
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 22 02:20:23 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Chris Pressey
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
Cat's Eye Technologies
>Environment:
System: FreeBSD catseye.biscuit.boo 4.9-STABLE FreeBSD 4.9-STABLE #0: Wed Dec 17 15:25:44 PST 2003 root@catseye.biscuit.boo:/usr/obj/usr/src/sys/CATSEYE i386


>Description:
	The latest version of the 'dt' utility is 15.6.
	The attached patch updates the FreeBSD port to this version.
	The Makefile now needs to be patched - for whatever reason,
	_BSD_SOURCE is not defined and this causes large_t to be
	typedef'd as a double, which in turn causes a compilation
	error when a large_t appears on the RHS of a modulus
	operation in dtutil.c.  The software author has been cc'ed
	on this PR in the hopes of this fix travelling upstream.
	Also, the same patch makes the port honour the system-wide
	setting of CFLAGS as recommended by the Porter's Handbook.

>How-To-Repeat:
	n/a

>Fix:
	Apply the following patch in the ports/sysutils directory.

--- dt.diff begins here ---
diff -ruN dt.old/Makefile dt/Makefile
--- dt.old/Makefile	2004-02-19 01:29:55.000000000 -0800
+++ dt/Makefile	2004-06-16 15:59:52.000000000 -0700
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	dt
-PORTVERSION=	14.39
+PORTVERSION=	15.6
 CATEGORIES=	sysutils
 MASTER_SITES=	http://www.bit-net.com/~rmiller/ftp/dt/
 DISTNAME=	dt-source
diff -ruN dt.old/distinfo dt/distinfo
--- dt.old/distinfo	2004-03-06 02:43:13.000000000 -0800
+++ dt/distinfo	2004-06-16 16:00:19.000000000 -0700
@@ -1,2 +1,2 @@
-MD5 (dt-source.tar.gz) = 4c43d4e54864c9a66b56c87764399f39
-SIZE (dt-source.tar.gz) = 960595
+MD5 (dt-source.tar.gz) = 64226edc9059521884838d993cc77f20
+SIZE (dt-source.tar.gz) = 971475
diff -ruN dt.old/files/patch-Makefile.freebsd dt/files/patch-Makefile.freebsd
--- dt.old/files/patch-Makefile.freebsd	1969-12-31 16:00:00.000000000 -0800
+++ dt/files/patch-Makefile.freebsd	2004-06-21 17:11:39.000000000 -0700
@@ -0,0 +1,11 @@
+--- Makefile.freebsd.orig	2004-02-13 14:27:00.000000000 -0800
++++ Makefile.freebsd	2004-06-21 17:11:28.000000000 -0700
+@@ -74,7 +74,7 @@
+ PORG      = -O
+ 
+ AWK=	awk
+-CFLAGS= $(PORG) -DAIO -DFIFO -DMMAP -DTTY -DFreeBSD
++CFLAGS+=$(PORG) -DAIO -DFIFO -DMMAP -DTTY -DFreeBSD -D_BSD_SOURCE
+ CPP=	/usr/bin/cpp
+ CPPOPTS= 
+ LDFLAGS=
--- dt.diff ends here ---

	For the author's convenience, here is the fixup patch alone.

--- patch-Makefile.freebsd begins here ---
--- Makefile.freebsd.orig	2004-02-13 14:27:00.000000000 -0800
+++ Makefile.freebsd	2004-06-21 17:11:28.000000000 -0700
@@ -74,7 +74,7 @@
 PORG      = -O
 
 AWK=	awk
-CFLAGS= $(PORG) -DAIO -DFIFO -DMMAP -DTTY -DFreeBSD
+CFLAGS+=$(PORG) -DAIO -DFIFO -DMMAP -DTTY -DFreeBSD -D_BSD_SOURCE
 CPP=	/usr/bin/cpp
 CPPOPTS= 
 LDFLAGS=
--- patch-Makefile.freebsd ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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