|
@ -270,7 +270,11 @@ PORTAGE_CONFIGROOT=/gentoo.cfg ROOT=/gentoo SYSROOT=/gentoo emerge -O1n \ |
|
|
\ |
|
|
\ |
|
|
dev-libs/openssl \ |
|
|
dev-libs/openssl \ |
|
|
net-misc/wget \ |
|
|
net-misc/wget \ |
|
|
app-misc/ca-certificates |
|
|
app-misc/ca-certificates \ |
|
|
|
|
|
\ |
|
|
|
|
|
app-crypt/libmd \ |
|
|
|
|
|
dev-libs/libbsd \ |
|
|
|
|
|
sys-apps/shadow |
|
|
|
|
|
|
|
|
# Set up final system |
|
|
# Set up final system |
|
|
mkdir -p /gentoo/etc/portage |
|
|
mkdir -p /gentoo/etc/portage |
|
@ -283,6 +287,12 @@ rsync -aP /var/db/repos/ /gentoo/var/db/repos |
|
|
|
|
|
|
|
|
# From here you just chroot into /gentoo, and run "emerge -e @world", untangling dependencies until it works |
|
|
# From here you just chroot into /gentoo, and run "emerge -e @world", untangling dependencies until it works |
|
|
# This is an example: |
|
|
# This is an example: |
|
|
|
|
|
cd /gentoo |
|
|
|
|
|
mount -t proc proc proc |
|
|
|
|
|
mount -t sysfs sysfs sys |
|
|
|
|
|
mount -t devtmpfs devtmpfs dev |
|
|
|
|
|
mount -t devpts devpts dev/pts |
|
|
|
|
|
env -i TERM="$TERM" chroot . /bin/bash -l |
|
|
|
|
|
|
|
|
# TODO: How does catalyst stage1 resolve these? |
|
|
# TODO: How does catalyst stage1 resolve these? |
|
|
emerge -O1n \ |
|
|
emerge -O1n \ |
|
@ -294,25 +304,20 @@ emerge -O1n \ |
|
|
app-alternatives/tar \ |
|
|
app-alternatives/tar \ |
|
|
app-alternatives/yacc |
|
|
app-alternatives/yacc |
|
|
|
|
|
|
|
|
USE="-* build $(portageq envvar BOOTSTRAP_USE)" emerge -O1n \ |
|
|
|
|
|
sys-apps/gentoo-functions \ |
|
|
|
|
|
app-portage/elt-patches \ |
|
|
|
|
|
app-crypt/libmd \ |
|
|
|
|
|
dev-libs/libbsd \ |
|
|
|
|
|
dev-util/pkgconf \ |
|
|
|
|
|
sys-apps/shadow |
|
|
|
|
|
|
|
|
|
|
|
# Finish installing stage1 dependencies |
|
|
# Finish installing stage1 dependencies |
|
|
pkgs_build="$(python3 -c 'import portage |
|
|
pkgs_build="$(python3 -c 'import portage |
|
|
print(*portage.util.stack_lists([portage.util.grabfile_package("%s/packages.build" % x) for x in portage.settings.profiles], incremental=1))')" |
|
|
print(*portage.util.stack_lists([portage.util.grabfile_package("%s/packages.build" % x) for x in portage.settings.profiles], incremental=1))')" |
|
|
USE="-* build $(portageq envvar BOOTSTRAP_USE)" CHOST="$(gcc -dumpmachine)" \ |
|
|
USE="-* build $(portageq envvar BOOTSTRAP_USE)" CHOST="$(gcc -dumpmachine)" \ |
|
|
emerge -1Dn --with-bdeps=n $pkgs_build |
|
|
emerge -1Dn $pkgs_build |
|
|
|
|
|
emerge -c |
|
|
|
|
|
|
|
|
# Change CHOST and build OpenMP support |
|
|
# Change CHOST and build OpenMP support (stage2-ish) |
|
|
emerge -O1 sys-devel/binutils |
|
|
emerge -1 sys-devel/binutils |
|
|
|
|
|
emerge -o sys-devel/gcc |
|
|
EXTRA_ECONF=--disable-bootstrap emerge -O1 sys-devel/gcc |
|
|
EXTRA_ECONF=--disable-bootstrap emerge -O1 sys-devel/gcc |
|
|
emerge -O1 $(portageq expand_virtual / virtual/libc) |
|
|
emerge -1 $(portageq expand_virtual / virtual/libc) |
|
|
|
|
|
emerge -1 dev-lang/perl |
|
|
|
|
|
|
|
|
# Rebuild everything |
|
|
# Rebuild everything (stage3) |
|
|
USE='-filecaps -http2' emerge -e @system |
|
|
USE='-filecaps -http2' emerge -e @system |
|
|
emerge -c |
|
|
emerge -c |
|
|