Gentoo Archives: gentoo-portage-dev

From: "Michał Górny" <mgorny@g.o>
To: Ulrich Mueller <ulm@g.o>
Cc: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] Print WORKDIR & D sizes in build logs
Date: Tue, 12 Jan 2016 13:14:16
Message-Id: 20160112141359.33758b3f.mgorny@gentoo.org
In Reply to: Re: [gentoo-portage-dev] [PATCH] Print WORKDIR & D sizes in build logs by Ulrich Mueller
1 On Mon, 28 Dec 2015 09:17:55 +0100
2 Ulrich Mueller <ulm@g.o> wrote:
3
4 > >>>>> On Sun, 27 Dec 2015, Michał Górny wrote:
5 >
6 > > ---
7 > > bin/phase-functions.sh | 9 +++++++++
8 > > 1 file changed, 9 insertions(+)
9 >
10 > > diff --git a/bin/phase-functions.sh b/bin/phase-functions.sh
11 > > index 0b853bf..6a47fed 100644
12 > > --- a/bin/phase-functions.sh
13 > > +++ b/bin/phase-functions.sh
14 > > @@ -593,6 +593,15 @@ __dyn_install() {
15 > > __vecho
16 > > __ebuild_phase post_src_install
17 >
18 > > + # record build & installed size in build log
19 > > + if type -P du &>/dev/null; then
20 > > + local sz=( $(du -ks "${WORKDIR}") )
21 > > + einfo "Final size of build directory: ${sz[0]} KiB"
22 > > + sz=( $(du -ks "${D}") )
23 > > + einfo "Final size of installed tree: ${sz[0]} KiB"
24 > > + __vecho
25 > > + fi
26 > > +
27 > > cd "${PORTAGE_BUILDDIR}"/build-info
28 > > set -f
29 > > local f x
30 > > --
31 > > 2.6.4
32 >
33 > Will this be called before or after prepcompress?
34
35 I'm sorry, I have missed this mail earlier.
36
37 It is called before prepcompress and before stripping, I think.
38
39 --
40 Best regards,
41 Michał Górny
42 <http://dev.gentoo.org/~mgorny/>