Merge "add musl profile to gentoo"

This commit is contained in:
Zuul 2020-07-06 18:52:39 +00:00 committed by Gerrit Code Review
commit 9f7c35b238
4 changed files with 12 additions and 11 deletions

View File

@ -12,8 +12,10 @@ ln -sf ../.."${PORTDIR}/profiles/${GENTOO_PROFILE}" /etc/portage/make.profile
# Set timezone # Set timezone
echo 'UTC' > /etc/timezone echo 'UTC' > /etc/timezone
# Set locale if [[ "${GENTOO_PROFILE}" != *"musl"* ]]; then
echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen # Set locale
echo 'en_US ISO-8859-1' >> /etc/locale.gen echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen
locale-gen -q echo 'en_US ISO-8859-1' >> /etc/locale.gen
eselect locale set en_US.utf8 locale-gen -q
eselect locale set en_US.utf8
fi

View File

@ -39,7 +39,7 @@ fi
if [[ "${GENTOO_PROFILE}" == *"musl"* ]]; then if [[ "${GENTOO_PROFILE}" == *"musl"* ]]; then
echo "dev-vcs/git -gpg" >> /etc/portage/package.use/musl # gpg doesn't build on musl profiles echo "dev-vcs/git -gpg" >> /etc/portage/package.use/musl # gpg doesn't build on musl profiles
echo "=sys-block/open-iscsi-2.0.874-r1 ~amd64" >> /etc/portage/package.accept_keywords/musl echo "~sys-block/open-iscsi-2.0.878 ~amd64" >> /etc/portage/package.accept_keywords/musl
echo "=sys-block/open-isns-0.97 ~amd64" >> /etc/portage/package.accept_keywords/musl echo "=sys-block/open-isns-0.97 ~amd64" >> /etc/portage/package.accept_keywords/musl
echo "sys-libs/pam cracklib" >> /etc/portage/package.use/musl echo "sys-libs/pam cracklib" >> /etc/portage/package.use/musl
fi fi

View File

@ -19,13 +19,9 @@ if [[ ${GENTOO_OVERLAYS} != '' ]]; then
emerge-webrsync -q emerge-webrsync -q
fi fi
# upstream has problems with supporting other libcs still
if [[ "${GENTOO_PROFILE}" == *"musl"* ]]; then
echo '=sys-block/open-iscsi-2.0.877' >> /etc/portage/package.accept_keywords/open-iscsi
fi
emerge ${GENTOO_EMERGE_DEFAULT_OPTS} --oneshot openssl openssh emerge ${GENTOO_EMERGE_DEFAULT_OPTS} --oneshot openssl openssh
# install layman # install layman
emerge ${GENTOO_EMERGE_DEFAULT_OPTS} --oneshot --deep --ignore-built-slot-operator-deps=y layman emerge ${GENTOO_EMERGE_DEFAULT_OPTS} --deep --ignore-built-slot-operator-deps=y layman
# sync the initial overlay list # sync the initial overlay list
layman -S layman -S
# enable the various overlays, ignore failures (overlay my already be enabled) # enable the various overlays, ignore failures (overlay my already be enabled)

View File

@ -51,6 +51,9 @@ elif [[ "${GENTOO_PROFILE}" == "default/linux/amd64/17.1/hardened" ]]; then
elif [[ "${GENTOO_PROFILE}" == "default/linux/amd64/17.1/no-multilib/hardened" ]]; then elif [[ "${GENTOO_PROFILE}" == "default/linux/amd64/17.1/no-multilib/hardened" ]]; then
FILENAME_BASE='gentoo-stage3-hardened-nomultilib' FILENAME_BASE='gentoo-stage3-hardened-nomultilib'
SIGNED_SOURCE_SUFFIX='-hardened+nomultilib' SIGNED_SOURCE_SUFFIX='-hardened+nomultilib'
elif [[ "${GENTOO_PROFILE}" == "default/linux/amd64/17.0/musl/hardened" ]]; then
FILENAME_BASE='gentoo-stage3-hardened-musl'
SIGNED_SOURCE_SUFFIX='-musl-hardened'
elif [[ "${GENTOO_PROFILE}" == "default/linux/amd64/17.1/systemd" ]]; then elif [[ "${GENTOO_PROFILE}" == "default/linux/amd64/17.1/systemd" ]]; then
FILENAME_BASE='gentoo-stage3-systemd' FILENAME_BASE='gentoo-stage3-systemd'
SIGNED_SOURCE_SUFFIX='-systemd' SIGNED_SOURCE_SUFFIX='-systemd'