From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D829F1388BF for ; Fri, 15 Jan 2016 13:43:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5481DE07FA; Fri, 15 Jan 2016 13:43:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D5906E07FA for ; Fri, 15 Jan 2016 13:43:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2930B340B9F for ; Fri, 15 Jan 2016 13:43:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F26C6A91 for ; Fri, 15 Jan 2016 13:43:20 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1452865396.3767128cf08a0a21559eb9c41ba393dcabc6f087.mgorny@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/phase-functions.sh X-VCS-Directories: bin/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 3767128cf08a0a21559eb9c41ba393dcabc6f087 X-VCS-Branch: master Date: Fri, 15 Jan 2016 13:43:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 4ca26b24-bf2b-4ee9-9830-013a7e95724e X-Archives-Hash: 75bc88ec5a56338c131af5346c63e91c commit: 3767128cf08a0a21559eb9c41ba393dcabc6f087 Author: Michał Górny gentoo org> AuthorDate: Sun Dec 27 22:36:45 2015 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Jan 15 13:43:16 2016 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=3767128c Print WORKDIR & D sizes in build logs Acked-by: Alexander Berntsen gentoo.org> 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