mirror of
https://github.com/valitydev/image-riak-base.git
synced 2024-11-06 10:15:24 +00:00
34 lines
826 B
Bash
34 lines
826 B
Bash
#!/bin/sh
|
|
source /lib/gentoo/functions.sh
|
|
|
|
# XXX Fix broken build image
|
|
USE="multitarget graphite go"
|
|
emerge --getbinpkgonly --backtrack=50 glibc binutils binutils-libs gcc
|
|
eselect binutils set x86_64-pc-linux-gnu-2.28.1
|
|
gcc-config x86_64-pc-linux-gnu-5.4.0
|
|
|
|
# Set portage root and install stuff
|
|
export ROOT=/tmp/portage-root
|
|
mkdir -p $ROOT/etc
|
|
|
|
ebegin "Setting locales to generate"
|
|
cat <<EOF> $ROOT/etc/locale.gen
|
|
en_DK.UTF-8 UTF-8
|
|
EOF
|
|
eend $? "Failed" || exit $?
|
|
ebegin "Setting locales to preserve"
|
|
cat <<EOF> $ROOT/etc/locale.nopurge
|
|
MANDELETE
|
|
SHOWFREEDSPACE
|
|
en_DK.UTF-8 UTF-8
|
|
EOF
|
|
eend $? "Failed" || exit $?
|
|
|
|
|
|
emerge --quiet-build=n --verbose --verbose-conflicts --tree openssl iproute2 grep gawk \
|
|
coreutils attr util-linux net-misc/curl sed
|
|
|
|
#eselect locale set en_DK.UTF-8 || exit $?
|
|
|
|
rm -rf $ROOT/var/cache/edb/*
|