b4f768117f
open-iscsi and open-isns need keywording to support gcc-10, move it out of being keyworded only for musl profiles. remove unneeded keywords for python-exec and python-exec-conf (marked stable) use the full package name for the dev-lang/python-exec-conf package Change-Id: I44eaf8c2230e9e2089a72fce46954f4336626843 Signed-off-by: Matthew Thode <mthode@mthode.org>
41 lines
1.6 KiB
Bash
Executable file
41 lines
1.6 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
# get the directories in order
|
|
mkdir -p /etc/portage/profile
|
|
mkdir -p /etc/portage/package.accept_keywords
|
|
if [[ -f /etc/portage/package.keywords ]]; then
|
|
mv /etc/portage/package.keywords /etc/portage/package.accept_keywords/prebuilt-1
|
|
fi
|
|
mkdir -p /etc/portage/package.mask
|
|
mkdir -p /etc/portage/package.unmask
|
|
mkdir -p /etc/portage/package.use
|
|
|
|
# needed in order to install pip packages as root
|
|
echo 'dev-python/pip vanilla' >> /etc/portage/package.use/pip
|
|
# needed to create disk images
|
|
echo 'sys-fs/lvm2 -thin' >> /etc/portage/package.use/grub
|
|
echo 'sys-boot/grub device-mapper' >> /etc/portage/package.use/grub
|
|
echo 'sys-boot/grub grub_platforms_efi-64' >> /etc/portage/package.use/grub # always enable efi-64
|
|
if [[ 'amd64' == "${ARCH}" ]]; then
|
|
echo 'sys-boot/grub grub_platforms_pc' >> /etc/portage/package.use/grub # bios support for bios systems
|
|
fi
|
|
|
|
# needed to install static kernel
|
|
echo "sys-kernel/gentoo-kernel-bin ~${ARCH}" >> /etc/portage/package.accept_keywords/kernel
|
|
echo "virtual/dist-kernel ~${ARCH}" >> /etc/portage/package.accept_keywords/kernel
|
|
|
|
# needed for gcc-10 support
|
|
echo "~sys-block/open-iscsi-2.1.4 ~${ARCH}" >> /etc/portage/package.accept_keywords/open-iscsi
|
|
echo "~sys-block/open-isns-0.101 ~${ARCH}" >> /etc/portage/package.accept_keywords/open-iscsi
|
|
|
|
# musl only valid for amd64 for now
|
|
if [[ "${GENTOO_PROFILE}" == *"musl"* ]]; then
|
|
echo "dev-vcs/git -gpg" >> /etc/portage/package.use/musl # gpg doesn't build on musl profiles
|
|
echo "sys-libs/pam cracklib" >> /etc/portage/package.use/musl
|
|
fi
|