public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] [PATCH] Print WORKDIR & D sizes in build logs
@ 2015-12-27 22:58 Michał Górny
  2015-12-28  8:17 ` Ulrich Mueller
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Michał Górny @ 2015-12-27 22:58 UTC (permalink / raw
  To: gentoo-portage-dev; +Cc: Michał Górny

---
 bin/phase-functions.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/bin/phase-functions.sh b/bin/phase-functions.sh
index 0b853bf..6a47fed 100644
--- a/bin/phase-functions.sh
+++ b/bin/phase-functions.sh
@@ -593,6 +593,15 @@ __dyn_install() {
 	__vecho
 	__ebuild_phase post_src_install
 
+	# record build & installed size in build log
+	if type -P du &>/dev/null; then
+		local sz=( $(du -ks "${WORKDIR}") )
+		einfo "Final size of build directory: ${sz[0]} KiB"
+		sz=( $(du -ks "${D}") )
+		einfo "Final size of installed tree: ${sz[0]} KiB"
+		__vecho
+	fi
+
 	cd "${PORTAGE_BUILDDIR}"/build-info
 	set -f
 	local f x
-- 
2.6.4



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-01-15 14:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-27 22:58 [gentoo-portage-dev] [PATCH] Print WORKDIR & D sizes in build logs Michał Górny
2015-12-28  8:17 ` Ulrich Mueller
2016-01-12 13:13   ` Michał Górny
2016-01-12 13:26 ` Alexander Berntsen
2016-01-15 13:43 ` Michał Górny
2016-01-15 14:06   ` Alexander Berntsen
2016-01-15 14:21     ` Michał Górny
2016-01-15 14:24       ` Alexander Berntsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox