build_packages: be less aggressive about rebuilding packages

The --rebuild-if-unbuilt emerge option will recompile packages if any
build-time dependencies changed. This can be a useful safety to make
sure applications get re-linked and so forth. However recent versions of
portage have grown better defaults for choosing when to rebuild so lets
turn the build_packages flag around and leave emerge to do its default
behavior and see if that is sufficiently safe.
This commit is contained in:
Michael Marineau 2015-07-08 13:45:18 -07:00
parent 5d037e2840
commit 28c3c3def3

View File

@ -49,7 +49,7 @@ DEFINE_string accept_licenses "" \
"Licenses to append to the accept list." "Licenses to append to the accept list."
DEFINE_integer jobs "${NUM_JOBS}" \ DEFINE_integer jobs "${NUM_JOBS}" \
"How many packages to build in parallel at maximum." "How many packages to build in parallel at maximum."
DEFINE_boolean norebuild "${FLAGS_FALSE}" \ DEFINE_boolean rebuild "${FLAGS_FALSE}" \
"Don't automatically rebuild dependencies." "Don't automatically rebuild dependencies."
DEFINE_boolean skip_chroot_upgrade "${FLAGS_FALSE}" \ DEFINE_boolean skip_chroot_upgrade "${FLAGS_FALSE}" \
"Don't run the chroot upgrade automatically; use with care." "Don't run the chroot upgrade automatically; use with care."
@ -150,7 +150,7 @@ if [[ "${FLAGS_jobs}" -ne -1 ]]; then
EMERGE_FLAGS+=( --jobs=${FLAGS_jobs} ) EMERGE_FLAGS+=( --jobs=${FLAGS_jobs} )
fi fi
if [[ "${FLAGS_norebuild}" -eq "${FLAGS_FALSE}" ]]; then if [[ "${FLAGS_rebuild}" -eq "${FLAGS_TRUE}" ]]; then
EMERGE_FLAGS+=( --rebuild-if-unbuilt ) EMERGE_FLAGS+=( --rebuild-if-unbuilt )
fi fi