From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9C94D1382C5 for ; Sun, 21 Jun 2020 20:03:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 298A3E0907; Sun, 21 Jun 2020 20:03:31 +0000 (UTC) Received: from mail-gw.thundermail.uk (mail-gw.thundermail.uk [149.255.60.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BD3A5E089C for ; Sun, 21 Jun 2020 20:03:30 +0000 (UTC) Received: from mailgw01.thundermail.uk (mail-gw.thundermail.uk [149.255.60.66]) by mail-gw.thundermail.uk (Postfix) with ESMTPS id 4BB076004230 for ; Sun, 21 Jun 2020 21:03:29 +0100 (BST) X-ASG-Debug-ID: 1592769808-05541315ac2f64eb0001-LfjuLa Received: from cloud307.thundercloud.uk (cloud307.thundercloud.uk [149.255.58.40]) by mailgw01.thundermail.uk with ESMTP id IZyx4jamNwtq421P (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Sun, 21 Jun 2020 21:03:28 +0100 (BST) X-Barracuda-Envelope-From: confabulate@kintzios.com X-Barracuda-Effective-Source-IP: cloud307.thundercloud.uk[149.255.58.40] X-Barracuda-Apparent-Source-IP: 149.255.58.40 Received: from lenovo.localdomain (230.3.169.217.in-addr.arpa [217.169.3.230]) by cloud307.thundercloud.uk (Postfix) with ESMTPSA id 93224CEB2D7 for ; Sun, 21 Jun 2020 21:03:27 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kintzios.com; s=default; t=1592769808; bh=t1140hjpzkmjjVHVHa5wH/PfHNGxFA+x2gbvG9/yjWU=; h=From:To:Subject; b=ImIFVRZRL0beWY+/nVuoXTzWTGVKZkbDeoh9New46WISm4B/cmnVwtZkEa+iFNnJ2 KPfIoEQt2QzZSp51ePG726Sw0Lq1G7f4jqicnPpmLJU3x6vR1hLvguaUQqTA55ItZy KCS4sgklbYnwDpfBWPjZA0JDF21NGpmJQWpb9wYY= Authentication-Results: cloud307.thundercloud.uk; spf=pass (sender IP is 217.169.3.230) smtp.mailfrom=confabulate@kintzios.com smtp.helo=lenovo.localdomain Received-SPF: pass (cloud307.thundercloud.uk: connection is authenticated) From: Michael To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Gentoo chroot with old glibc Date: Sun, 21 Jun 2020 21:03:18 +0100 X-ASG-Orig-Subj: Re: [gentoo-user] Gentoo chroot with old glibc Message-ID: <3055978.aeNJFYEL58@lenovo.localdomain> In-Reply-To: References: <2061dce3-a6b3-31a7-aed0-c08487fa15ce@apteryx.fr> <3236503.QJadu78ljV@dell_xps> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3061834.44csPzL39Z"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-PPP-Message-ID: <20200621200327.357640.31013@cloud307.thundercloud.uk> X-PPP-Vhost: kintzios.com X-Barracuda-Connect: cloud307.thundercloud.uk[149.255.58.40] X-Barracuda-Start-Time: 1592769808 X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256 X-Barracuda-URL: https://149.255.60.66:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at thundermail.uk X-Barracuda-Scan-Msg-Size: 1773 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=1.9 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.82712 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Archives-Salt: f472fa54-c8a5-44b5-a306-509cb4a5e471 X-Archives-Hash: 1260cc37b2a0ac86ed5339c53ca967e0 --nextPart3061834.44csPzL39Z Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" On Sunday, 21 June 2020 20:43:59 BST Herv=C3=A9 Guillemet wrote: > Le 21/06/2020 =C3=A0 19:06, Michael a =C3=A9crit : > >> 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. > >>=20 > >> My idea is too maintain a gentoo chroot dedicated for compiling my > >> binaries which would (package.)mask recent versions of glibc and gcc > >> ebuilds. > >>=20 > >> 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. > >>=20 > >> Or do you have any suggestion for alternatives to this gentoo chroot ? > >> (I'd prefer avoid installing some CentOS or Ubuntu as virtual guests). > >=20 > > Once you chroot, you're in the chrooted env. As long as you have a sta= ge > > 3 > > old enough to contain the requisite glibc, you should be good to go: > >=20 > > http://gentoo.osuosl.org/releases/amd64/ >=20 > 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. I hadn't understood you wanted a current state of an OS, plus current syste= m=20 and other packages, BUT with a deprecated version of glibc. I thought you= =20 would be OK to use a stage 3 from back then as it was in its totality, froz= en=20 in time, with no updates or backported packages. However, since you managed to hold back glibc while updating everything els= e,=20 you have proven what you wanted could be done! I would think this on its o= wn=20 is a feat worth a HowTo. :-) --nextPart3061834.44csPzL39Z Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAl7vvQYACgkQseqq9sKV ZxkKzQ//bRgKbDes5Y+zH1qQ8wUyNZXmWD2kVPqSN3+3D65HIGMIgciGL8khy7SC V+y7CBhUA+ysrs35ZnyPzQ6tl83D7i9Tb9dwfNoH56k5AIhd0OPDshRoLtR64xhT i9P6dKwqWlJE7Dl8evRVqtZGDaOPqZWZOfmWqWanTPhFNKLs3SEVS4gbNKFOAGNU FcNQxF8Uh0FXzNARvjpJzBSgxiWVm9t9ZmMguJHsxcQXDd/iDYP5qJKAiaC1J6X9 IvdDStVAuubroQ74+f68F5i5UWk6eQFWt4s8DWL5ffjUpaC0Z4emp1MVmf6xLmTX oDOdDjG5KEKTFUqJUuKK8yRjKREeF0Ko7vifR+aBjdv6DpSQEVvE8iHOuweBVFG8 +KBqb9qKllbMSY/PILcvLSdyDt6MqYQeCee3yqN3PgTKlJ7b9Z/BBX0dqehAbTIv at1Vw5u8Vv8A72m9Ugl2XobeeNukrimA5lTcX8AMD0pLVNPT+ktGTp0lEVkjIzaZ mm9dIX1QZPIHE5l1fm7CQHkp+EV8mcU/1psY0MXSEfN4HqgSCJwNbLdM5wEDiyuD vjyNgvts+dQPXTx//Qtfc4fKi0iYIObZtaRpiWEGCNxGoUcVA+rz4YDR3W5YXx6A tBXZf7IoYRo/Ne9+HNfisgPtfi7bDA4br2NE+ezrMd1OKE2NuZY= =jyqV -----END PGP SIGNATURE----- --nextPart3061834.44csPzL39Z--