trim.sh: Remove build-only dependencies with --depclean
authorW. Trevor King <wking@tremily.us>
Thu, 31 Jul 2014 03:15:23 +0000 (20:15 -0700)
committerW. Trevor King <wking@tremily.us>
Thu, 31 Jul 2014 03:15:23 +0000 (20:15 -0700)
commit50da07cd71e77f15d60e558786537c281fdb99e0
treeb06fb84415282c03661dced377a08eed47e5bae1
parent5ccecff9d00cf325828ab281b17428245a8869f0
trim.sh: Remove build-only dependencies with --depclean

Use '--with-bdeps=n' to tell Portage to ignore build-time dependencies
(e.g. an ebuild's DEPEND).  Only the runtime dependencies (an ebuild's
RDEPEND and PDEPEND) are taken into acount when selecting packages
required by @world.  That lets us keep what we need to run the target
application, but remove all the build tooling (including GCC), leaving
a functional, lightweight image.
trim.sh