Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 523098

Summary: sys-devel/crossdev - cross-emerge wrapper should not add fakeroot
Product: Gentoo Linux Reporter: Joakim Tjernlund <joakim.tjernlund>
Component: [OLD] DevelopmentAssignee: Embedded Gentoo Team <embedded>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=489016
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: remove fakeroot

Description Joakim Tjernlund 2014-09-18 08:21:08 UTC
Created attachment 384990 [details, diff]
remove fakeroot

Portage is not designed to run wrapped in fakeroot. Instead
one should set FEATURES="fakeroot". Wrapping emerge with
fakeroot triggers emerge to disable fakeroot.
See bug https://bugs.gentoo.org/show_bug.cgi?id=489016

NB.
This patch has been on the embedded list for a long time.
Comment 1 SpanKY gentoo-dev 2014-09-18 16:53:29 UTC
fakeroot is probably useless now anyways with user namespace in the kernel

http://git.overlays.gentoo.org/gitweb/?p=proj/crossdev.git;a=commitdiff;h=56b32e1a3c5da6c3a39270840a8bc99fe321227d
Comment 2 Joakim Tjernlund 2014-09-18 17:39:34 UTC
Can user name spaces also allown chown(2) like fakeroot do?

If so this would be very good to have native in portage :)
Comment 3 SpanKY gentoo-dev 2014-10-20 16:52:16 UTC
(In reply to Joakim Tjernlund from comment #2)

it will make it look like the current uid is 0, so the code is running as root
Comment 4 Joakim Tjernlund 2014-10-20 17:30:54 UTC
(In reply to SpanKY from comment #3)
> (In reply to Joakim Tjernlund from comment #2)
> 
> it will make it look like the current uid is 0, so the code is running as
> root

Yes, but that does not allow you to do chown from the small tests I have done.