64bit-migration
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
64bit-migration [2019/01/15 13:49] – snarg | 64bit-migration [2019/01/15 14:29] – snarg | ||
---|---|---|---|
Line 36: | Line 36: | ||
mkdir /usr/lib32 | mkdir /usr/lib32 | ||
mkdir /usr/lib64 | mkdir /usr/lib64 | ||
+ | |||
+ | * If applicable, dont use distcc till its remerged: | ||
+ | |||
+ | rm -Rf / | ||
* possibly dont need to do this if using binary packages from donor VM | * possibly dont need to do this if using binary packages from donor VM | ||
Line 53: | Line 57: | ||
* change make.profile symlink to point to a multilib amd64 profile | * change make.profile symlink to point to a multilib amd64 profile | ||
- | * use quickpkg on source VM to grab and then PATH="/ | + | * use quickpkg on source VM to grab and then PATH="/ |
Of these, glibc needs to come first, then everything else will come good. | 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. | 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. | ||
Line 61: | Line 65: | ||
quickpkg glibc gcc zlib ncurses gmp mpfr util-linux acl attr sandbox coreutils procps binutils libcap mpc cracklib flex =db-5* pam pambase | quickpkg glibc gcc zlib ncurses gmp mpfr util-linux acl attr sandbox coreutils procps binutils libcap mpc cracklib flex =db-5* pam pambase | ||
- | * mount or copy / | + | * mount or copy / |
- | + | ||
- | mv / | + | |
- | mv /lib/gentoo /lib64 | + | |
mv /usr/lib to /usr/oldlib and symlink lib to lib64 | mv /usr/lib to /usr/oldlib and symlink lib to lib64 | ||
- | * /usr/lib symlink creation will break python | + | * /usr/lib symlink creation will break python. |
+ | |||
+ | cd / | ||
+ | mv python-exec python3.6 libpython* portage gcc ../lib64 | ||
* remove crossdev packages (and crossdev) and check gcc sanity | * remove crossdev packages (and crossdev) and check gcc sanity | ||
- | * remove / | + | |
- | | + | |
+ | ldconfig | ||
+ | |||
+ | | ||
+ | |||
+ | emerge -1kav sys-devel/ | ||
+ | |||
+ | mv / | ||
+ | mv /lib/gentoo /lib64 | ||
dns was broken at this point (prob somethign to do with libnss_dns.so) | dns was broken at this point (prob somethign to do with libnss_dns.so) | ||
- | *for the lib and /usr/lib dir<-> switcheroo | + | *for the lib / lib64 link <-> switcheroo |
- | ** make sure busybox is functional | + | ** make sure busybox is functional. run this from busybox |
** have a few shells open, in case you break the one you're working from | ** have a few shells open, in case you break the one you're working from | ||
- | rm -Rf /usr/lib/distcc | + | |
+ | mv / | ||
+ | mv /lib/gentoo /lib64 | ||
+ | |||
+ | * remove / | ||
+ | * check for i686 compiler orphans with: qfile -o /usr/bin/i686-pc-linux-gnu-* | ||
emerge gcc -1av | emerge gcc -1av |
64bit-migration.txt · Last modified: 2023/06/21 12:02 by snarg