Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jun 1998 08:50:49 +0200 (MET DST)
From:      Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
To:        freebsd-ports@FreeBSD.ORG
Subject:   Re: package sizes (was: Re: 2.2.6 CD-ROM : Package dependencies up the creek ? )
Message-ID:  <199806220650.IAA24680@rfhs8028.fh-regensburg.de>

next in thread | raw e-mail | index | archive | help
In article <199806211950.VAA04047@semyam.dinoco.de> you wrote:
> calculations based on the packing list.  The patch suggested on the
> ports mailing list with the "grep <PLIST -v @" obviously can't work
> here (the @cwd statements get ignored so the file names are not right
> at least for some of the packages) and I think the propper solution
> would be this one.

Of course you'll have to find a place where the @cwd statements are
resolved. Have a look at check_list() in pkg_install/create/pl.c,
that's where the md5 checksums are calculated also.


> Then I intend to make a file with the size in KByte somewhere.  I set
> it to the directory of the port for my experiments and modelled it
> after the targets readmes and readme.  That builds a table from the
> size files by just concatenating the ones one level below.  The end
> result is a table of package name and size in KByte.

> And I think this information should be in the package, too as someone
> had suggested putting it in the package db to allow estimating how
> much space would be freed by deleting a package.

Eww, sounds a bit whacky to first write this information to a file, and
then stuff it into binary packages. 

I've worked on this myself this weekend, and I added a @size directive
that's written to the +CONTENTS file, and that can subsequently be queried
by pkg_info (i'm using the "-s" switch there) on installed packages as
well as binary packages not installed yet. BTW, i'm noting the size in
bytes at the @size command to be as precise as possible.

I intend to commit this as soon as I find an application for it. X-)


 - Hubert

-- 
Hubert Feyrer <hubert.feyrer@rz.uni-regensburg.de>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



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