From: Rich Freeman <rich0@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Emerge interferes with Git (Was: Wlan disappeared after suspend)
Date: Tue, 13 Sep 2016 11:12:11 -0400 [thread overview]
Message-ID: <CAGfcS_ke5KitFoG6B0WFq5cZ479cKNeKmaWHWSizFvO4AnPZ-w@mail.gmail.com> (raw)
In-Reply-To: <20160913131251.GA42144@becker.bs.l>
On Tue, Sep 13, 2016 at 9:12 AM, Bertram Scharpf
<lists@bertram-scharpf.de> 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
>
>>>> '/usr/portage/tmp/portage/net-wireless/rfkill-0.5/temp/build.log'
>
> 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?
I'm not sure if that is supposed to work or not, but I suspect that
might be the problem. Since it is located INSIDE a git repository (if
you have /usr/portage checked out from git), I suspect there is some
confusion if the package is trying to check something else out using
git or otherwise manipulate it. The .git directory is outside of the
sandbox so it shouldn't be able to be modified.
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).
--
Rich
next prev parent reply other threads:[~2016-09-13 15:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-13 8:23 [gentoo-user] Wlan disappeared after suspend Bertram Scharpf
2016-09-13 12:08 ` Michael Orlitzky
2016-09-13 13:12 ` [gentoo-user] Emerge interferes with Git (Was: Wlan disappeared after suspend) Bertram Scharpf
2016-09-13 15:12 ` Rich Freeman [this message]
2016-09-13 15:19 ` Michael Orlitzky
2016-09-13 17:49 ` Bertram Scharpf
2016-09-17 8:31 ` [gentoo-user] " Kai Krakow
2016-09-17 13:54 ` Bertram Scharpf
2016-09-17 14:36 ` Rich Freeman
2016-09-17 15:18 ` Kai Krakow
2016-09-18 2:41 ` Bertram Scharpf
2016-09-13 13:18 ` [gentoo-user] Wlan disappeared after suspend Bertram Scharpf
2016-09-13 13:22 ` Michael Orlitzky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGfcS_ke5KitFoG6B0WFq5cZ479cKNeKmaWHWSizFvO4AnPZ-w@mail.gmail.com \
--to=rich0@gentoo.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox