32 to 64 migration notes:
https://www.hattne.se/articles/migration.html have that web site open… the steps are here, but the explanation is there
my notes:
mkdir /migration-backup cp /etc/portage/make.conf /migration-backup/
emerge crossdev -av
convert /etc/portage/package.* into directories
crossdev -S -s3 --target x86_64-pc-linux-gnu
env-update source /etc/profile ldconfig
mkdir /lib32 mkdir /lib64 mkdir /usr/lib32 mkdir /usr/lib64
rm -Rf /usr/lib/distcc
cp -ar /usr/x86_64-pc-linux-gnu/lib64/* /lib64 cp -ar /usr/x86_64-pc-linux-gnu/usr/lib64/* /usr/lib64/ cp -ar /usr/include /migration-backup/include32 cp -ar /usr/x86_64-pc-linux-gnu/usr/include/* /usr/include/ emerge -1 sys-kernel/linux-headers
# cat /etc/portage/profile/use.mask -abi_x86_32
Of these, glibc needs to come first, then everything else will come good. in the process of deploying glibc, /lib needs to be a symlink to /lib64 which will break 32bit programs. ldconfig is your friend here with the above 99migration env file. Theres a couple other gotchas as well that need working through.
quickpkg glibc gcc zlib ncurses gmp mpfr util-linux acl attr sandbox coreutils procps binutils libcap mpc cracklib flex =db-5* glib pam pambase =python-3.6* bash readline findutils install-xattr bzip2 tar xz-utils make grep patch gawk sed libpcre
USE="fix any differences" emerge -1kav <pasted list>
mv /usr/lib to /usr/oldlib and symlink lib to lib64
cd /usr/oldlib mv python-exec python3.6 libpython* portage gcc ../lib64
emerge --unmerge cross-x86_64-pc-linux-gnu/* crossdev -av ldconfig
emerge -1kav sys-devel/gcc glibc mpfr mpc binutils binutils-config 1 . /etc/profile emerge -1av python-exec emerge -1kav =python-3.6* --binpkg-changed-deps=n mv /lib/modules /lib64 mv /lib/gentoo /lib64
mv /lib/modules /lib64 mv /lib/gentoo /lib64 cd / mv lib oldlib ln -s lib64 lib
emerge gcc -1av
FEATURES="-sandbox -usersandbox" USE="-X -gtk -qt5 -introspection -cairo -gpm -consolekit -policykit -net -ipv6 -spell -sqlite -nls -berkdb -gdbm -openssl" emerge -1eav @system
emerge -eav –keep-going @world
cd /lib32 ; find -xdev -type f -exec qfile -o {} + |less