Merge "Allow Gentoo to manage python versions by itself"
This commit is contained in:
commit
fc0699bec7
@ -3,7 +3,7 @@ export DISTRO_NAME=gentoo
|
|||||||
export EFI_BOOT_DIR="EFI/gentoo"
|
export EFI_BOOT_DIR="EFI/gentoo"
|
||||||
export GENTOO_PROFILE=${GENTOO_PROFILE:-'default/linux/amd64/17.1'}
|
export GENTOO_PROFILE=${GENTOO_PROFILE:-'default/linux/amd64/17.1'}
|
||||||
export GENTOO_PORTAGE_CLEANUP=${GENTOO_PORTAGE_CLEANUP:-'True'}
|
export GENTOO_PORTAGE_CLEANUP=${GENTOO_PORTAGE_CLEANUP:-'True'}
|
||||||
export GENTOO_PYTHON_TARGETS=${GENTOO_PYTHON_TARGETS:-'python3_10'}
|
export GENTOO_PYTHON_TARGETS=${GENTOO_PYTHON_TARGETS:-''}
|
||||||
export GENTOO_OVERLAYS=${GENTOO_OVERLAYS:-''}
|
export GENTOO_OVERLAYS=${GENTOO_OVERLAYS:-''}
|
||||||
export GENTOO_EMERGE_DEFAULT_OPTS=${GENTOO_EMERGE_DEFAULT_OPTS:-"--binpkg-respect-use --rebuilt-binaries=y --usepkg=y --with-bdeps=y --binpkg-changed-deps=y --quiet --jobs=2 --autounmask=n"}
|
export GENTOO_EMERGE_DEFAULT_OPTS=${GENTOO_EMERGE_DEFAULT_OPTS:-"--binpkg-respect-use --rebuilt-binaries=y --usepkg=y --with-bdeps=y --binpkg-changed-deps=y --quiet --jobs=2 --autounmask=n"}
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@ fi
|
|||||||
set -eu
|
set -eu
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
|
if [[ ${GENTOO_PYTHON_TARGETS} != '' ]]; then
|
||||||
if mountpoint -q /dev/shm; then
|
if mountpoint -q /dev/shm; then
|
||||||
echo "/dev/shm found in /proc/self/mountinfo"
|
echo "/dev/shm found in /proc/self/mountinfo"
|
||||||
elif [[ -k /dev/shm ]]; then
|
elif [[ -k /dev/shm ]]; then
|
||||||
@ -18,8 +19,6 @@ fi
|
|||||||
|
|
||||||
# set active python targets
|
# set active python targets
|
||||||
echo "PYTHON_TARGETS=\"${GENTOO_PYTHON_TARGETS}\"" >> /etc/portage/make.conf
|
echo "PYTHON_TARGETS=\"${GENTOO_PYTHON_TARGETS}\"" >> /etc/portage/make.conf
|
||||||
# disable python in git if we have to, it only supports python-2.7
|
|
||||||
[[ "${GENTOO_PYTHON_TARGETS}" != *"python2_7"* ]] && echo 'dev-vcs/git -python' >> /etc/portage/package.use/git
|
|
||||||
|
|
||||||
# install portage first due to bug in env vars not being passed when portage installs itself and re-inits
|
# install portage first due to bug in env vars not being passed when portage installs itself and re-inits
|
||||||
emerge ${GENTOO_EMERGE_DEFAULT_OPTS} --update --newuse --deep sys-apps/portage
|
emerge ${GENTOO_EMERGE_DEFAULT_OPTS} --update --newuse --deep sys-apps/portage
|
||||||
@ -37,3 +36,4 @@ emerge --verbose=n --depclean
|
|||||||
emerge ${GENTOO_EMERGE_DEFAULT_OPTS} --usepkg=n @preserved-rebuild
|
emerge ${GENTOO_EMERGE_DEFAULT_OPTS} --usepkg=n @preserved-rebuild
|
||||||
|
|
||||||
unfix_shm
|
unfix_shm
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user