From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 94DA81381F3 for ; Tue, 1 Oct 2013 14:16:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 91B00E0C0C; Tue, 1 Oct 2013 14:16:31 +0000 (UTC) Received: from mail-wg0-f49.google.com (mail-wg0-f49.google.com [74.125.82.49]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6CB3CE0BE8 for ; Tue, 1 Oct 2013 14:16:30 +0000 (UTC) Received: by mail-wg0-f49.google.com with SMTP id l18so7214182wgh.4 for ; Tue, 01 Oct 2013 07:16:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=b0tsCLSCYC2RtQ0Gpe15va2R5/K50T4HlRkQZldYGcY=; b=wk47JcuvdEc2BMomS+N6I+P17MTziHr+MgIqhdtDZPMa/qOPZ+krR2VwkT5Z08ktV+ 1XEzgFnJK99jybbEiYMUfz82jq7DDMij2ezjyoGO0eVxlPyjCSc338vuMmwNhZGiZPiJ Uklf8iu6nQmqHmm7zU7XvUMqGmwQDrenfTA3FilqiPJnvGDIy9ZPiR86hV/94mrhclVx bPLrEIEaBlq186NPQNrKcCbgQkK+uuY57Paaa+cmvVoQr0FPRzhZmLnoTQ1SSxLKj4ko pzm3epxURb2Wfg6/dq/PwApraVI2kPNPxz8EGWlcuSIrB7Xc7M6i7KzD3/4IvOh0WkSw vumw== X-Received: by 10.180.187.41 with SMTP id fp9mr18547230wic.33.1380636988972; Tue, 01 Oct 2013 07:16:28 -0700 (PDT) Received: from [172.20.0.40] (196-210-102-121.dynamic.isadsl.co.za. [196.210.102.121]) by mx.google.com with ESMTPSA id dq11sm6486888wid.3.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 01 Oct 2013 07:16:28 -0700 (PDT) Message-ID: <524AD82C.8080804@gmail.com> Date: Tue, 01 Oct 2013 16:11:56 +0200 From: Alan McKinnon User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.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 MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: PORTDIR default - changing PORTDIR variable - WAS Re: [gentoo-user] Re: separate / and /usr to require initramfs 2013-11-01 References: <20130927222109.GD23408@server> <5246079E.7090406@gmail.com> <524759FB.2090304@gmail.com> <524869A5.4070306@libertytrek.org> <20130929185504.GA16543@linux1> <524892E3.5080402@libertytrek.org> <52489883.3090408@gmail.com> <5248AF6F.4040405@libertytrek.org> <52493D9F.3080504@gmail.com> <5249B421.8070909@googlemail.com> <5249CDA4.5090700@gmail.com> <524AC184.8000804@libertytrek.org> <524AC415.4080203@gmail.com> <524AD3AF.3060900@libertytrek.org> In-Reply-To: <524AD3AF.3060900@libertytrek.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 79d7fd09-ee28-4074-b442-0c9af5a6a0dd X-Archives-Hash: f767459d04c2ac9743d1c18e255e309a On 01/10/2013 15:52, Tanstaafl wrote: > On 2013-10-01 8:46 AM, Alan McKinnon wrote: >>> I know that it is probably trivial, but I like to read official docs for >>> things like this... > >> It is trivial. All that it is, is a path to where some stuff is. That's >> all, nothing more. > > Ok, thanks... but (call me anal, because I am) I still think this > deserves at least a tiny mention in the formal documentation somewhere, > even if its just on a a wiki page or whatever. > > Also, obviously the man docs for portage and make.conf should be updated... Err, yeah, that should have been done. But none of that fazes me anymore. You should see some of the docs I'm forced to use for "professional" "carrier grade" "premium level support" products.... > >> Change this in make.conf: >> >> PORTDIR="/var/portage" >> DISTDIR="/var/distfiles" >> PKGDIR="/var/packages" > > Hmmm... > > Currently, everything is in /usr/portage: > > /usr/portage > /usr/portage/distfiles > /usr/portage/packages > > But the new defaults are 3 separate directories as you specified above? > > Or was that a typo, and they should be: > > /var/portage > /var/portage/distfiles > /var/portage/packages No, I have them the way I posted. For years portage shipped with this really dumbass stupid notion of shoving local overlays, binpkgs and distfiles all in with the tree. Dumb, dumb, dumb. It makes using rsync needlessly difficult and you can't deal with the tree as a single directory unit without putting an exclusion in. So I split them up and rigged things so each category of thing is in it's own distinct directory tree. Like I said earlier, they are just paths and you can put them anywhere you like. You too can put yours anywhere it makes sense to you. > > ? > > Another question... > > Since these are the new defaults, how do new installs define them? Are > they explicitly set in make.conf now? Or is it somewhere else more > low-level - and if so, wouldn't it be better to change it there once > I've moved everything and confirmed it is working properly? The default is in the portage code somewhere. I don't care where. What I do know is how to make mine something different, and that's what I did. Look, this is not hard. It's like having a photo app default to storing your photos in "~/.local/share/my-app/DCIM/data/local/photos/public/" and you take one look at this and decide that's for the birds. So you click View->Settings and see "Photo Library location", make it "~/photos" and promptly forget that the stupid default ever existed. This is exactly like that. > >> move the directories to the new location > > Is a cp -rp /usr/portage /var/portage (repeat for the others) sufficient? > >> and run any old emerge command of your choice. If you left something >> out, you'll get a message on the screen. >> >> You can have these directories any place you want and nothing breaks by >> moving them around. The only change is the shipped default. So there are >> loads of this you could worry about in IT, this ain't one of 'em > > Heh... ok, thanks, but you see, I worry about *everything* (maybe that > is one reason I rarely get bit badly doing things like this). > -- Alan McKinnon alan.mckinnon@gmail.com