Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 523098 - sys-devel/crossdev - cross-emerge wrapper should not add fakeroot
Summary: sys-devel/crossdev - cross-emerge wrapper should not add fakeroot
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-09-18 08:21 UTC by Joakim Tjernlund
Modified: 2014-10-20 17:30 UTC (History)
0 users

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


Attachments
remove fakeroot (0002-Remove-fakeroot-from-cross-emerge.patch,1.09 KB, patch)
2014-09-18 08:21 UTC, Joakim Tjernlund
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.