From 514e77dbe8e63252355d8cf63542e2a34a679492 Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Mon, 28 Dec 2009 07:17:57 -0600 Subject: [PATCH] Run depclean at the end of stage generation (for Gentoo bug #295132) --- ChangeLog | 4 ++++ targets/support/chroot-functions.sh | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index d03832ea..877a23d0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,10 @@ # Distributed under the GPL v2 # $Id$ + 28 Dec 2009; Andrew Gaffney + targets/support/chroot-functions.sh: + Run depclean at the end of stage generation (for Gentoo bug #295132) + 26 Dec 2009; Andrew Gaffney targets/support/rc-update.sh: Add patch to start hald before xdm for Gentoo bug #280209 diff --git a/targets/support/chroot-functions.sh b/targets/support/chroot-functions.sh index 4641b441..7136083c 100644 --- a/targets/support/chroot-functions.sh +++ b/targets/support/chroot-functions.sh @@ -208,6 +208,14 @@ cleanup_stages() { echo "Skipping removal of world file for ${clst_target}" ;; esac + case ${clst_target} in + stage1|stage2|stage3|stage4|system) + run_merge --depclean --with-bdeps=n + ;; + *) + echo "Skipping depclean operation for ${clst_target}" + ;; + esac rm -f /var/log/emerge.log /var/log/portage/elog/* } -- 2.26.2