Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 759424
Collapse All | Expand All

(-)a/scripts/bootstrap-prefix.sh (-1 / +34 lines)
Lines 331-336 bootstrap_setup() { Link Here
331
				echo "PORTDIR_OVERLAY=\"\${PORTDIR_OVERLAY} ${PORTDIR_OVERLAY}\""
331
				echo "PORTDIR_OVERLAY=\"\${PORTDIR_OVERLAY} ${PORTDIR_OVERLAY}\""
332
			[[ -n ${MAKE_CONF_ADDITIONAL_USE} ]] &&
332
			[[ -n ${MAKE_CONF_ADDITIONAL_USE} ]] &&
333
				echo "USE=\"\${USE} ${MAKE_CONF_ADDITIONAL_USE}\""
333
				echo "USE=\"\${USE} ${MAKE_CONF_ADDITIONAL_USE}\""
334
			[[ -n ${STABLE_PREFIX} ]] && \
335
				echo "ACCEPT_KEYWORDS=\"amd64 -~amd64\""
334
			[[ ${OFFLINE_MODE} ]] && \
336
			[[ ${OFFLINE_MODE} ]] && \
335
				echo 'FETCHCOMMAND="bash -c \"echo I need \${FILE} from \${URI} in \${DISTDIR}; read\""'
337
				echo 'FETCHCOMMAND="bash -c \"echo I need \${FILE} from \${URI} in \${DISTDIR}; read\""'
336
		} > "${ROOT}"/etc/portage/make.conf
338
		} > "${ROOT}"/etc/portage/make.conf
Lines 2694-2699 EOF Link Here
2694
		esac
2696
		esac
2695
	fi
2697
	fi
2696
2698
2699
	# The experimental support for Stable Prefix.
2700
	# When expanding this to other CHOSTs, don't forget to update
2701
	# make.conf generation in bootstrap_setup().
2702
	# TODO: Consider at some point removing the ~ARCH override from
2703
	# profiles/features/prefix/standalone/make.defaults.
2704
	# https://bugs.gentoo.org/759424
2705
	if is-rap ; then
2706
		if [[ "${CHOST}" == x86_64-pc-linux-gnu ]]; then
2707
			cat <<EOF
2708
2709
Normally I can only give you ~amd64 packages, and you would be exposed
2710
to all the bugs of the newest untested software.  Well, ok, sometimes
2711
it also has new features, but who needs those.  But as you are a VIP
2712
customer who uses Linux on x86_64, I have a one-time offer for you!
2713
I can limit your Prefix to use only packages keyworded for stable amd64
2714
by default.  Of course, you can still enable testing ~amd64 for
2715
the packages you want, when the need arises.
2716
EOF
2717
			[[ ${TODO} == 'noninteractive' ]] && ans=yes ||
2718
			read -p "  Do you want to use stable Prefix? [Yn] " ans
2719
			case "${ans}" in
2720
				[Yy][Ee][Ss]|[Yy]|"")
2721
					echo "Okay, I'll disable ~amd64 by default."
2722
					export STABLE_PREFIX="yes"
2723
					: ;;
2724
				*)
2725
					echo "Fine, I will not disable ~amd64, no problem."
2726
					;;
2727
			esac
2728
		fi
2729
	fi
2730
2697
	# choose EPREFIX, we do this last, since we have to actually write
2731
	# choose EPREFIX, we do this last, since we have to actually write
2698
	# to the filesystem here to check that the EPREFIX is sane
2732
	# to the filesystem here to check that the EPREFIX is sane
2699
	cat << EOF
2733
	cat << EOF
2700
- 

Return to bug 759424