Merge "add musl profile to gentoo"
This commit is contained in:
commit
9f7c35b238
@ -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
|
||||||
|
|
||||||
|
if [[ "${GENTOO_PROFILE}" != *"musl"* ]]; then
|
||||||
# Set locale
|
# Set locale
|
||||||
echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen
|
echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen
|
||||||
echo 'en_US ISO-8859-1' >> /etc/locale.gen
|
echo 'en_US ISO-8859-1' >> /etc/locale.gen
|
||||||
locale-gen -q
|
locale-gen -q
|
||||||
eselect locale set en_US.utf8
|
eselect locale set en_US.utf8
|
||||||
|
fi
|
||||||
|
@ -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
|
||||||
|
@ -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)
|
||||||
|
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user