When the ebuild invokes emake doc, the home directory of the portage user is being written to. See also upstream bug report: https://github.com/OpenRA/OpenRA/issues/5947 Probably the best solution is to remove emake docs from the ebuild. Reproducible: Always Steps to Reproduce: emerge openra Actual Results: build fails, access to portage home dir is denied. Expected Results: build should make docs without writing to the portage home dir. make -j5 docs Unhandled Exception: System.UnauthorizedAccessException: Access to the path "/var/lib/portage/.openra" is denied. at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0006c] in /tmp/portage/dev-lang/mono-3.2.8/work/mono-3.2.8/mcs/class/corlib/System.IO/Directory.cs:116 at System.IO.Directory.CreateDirectory (System.String path) [0x000a4] in /tmp/portage/dev-lang/mono-3.2.8/work/mono-3.2.8/mcs/class/corlib/System.IO/Directory.cs:80 at OpenRA.Platform.get_SupportDir () [0x00099] in /tmp/portage/games-strategy/openra-20140608/work/openra-20140608/OpenRA.Game/Platform.cs:91 at OpenRA.Utility.Program.Main (System.String[] args) [0x0004d] in /tmp/portage/games-strategy/openra-20140608/work/openra-20140608/OpenRA.Utility/Program.cs:45 [ERROR] FATAL UNHANDLED EXCEPTION: System.UnauthorizedAccessException: Access to the path "/var/lib/portage/.openra" is denied. at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0006c] in /tmp/portage/dev-lang/mono-3.2.8/work/mono-3.2.8/mcs/class/corlib/System.IO/Directory.cs:116 at System.IO.Directory.CreateDirectory (System.String path) [0x000a4] in /tmp/portage/dev-lang/mono-3.2.8/work/mono-3.2.8/mcs/class/corlib/System.IO/Directory.cs:80 at OpenRA.Platform.get_SupportDir () [0x00099] in /tmp/portage/games-strategy/openra-20140608/work/openra-20140608/OpenRA.Game/Platform.cs:91 at OpenRA.Utility.Program.Main (System.String[] args) [0x0004d] in /tmp/portage/games-strategy/openra-20140608/work/openra-20140608/OpenRA.Utility/Program.cs:45
there is no USE=doc
I think you are using an unofficial overlay.
Also, I have no idea what /var/lib/portage/.openra is. It's not the default temp homedir directory of portage which is /var/tmp/portage/games-strategy/openra-20140608/homedir and has write and read access.
are you using sabayoon, funtoo or something like that?
yes indeed, funtoo it is. I can't find misconfiguration for the homedir location though.
report this bug to the funtoo maintainers
i now fully switched over to gentoo, and there it compiles flawlessly...