Gentoo live-USB for Bubba|2 updated (Linux 4.9.16 LTS)

Discuss development on Bubba
sakaki
Posts: 172
Joined: 15 Aug 2014, 11:20

Re: Gentoo live-USB for Bubba|2 updated (Linux 4.9.16 LTS)

Post by sakaki » 29 Apr 2017, 17:23

The live-USB has getbinpkg set in FEATURES (via make.conf), as of v1.4.0, so that option isn't needed (but won't do any harm).
Best, sakaki

sakaki
Posts: 172
Joined: 15 Aug 2014, 11:20

Re: Gentoo live-USB for Bubba|2 updated (Linux 4.9.16 LTS)

Post by sakaki » 28 Feb 2018, 09:26

Migration of gentoo-on-b2 systems to Profile 17.0

I have just completed migrating the gentoo-on-b2 weekly autobuild host to profile 17.0. As recommended, all packages have been rebuilt under the new profile, and, to avoid confusion, a new binhost has been created to house these, at https://isshoni.org/b2pie. This is now the binhost that will receive weekly autoupdates, going forward.

The old 13.0 binhost, at https://isshoni.org/b2, will be retained for historical interest (at least for a while), but will no longer be autoupdated.

To upgrade your b2 system to profile 17.0, follow the instructions below.

First, make sure you have at least 2GiB of free space on your B2's filesystem (use "df -h" to check), and that you are using at least version 6.4.0 of gcc (use "gcc-config --list-profiles" to check; look for the version marked with the asterisk). Then, if that all looks good, proceed to update your ebuild repositories. As root, issue:

Code: Select all

b2 ~ # emaint sync --auto
Then, switch your profile to 17.0 (e.g.):

Code: Select all

b2 ~ # eselect profile set "default/linux/powerpc/ppc32/17.0"
Next, switch your binary package host ('binhost'), to use the new 17.0 variant mentioned above. To do so, issue:

Code: Select all

b2 ~ # nano -w /etc/portage/make.conf
and modify the line that currently reads:

Code: Select all

PORTAGE_BINHOST="https://isshoni.org/b2"
so it now reads instead:

Code: Select all

PORTAGE_BINHOST="https://isshoni.org/b2pie"
Leave the rest of the file as-is. Save, and exit nano.

Now you can update the core build system. Do not follow the advice in the official news article to rebuild gcc, binutils and glibc individually (if you do, you'll end up building them locally, rather than pulling the new binaries from the binhost, which will take a long time). Instead, issue:

Code: Select all

b2 ~ # emerge --ask --verbose sys-devel/gcc sys-devel/binutils sys-libs/glibc
Check (when the above command prompts you for confirmation) that you will indeed be installing binary packages - this is a good indication you have set things up correctly.

Once this completes, rebuild your entire system for profile 17.0. Almost all the required packages should be available on the new binhost you just switched to, so this should only take a few hours (unless you have added many additional packages to the image yourself). Issue:

Code: Select all

b2 ~ # nice emerge --ask --verbose --emptytree --with-bdeps=y @world
b2 ~ # nice emerge @preserved-rebuild
then:

Code: Select all

b2 ~ # dispatch-conf
to resolve any proposed configuration file changes (for the most part, if you had a reasonably up-to-date 13.0 profile system to start with, typing z to 'zap' (discard) most of these proposed changes should be safe; a lot of packages have been re-installed here, but you want to keep your prior configuration, not roll it back to 'shipped defaults').

Once done, reboot your system. Then log in again as root, and issue:

Code: Select all

b2 ~ # genup
Once this has completed, congratulations, you have migrated to profile 17.0! From this point, the automated weekly genup run should keep your system correctly up-to-date.

Best, sakaki

sakaki
Posts: 172
Joined: 15 Aug 2014, 11:20

Re: Gentoo live-USB for Bubba|2 updated (Linux 4.9.16 LTS)

Post by sakaki » 23 Aug 2018, 06:17

Hello,

if you are using my https://isshoni.org/b2pie binhost, please remove any mask on dev-python/cryptography and dev-python/pyopenssl (as these are now compatible with the bindist USE flag under Gentoo, with >=dev-libs/openssl-1.0.2o-r6), and also please mask dev-libs/openssl-1.0.2p (as that does not patch correctly).

Mask files may be found in /etc/portage/package.mask/

At some point in the future I hope to roll out a custom profile for the B2 (as I have for the B3 and RPi3) so that distributing these kinds of mask (and USE-flag) changes can be automated.

Best,

sakaki

Post Reply