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 3E5461382C5 for ; Wed, 16 Dec 2020 14:55:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5236AE09B0; Wed, 16 Dec 2020 14:55:38 +0000 (UTC) Received: from mail-oi1-f171.google.com (mail-oi1-f171.google.com [209.85.167.171]) (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 044E1E0997 for ; Wed, 16 Dec 2020 14:55:37 +0000 (UTC) Received: by mail-oi1-f171.google.com with SMTP id 9so20608364oiq.3 for ; Wed, 16 Dec 2020 06:55:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=teXdcsTNRHslk/i2+Hne5W8rgirr+EVpXvY285mK/AY=; b=rGU2Zjh7BNAYVVs9MdgEf5ewfcDhV8xsbLM5Fbi/jFZZqTPwLXxrLKeeDnFE3tTldy drGtDTbJrajMoYMhwMni2QxtMNGluDEYLCrBALn3BrX2J8/jRW3DfJIX36Nwp1g07xTN Pl3ienFEG93VSfemlWqF4D6Jsj6SGyvOeea3iW1GHFRZ+ziZB8RQGdBuW+qdCgTU757R sIzmtvVbRDLnme/8uuzyFT6gujygt37lc2i2PuRuN0VPUXQLiXGlvuZKS0NZ1caEEG0H 4UkmGjgwXrdRIGsndiQZi8ftUGfNbJqr6gU8880mToTD1gy9Zeh7GWeEf4mtJQ5LRnjc uK+g== X-Gm-Message-State: AOAM530IgWsQKDuerGWeEVfNJDGefBauMsJkHz9pZwy3UKIkFItDDZ4q zdNCF84msveNF9JlZoGBs9CyO2cPYgqfqEx3ZjK/CU+W X-Google-Smtp-Source: ABdhPJxzfw9lJxtj35UAC9IhG3JbjilAEWij/Ao3lLBxsvsznOb/5nbWcjPH5SurmGhX1hDwlMy2KzqqcCRtBESkKH8= X-Received: by 2002:aca:fd84:: with SMTP id b126mr2129603oii.85.1608130536881; Wed, 16 Dec 2020 06:55:36 -0800 (PST) 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 References: In-Reply-To: From: Rich Freeman Date: Wed, 16 Dec 2020 09:55:26 -0500 Message-ID: Subject: Re: [gentoo-user] Recommended location of the Gentoo ebuild repository To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset="UTF-8" X-Archives-Salt: 21a8dab1-7c17-40d0-93cb-41fb0142b04b X-Archives-Hash: 5fdd98e0e607f75616b24e8e592c5948 On Wed, Dec 16, 2020 at 9:45 AM gevisz wrote: > > Nevertheless, the explanation why /var/db/repos/gentoo is better than > /usr/portage is still welcomed. :) > There is a lengthy discussion on gentoo-dev on this, and my personal first choice didn't win. :) There is little dispute that /var makes more sense than /usr other than legacy reasons. /usr is generally used for static data - on some distros it might even be read-only, a squashfs, signed using crypto, and so on. On a rolling release distro like Gentoo it might get changed often by updates, but other than system updates nothing in it should change. On a more release-based distro only security updates or major releases would touch it. /var on the other hand is used for application data and other things that change all the time. That includes things like databases, which the Gentoo repo basically is. Mail spools, print spools, caches, and so on all go on there. FHS formalizes all this stuff. Now, where exactly in /var it goes is more a matter of debate. /var/db is not specified in FHS, but it is used by FreeBSD which I think was one of the selling points. Personally I stick it in /var/cache as (IMO) it just contains a local copy of a repository that is entirely stored elsewhere. Some would certainly disagree with that. I think /var/lib would be an alternative place that keeps more to FHS. However, moving it out of /usr was a move with near-universal support. And you can really put it anywhere you want by editing one line in your portage config. I don't think the directory even exists in the base install - it gets created the first time you sync so it is entirely user-configurable. -- Rich