| | 1 | Start by making a static snapshot of the current state of the portage tree. |
| | 2 | |
| | 3 | On gentoo.ifa.hawaii.edu, |
| | 4 | |
| | 5 | |
| | 6 | {{{ |
| | 7 | rsync -avp /usr/portage/ /usr/portage-$DATE |
| | 8 | }}} |
| | 9 | |
| | 10 | |
| | 11 | then point the portage-ipp synlink to the new directory |
| | 12 | |
| | 13 | |
| | 14 | {{{ |
| | 15 | |
| | 16 | gentoo usr # ls -lad portage* |
| | 17 | drwxr-xr-x 162 root root 4096 Jun 30 07:38 portage |
| | 18 | drwxr-xr-x 159 root root 4096 Aug 27 2008 portage-2008-08-27 |
| | 19 | drwxr-xr-x 3 root root 4096 Apr 22 12:26 portage-2009-04-22 |
| | 20 | drwxr-xr-x 162 root root 4096 Jun 23 13:46 portage-2009-06-23 |
| | 21 | lrwxrwxrwx 1 root root 18 Jun 23 13:44 portage-ipp -> portage-2009-06-23 |
| | 22 | }}} |
| | 23 | |
| | 24 | |
| | 25 | |
| | 26 | On the binpkg build master (currently master.ipp), update the portage tree |
| | 27 | |
| | 28 | |
| | 29 | {{{ |
| | 30 | emerge --sync -q |
| | 31 | }}} |
| | 32 | |
| | 33 | |
| | 34 | Then make sure you have the latest version of portage installed |
| | 35 | |
| | 36 | |
| | 37 | {{{ |
| | 38 | emerge -1 portage |
| | 39 | }}} |
| | 40 | |
| | 41 | |
| | 42 | Check to see if your using the latest Gentoo profile and switch to the latest if necessary |
| | 43 | |
| | 44 | |
| | 45 | {{{ |
| | 46 | master ~ # profile-config list |
| | 47 | Available profile symlink targets: |
| | 48 | [1] default/linux/amd64/2008.0 * |
| | 49 | [2] default/linux/amd64/2008.0/desktop |
| | 50 | [3] default/linux/amd64/2008.0/developer |
| | 51 | [4] default/linux/amd64/2008.0/no-multilib |
| | 52 | [5] default/linux/amd64/2008.0/server |
| | 53 | [6] hardened/amd64 |
| | 54 | [7] hardened/amd64/multilib |
| | 55 | [8] selinux/2007.0/amd64 |
| | 56 | [9] selinux/2007.0/amd64/hardened |
| | 57 | [10] hardened/linux/amd64 |
| | 58 | }}} |
| | 59 | |
| | 60 | |
| | 61 | Update packages (particular Perl packages) under /usr/src/portage_overlay as needed and check with the equery tool to see if you can remove entries from /etc/portage.* |
| | 62 | |
| | 63 | Then update the 'system' target to so the build tool chain is up to date. |
| | 64 | |
| | 65 | |
| | 66 | {{{ |
| | 67 | emerge -e system |
| | 68 | }}} |
| | 69 | |
| | 70 | |
| | 71 | Make sure the current stable version of gcc is being used. |
| | 72 | |
| | 73 | {{{ |
| | 74 | |
| | 75 | master ~ # gcc-config -l |
| | 76 | [1] x86_64-pc-linux-gnu-4.3.2 * |
| | 77 | }}} |
| | 78 | |
| | 79 | |
| | 80 | Start the world package rebuild. |
| | 81 | |
| | 82 | |
| | 83 | {{{ |
| | 84 | emerge -e world |
| | 85 | }}} |
| | 86 | |
| | 87 | |
| | 88 | You will have to deal with varius package build problems and failures during the build. It's highly recommended that you run this under `screen` as it may take over a day to do the complete build. When the build is finished, removed all orphaned packages |
| | 89 | |
| | 90 | |
| | 91 | {{{ |
| | 92 | emerge -p --prune |
| | 93 | }}} |
| | 94 | |
| | 95 | |
| | 96 | Then re-run the world build to make sure there are any phantom dependencies |
| | 97 | |
| | 98 | |
| | 99 | {{{ |
| | 100 | emerge -e world |
| | 101 | }}} |
| | 102 | |
| | 103 | |