Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 603474 - net-misc/freerdp-1.2.1_pre20150326-r1 (stable): Access violation when /.git/ exists
Summary: net-misc/freerdp-1.2.1_pre20150326-r1 (stable): Access violation when /.git/ ...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal minor (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-22 15:52 UTC by Elliot Chandler
Modified: 2016-12-22 18:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (build.log,14.38 KB, text/plain)
2016-12-22 15:52 UTC, Elliot Chandler
Details
Emerge output (freerdp-access-violations.emerge.log,14.21 KB, text/plain)
2016-12-22 15:53 UTC, Elliot Chandler
Details
emerge --info output (emerge.info.net-misc.freerdp.2016dec22.txt,10.04 KB, text/plain)
2016-12-22 15:53 UTC, Elliot Chandler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Elliot Chandler 2016-12-22 15:52:37 UTC
Created attachment 457130 [details]
Build log

net-misc/freerdp-1.2.1_pre20150326-r1 (stable) tries to write to /.git/index.lock if /.git/ exists. Logs are attached.
Comment 1 Elliot Chandler 2016-12-22 15:53:33 UTC
Created attachment 457132 [details]
Emerge output
Comment 2 Elliot Chandler 2016-12-22 15:53:58 UTC
Created attachment 457134 [details]
emerge --info output
Comment 3 Mike Gilbert gentoo-dev 2016-12-22 16:02:11 UTC
Do I understand correctly that you have your root directory in a git repository?
Comment 4 Mike Gilbert gentoo-dev 2016-12-22 16:35:38 UTC
I suggest adding the following to /etc/sandbox.conf on any systems you have configured this way.

SANDBOX_PREDICT="/.git"
Comment 5 Elliot Chandler 2016-12-22 17:52:29 UTC
No, it's not actually a git repository. It's just some random junk .git folder that wound up there. I can solve the problem easily enough by moving it away, but it seems like the freerdp build system isn't fully respecting the PREFIX variable and friends, since it shouldn't touch things outside of the work directory... I guess it's an uncommon enough situation that it doesn't matter. Thanks!
Comment 6 Mike Gilbert gentoo-dev 2016-12-22 18:36:41 UTC
The build system probably runs "git status" or some related command to detect if it is being run from a git repository. Probably to embed the commit hash in the program somewhere.

git looks for a .git folder in the current directory. If it does not find .git in the current directory, it looks in the parent directory, and its parent, and so on until it runs out of parents.

There are lots of packages that do this, and I don't think it's worth "fixing" all of them.
Comment 7 Elliot Chandler 2016-12-22 18:44:54 UTC
Fair enough. Thanks :)