#!/bin/bash echo "patching bootstrap.sh for a quiet output option" echo "See bug http://bugs.gentoo.org/show_bug.cgi?id=273660" cat << 'EOF' | patch -Np0 -r /dev/null || \ echo "if this patch is not applied, bootstrap.sh has been update in portage tree. You should then remove the script from /etc/portage/postsync.d/" --- /usr/portage/scripts/bootstrap.sh 2008-03-30 18:07:15.000000000 +0100 +++ bootstrap.sh 2009-06-10 22:51:32.000000000 +0100 @@ -64,6 +64,7 @@ echo -e " ${GOOD}--fetchonly (-f)${NORMAL} Just download all the source files" echo -e " ${GOOD}--info (-i)${NORMAL} Show system related information" echo -e " ${GOOD}--pretend (-p)${NORMAL} Display the packages that will be merged" + echo -e " ${GOOD}--quiet (-q)${NORMAL} Reduced or condensed output from portage's displays." echo -e " ${GOOD}--tree (-t)${NORMAL} Display the dependency tree, forces -p" echo -e " ${GOOD}--resume (-r)${NORMAL} Build/use binary packages" } @@ -85,6 +86,7 @@ --debug|-d) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} --debug"; DEBUG=1;; --info|-i) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} --info" ; unset STRAP_RUN ;; --pretend|-p) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} -p" ; unset STRAP_RUN ;; + --quiet|-q) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} -q" ; unset STRAP_RUN ;; --tree|-t) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} -p -t" ; unset STRAP_RUN ;; --resume|-r) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} --usepkg --buildpkg";; --verbose|-v) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} -v"; V_ECHO=v_echo;; EOF