On Tue, Sep 13, 2016 at 9:12 AM, Bertram Scharpf <[email protected]> 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

