Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Jun 1998 22:29:27 +0200
From:      Stefan Eggers <seggers@semyam.dinoco.de>
To:        asami@FreeBSD.ORG (Satoshi Asami)
Cc:        seggers@semyam.dinoco.de, ac199@hwcn.org, freebsd-ports@FreeBSD.ORG
Subject:   Re: Concurrent package making allowed? 
Message-ID:  <199806272029.WAA02008@semyam.dinoco.de>
In-Reply-To: Your message of "Fri, 26 Jun 1998 16:43:28 PDT." <199806262343.QAA09289@vader.cs.berkeley.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
> FWIW, this is how I think it should be done:
> 
> (1) A new mandatory file pkg/SIZE, containing the number of bytes
>     required by the installation, to be submitted by the porter.  Like

I use /usr/ports/packages/All with filenames like package+SIZE for
this information.  Resembles the file in the package a little bit.

If one doesn't have a separate package directory it just gets to the
place the package is.

>     files/md5, there is a target in bsd.port.mk to create it (probably
>     via pkg_create, like you suggested).  Maybe another target in

Done the above mentioned way.  See my PR.  bin/7019/7020/7021
(something around there) I think.

>     bsd.port.mk to verify it, but it has to ignore a difference of a
>     few bytes (few Kbytes?).

It can't be used reasonably.  How do you expect a size for a FreeBSD
i386 version to work for a SPARC version under NetBSD for example?  It
doesn't make sense.  And even if we stay with FreeBSD it won't work in
the long run.  Alpha binaries are different in size from i386 bina-
ries.

I think we can assume someone using the ports collection instead of
pre-compiled packages knows how to estimate the size and if he/she
underestimates it how to get out of the trouble.

> (2) A new field in ports/INDEX containing all the sizes of all ports.

I will try this solution with an automatic merge of /usr/ports/INDEX
and the size information accompanying the packages after building.
The index will be the right one for the built packages.  The merged
INDEX file is intended for inclusion on CDs and FTP servers with these
packages.

> (3) New option to pkg_create to calculate the size and print it out
>     to stdout.  Also another option to put the size file in the

Use options "-S /dev/stdout -z" with a pkg_create patched the way I
did it.  See my PR for this.  A new option just for outputting it to
stdout seems to be a waste of effort and space and makes the man page
even harder to understand.

>     package itself.  A new option to pkg_info to print the size out
>     (in bytes) to stdout, as well as maybe mods to pretty-print it
>     with the rest of the stuff.

Sure.  Guess what my todo list says.  :-) The former option I will add
and submit if someone has a need for it.

> (4) sysinstall uses new field in ports/INDEX to do whatever nice
>     things for the user (for instance, to warn they are about to

Sure.  Same todo list.  :-)

Stefan.
-- 
Stefan Eggers                 Lu4 yao2 zhi1 ma3 li4,
Max-Slevogt-Str. 1            ri4 jiu3 jian4 ren2 xin1.
51109 Koeln
Federal Republic of Germany

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?199806272029.WAA02008>