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 042F7138825 for ; Mon, 10 Nov 2014 04:58:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4E4DBE0874; Mon, 10 Nov 2014 04:58:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BF9D4E086D for ; Mon, 10 Nov 2014 04:58:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 6E71D3403E6 for ; Mon, 10 Nov 2014 04:58:35 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Flag: NO X-Spam-Score: -2.722 X-Spam-Level: X-Spam-Status: No, score=-2.722 tagged_above=-999 required=5.5 tests=[AWL=0.435, BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.555, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p0EN6LTZD7D3 for ; Mon, 10 Nov 2014 04:58:28 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 49DFC3403EC for ; Mon, 10 Nov 2014 04:58:23 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xnh3U-0003oP-BE for gentoo-portage-dev@gentoo.org; Mon, 10 Nov 2014 05:58:20 +0100 Received: from ip68-231-22-224.ph.ph.cox.net ([68.231.22.224]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Nov 2014 05:58:20 +0100 Received: from 1i5t5.duncan by ip68-231-22-224.ph.ph.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Nov 2014 05:58:20 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-portage-dev@lists.gentoo.org From: Duncan <1i5t5.duncan@cox.net> Subject: [gentoo-portage-dev] Re: [PATCH] unprivileged mode: generate PORTAGE_DEPCACHEDIR Date: Mon, 10 Nov 2014 04:58:08 +0000 (UTC) Message-ID: References: <1415575480-19505-1-git-send-email-zmedico@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ip68-231-22-224.ph.ph.cox.net User-Agent: Pan/0.140 (Chocolate Salty Balls; GIT 81929d0 /m/p/portage/src/egit-src/pan2) X-Archives-Salt: 0d464256-89d1-4396-8e70-30bce3b21aeb X-Archives-Hash: 2bfb21127d0aeb4989643101a56a91e7 Zac Medico posted on Sun, 09 Nov 2014 15:24:40 -0800 as excerpted: > [...] then automatically make PORTAGE_DEPCACHEDIR relative to > the current target root (which should always be writable for > unprivileged mode). Why? Why does emerge --pretend need a writable target root in the first place, or it dies a horrible death (traceback)? I keep root read-only by default, making it writable when I'm updating. When I'm simply doing an emerge --pretend, however, whether simply to satisfy my own curiosity or because I'm posting a reply to some other user where the output from emerge --pretend would be useful, why does emerge die a horrible death and traceback, when all I wanted was --pretend output that shouldn't be changing the target root at all and thus shouldn't /need/ a writable target root in the first place? https://bugs.gentoo.org/show_bug.cgi?id=490732 FWIW, $PORTAGE_TMPDIR is writable, as is /run/lock (and thus /var/run/lock). In both tracebacks in the bug, it's a *.portage_lockfile that's not writable. Why are those not in (possibly some subdir of) /run/lock in the first place, or in $PORTAGE_TMPDIR, given the temporary nature of the files? At least for --pretend. -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman