Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
portage "fakeroot" (non-root building)?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
lurker
n00b
n00b


Joined: 13 Dec 2002
Posts: 4
Location: Sydney, Australia

PostPosted: Sat Dec 14, 2002 1:05 am    Post subject: portage "fakeroot" (non-root building)? Reply with quote

where is the "fakeroot" (non-root building) capability added to Portage by J. Robert Ray? I would like to use it to try some cross-compiling something like this:

user@gentoo $ export ROOT=/cross
user@gentoo $ export PORTAGE_TMPDIR=/var/tmp/cross-portage
user@gentoo $ fakeroot emerge system

but that causes configure to run under fakeroot which doesn't work. so maybe one of these:

user@gentoo $ export FEATURES="sandbox fakeroot"
user@gentoo $ emerge system

or

user@gentoo $ emerge --fakeroot system

but that's not it. this is portage 2.0.45-r4 which seems to be the latest. does anyone know how to use the new fakeroot capability?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sun Dec 15, 2002 5:59 am    Post subject: Reply with quote

Just finished emerging it and haven't tried anything. A couple of things from the man page:
Quote:
If you intend to build packages with fakeroot, please try building the fakeroot package first:
the "debian/rules build" stage has a few tests (testing mostly for bugs in old fakeroot ver-
sions). If those tests fail (for example because you have certain libc5 programs on your sys-
tem), other packages you build with fakeroot will quite likely fail too, but possibly in much
more subtle ways.
Quote:
Also, note that it's best not to do the building of the binaries themselves under fakeroot.
Especially configure and friends don't like it when the system suddenly behaves differently
from what they expect. (or, they randomly unset some environemnt variables, some of which fake-
root needs).
To me, that sounds like fakeroot emerge packagename isn't desireable. Instead, I'd expect a portage option to use fakeroot. Something similar to (bold is my emphasis):
Quote:
fakeroot was specifically written to enable users to create Debian GNU/Linux packages
(in the deb(5) format) without giving them root privileges. This can be done by com-
mands like dpkg-buildpackage -rfakeroot or build -rfakeroot


This is the first I've seen/read about fakeroot... am I misunderstanding something?
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
lurker
n00b
n00b


Joined: 13 Dec 2002
Posts: 4
Location: Sydney, Australia

PostPosted: Sun Dec 15, 2002 8:36 am    Post subject: Reply with quote

kanuslupus wrote:
Just finished emerging it and haven't tried anything.

yes the fakeroot package itself is there
Quote:
To me, that sounds like fakeroot emerge packagename isn't desireable. Instead, I'd expect a portage option to use fakeroot.

yes I agree.
Quote:

This is the first I've seen/read about fakeroot... am I misunderstanding something?

The fakeroot/portage integration is teased on the front page in the recent news item from daniel robbins.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum