Le 21/06/2020 à 19:06, Michael a écrit :
I need to distribute some linux binaries and the one built with my
up-to-date gentoo sytem won't run on distributions using older glibc.

My idea is too maintain a gentoo chroot dedicated for compiling my
binaries which would (package.)mask recent versions of glibc and gcc
ebuilds.

What's the better way to go ? If I start with some of the stage3
available for download, I won't be able to downgrade the glibc.

Or do you have any suggestion for alternatives to this gentoo chroot ?
(I'd prefer avoid installing some CentOS or Ubuntu as virtual guests).

Once you chroot, you're in the chrooted env.  As long as you have a stage 3
old enough to contain the requisite glibc, you should be good to go:

http://gentoo.osuosl.org/releases/amd64/


That's what I did: I found a 2017 stage3 with a still older glibc and managed to upgrade to a 2020 gentoo while masking the last glibc versions. That was tricky because I had to git-checkout intermediate versions of the portage tree in order to deal with the EAPI changes but I have a working chroot now. Thanks.

--
Hervé

Reply via email to