From 1cc47370d9370f24a70b8e45b8a60e9e2c297ff6 Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Mon, 28 Dec 2009 07:18:28 -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 b2b4e47b..c8bd9303 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) + 12 Sep 2009; Andrew Gaffney targets/support/livecdfs-update.sh: Apply patch from Gentoo bug #284585 diff --git a/targets/support/chroot-functions.sh b/targets/support/chroot-functions.sh index fe20194b..1c227aa4 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