"purge": "Purge support enabled.",
"seedcache": "Seed cache support enabled.",
"snapcache": "Snapshot cache support enabled.",
+ 'preserve_libs': "Preserving libs during unmerge.",
#"tarball": "Tarball creation enabled.",
}
# build stops in livecd-stage2)
# pkgcache = keeps a tbz2 of every built package (useful if your build stops
# prematurely)
+# preserve_libs = enables portage to preserve used libs when unmerging packages
+# (used on installcd-stage2 and stage4 targets)
# seedcache = use the build output of a previous target if it exists to speed up
# the copy
# snapcache = cache the snapshot so that it can be bind-mounted into the chroot.
source /tmp/chroot-functions.sh
-FEATURES="${clst_myfeatures} preserve-libs"
+# If the user enabled PRESERVE_LIBS in options, tell portage to preserve them.
+[ -n "${clst_PRESERVE_LIBS}" ] && FEATURES="${clst_myfeatures} preserve-libs"
run_merge -C ${clst_packages}
exit 0