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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4A99715ACFB for ; Wed, 26 Apr 2023 13:43:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 379EFE0882; Wed, 26 Apr 2023 13:43:09 +0000 (UTC) Received: from sysrq.in (sysrq.in [37.79.202.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 80CE7E087E for ; Wed, 26 Apr 2023 13:43:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=sysrq.in; bh=JDfWRARxqvv j4aSH5noVBNGRRxEL0LskA7k7ccaE/Fw=; h=in-reply-to:references:to:from: date; d=sysrq.in; b=VDD7YI0r7HYPU+4OCKTkdJGj6ViszBSK01kukqbzJ0g3+sGG8c RtGckdmvpOD/DNnk3Yl0qHTj43Vaev7covw1HT0rkuZIshBcEdWDkQRUPFD3hkoKUOqqAF zr8XvJlOu6L6S8M1Vn3KHab+8SYoLwddC/y1UC9RMXnbYXPVcc0gD/LOLtzp0ExtwZWx6j 3XjAQ8SrGJSuiGx8XoDLUMA1CbLTJaH/TrubSKva/zk6U/Ur4C3EXDJayoNp8w4koQUXXh iK3fqn3cpHseofXqNAFyChv9kGNazqXeq1H+IPfN/SrxnvvAJ41Hg90WtRp9vs+qjqB38b O3UHGnp7uxgQ== Received: from sysrq.in (localhost [127.0.0.1]) by sysrq.in (OpenSMTPD) with ESMTPS id 924626a1 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Wed, 26 Apr 2023 13:43:06 +0000 (UTC) Date: Wed, 26 Apr 2023 18:43:04 +0500 From: "Anna (cybertailor) Vyalkova" To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Portage and languages with built-in cache support Message-ID: Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <79be9b1f-7f4b-d652-6aa1-a4154adcb6c4@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <79be9b1f-7f4b-d652-6aa1-a4154adcb6c4@gentoo.org> User-Agent: Mutt/2.2.10 (2023-03-25) X-Archives-Salt: bdf24c19-7f95-4357-a7b1-9c892ab91375 X-Archives-Hash: be436bbc089ee0f9684d254b743aa84b On 2023-04-25 16:09, Maciej Barć wrote: > You would also have to have correct permissions on cache dirs > (root:portage or portage:portage) this also means that the cache dir > will have to be set during build explicitly. > Do both Nim and Go support setting it? Yes. For Nim it would be something like that: # nim.cfg --nimcache:"${EPREFIX}/var/cache/nim/${CATEGORY}/${PN}" And for Go: export GOCACHE="${EPREFIX}/var/cache/go" on some condition. The only problem is, they don't support cleaning cache automatically. So it needs to be done manually or with cron.