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 C166D1382C5 for ; Sun, 21 Jun 2020 19:44:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A2D81E08BD; Sun, 21 Jun 2020 19:44:31 +0000 (UTC) Received: from mail.apteryx.fr (apteryx.fr [91.121.49.61]) (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 3E697E08A2 for ; Sun, 21 Jun 2020 19:44:30 +0000 (UTC) Received: from [192.168.0.19] (lfbn-idf2-1-437-14.w86-246.abo.wanadoo.fr [86.246.145.14]) by mail.apteryx.fr (Postfix) with ESMTPSA id 42F86246066F for ; Sun, 21 Jun 2020 21:44:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=apteryx.fr; s=apteryx.fr; t=1592768669; bh=mP+hauWfQRriYtwuKMJ47d84NX9M2SFnunjLeos7eJk=; h=Subject:To:References:From:Date:In-Reply-To; b=nnkHwv8vxaO8MfJebww69PLJv0KOiCoTmxueGiCq06tPLg2BqNANK+vu96ig4jNj2 GKP5ULpC+PhwxVW8Z/10uchvwInZXcGVaKY85OflSpiFqm4zjxa6Az5twsEUI8+T/y Gzrt6raBIXasbx4IOYBW6YeOa+PcsTdYz3R8jsNg= Subject: Re: [gentoo-user] Gentoo chroot with old glibc To: gentoo-user@lists.gentoo.org References: <2061dce3-a6b3-31a7-aed0-c08487fa15ce@apteryx.fr> <3236503.QJadu78ljV@dell_xps> From: =?UTF-8?Q?Herv=c3=a9_Guillemet?= Message-ID: Date: Sun, 21 Jun 2020 21:43:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 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 In-Reply-To: <3236503.QJadu78ljV@dell_xps> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Archives-Salt: 1a44f496-aa25-4e62-8034-9290ce69c80e X-Archives-Hash: fcc8346b12ddd2013004ac4c42603643 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é