Bug 27848 - New port: du2ps - filter for converting output of du to PostScript file
Summary: New port: du2ps - filter for converting output of du to PostScript file
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-06-03 05:20 UTC by Yoshihiko Sarumaru
Modified: 2001-06-27 06:38 UTC (History)
0 users

See Also:


Attachments
file.shar (7.05 KB, text/plain)
2001-06-03 05:20 UTC, Yoshihiko Sarumaru
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yoshihiko Sarumaru 2001-06-03 05:20:01 UTC
	du2ps is a similar program to xdu, but it generates result as PostScript file.
Comment 1 Yoshihiko Sarumaru 2001-06-06 10:18:11 UTC
I found a bug in this program which I made a ports skelton.
Here is an additional patch named patch-ac.

Thanks !

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	sysutils/du2ps/files/patch-ac
#
echo x - sysutils/du2ps/files/patch-ac
sed 's/^X//' >sysutils/du2ps/files/patch-ac << 'END-of-sysutils/du2ps/files/patch-ac'
X--- nodeop.c.orig	Tue Mar 15 18:15:58 1994
X+++ nodeop.c	Wed Jun  6 15:03:28 2001
X@@ -142,7 +142,8 @@
X 
X     /* for each child */
X 	for(np = nodep->child; NODE_NULL != np; np = np->peer){
X-		double height = h * np->size / nodep->size;
X+		/* When nodep->size is 0, 'divided by zero' will be raised */
X+		double height = (nodep->size != 0 ? h * np->size / nodep->size : 0);
X 
X 		drawrect(np, y, height, depth);
X 
END-of-sysutils/du2ps/files/patch-ac
exit
Comment 2 Tetsurou Okazaki freebsd_committer freebsd_triage 2001-06-27 06:29:17 UTC
State Changed
From-To: open->closed

Committed, thanks! 
Next time, please use `portlint -N' for checking new port before send-pr.