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 C6197138330 for ; Sat, 17 Sep 2016 08:31:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B7CE3E0B84; Sat, 17 Sep 2016 08:31:44 +0000 (UTC) Received: from blaine.gmane.org (unknown [195.159.176.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 37AB7E0B77 for ; Sat, 17 Sep 2016 08:31:44 +0000 (UTC) Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1blB27-00019C-ML for gentoo-user@lists.gentoo.org; Sat, 17 Sep 2016 10:31:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Kai Krakow Subject: [gentoo-user] Re: Emerge interferes with Git (Was: Wlan disappeared after suspend) Date: Sat, 17 Sep 2016 10:31:17 +0200 Message-ID: <20160917103117.01159601@jupiter.sol.kaishome.de> References: <20160913082326.GA38638@becker.bs.l> <72ddea8d-cf3d-74a3-3700-9ce6397be500@gentoo.org> <20160913131251.GA42144@becker.bs.l> <20160913174904.GB44957@becker.bs.l> 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@blaine.gmane.org X-Newsreader: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) X-Archives-Salt: 1d3b75f9-cbec-49ee-8c32-2edfbeef02b8 X-Archives-Hash: 0f25e5c293e741dae59d02f65a608b54 Am Tue, 13 Sep 2016 19:49:04 +0200 schrieb Bertram Scharpf : > On Tuesday, 13. Sep 2016, 11:12:11 -0400, Rich Freeman wrote: > > On Tue, Sep 13, 2016 at 9:12 AM, Bertram Scharpf > > wrote: > > > > > > The rfkill install interferes with Git! > > > > > > Error log: > > > P: /usr/portage/.git/index.lock > > > A: /usr/portage/.git/index.lock > > > R: /usr/portage/.git/index.lock > > > C: git update-index --refresh --unmerged > > > > [...] > > > > > > I helped myself by renaming the .git directory, but that's > > > only a workaround. > > > > > > How can I fix this? Should I report this? > > > > It looks like you have your PORTAGE_TMPDIR set > > as /usr/portage/tmp? > > Indeed. I have a "build partition" that I use for both, > package downloading and building in /usr/portage/tmp. > > The rfkill make suite looks for a version number and in case > the work directory is a Git repo it tries to query the > version number there. Then, it finds the Git repo in > /usr/portage and fails. Not very friendly! > > > I suggest moving PORTAGE_TMPDIR to someplace like /var/tmp or /tmp > > or someplace else. It isn't really ideal to have volatile > > information in /usr anyway (this is the part where everybody chimes > > in and points out that /usr/portage is in the wrong place to begin > > with). > > I'll see how I solve it. I do not have time to make a > decision this evening. You could # mount -o bind /usr/portage/tmp /var/tmp/portage and then point the portage tmp dir to that directory. From there, ebuilds cannot see the .git of /usr/portage. -- Regards, Kai Replies to list-only preferred.