build_packages: always rebuild when breaking dependency cycles

Previously we attempted to speed up the first build of a board by
pulling in binary packages regardless of their use flags, assuming that
if the package was already built the loop would not be an issue. Usually
this was true but not always. Now things like util-linux will always get
compiled when setting up a board for the first time but at least it
won't be as likely to fail.
This commit is contained in:
Michael Marineau 2015-06-25 14:15:35 -07:00
parent 420d0825ad
commit 22e3c116cc

View File

@ -218,9 +218,7 @@ break_dep_loop() {
# rebuilding zlib for some unknown reason, in turn triggering more rebuilds. # rebuilding zlib for some unknown reason, in turn triggering more rebuilds.
sudo -E "${EMERGE_CMD[@]}" "${EMERGE_FLAGS[@]}" \ sudo -E "${EMERGE_CMD[@]}" "${EMERGE_FLAGS[@]}" \
--rebuild-if-unbuilt=n \ --rebuild-if-unbuilt=n \
--binpkg-respect-use=n \
--buildpkg-exclude="${pkg}" \ --buildpkg-exclude="${pkg}" \
--useoldpkg-atoms="${pkg}" \
${extra_args} "${pkg}" ${extra_args} "${pkg}"
sudo rm -f "${flag_file}" sudo rm -f "${flag_file}"
} }