1 |
Joakim Tjernlund wrote: |
2 |
> I am trying to get this old dream to fly again: |
3 |
> Building a root fs in my own sysroot (other that /usr/CHOST ) as a normal user |
4 |
|
5 |
Yay, that would be very nice. |
6 |
|
7 |
|
8 |
> I could not even build glibc: |
9 |
> > SYSROOT=/usr/local/src/X-5000/root |
10 |
> PKGDIR=/usr/local/src/X-5000/overlay/packages |
11 |
> DISTDIR=/usr/local/src/X-5000/overlay/distfiles |
12 |
> ROOT=/usr/local/src/X-5000/root emerge-x86_64-tm-linux-gnu -a --nodeps |
13 |
> sys-libs/glibc |
14 |
> .... |
15 |
> /usr/bin/install: cannot change ownership of |
16 |
> '/usr/x86_64-tm-linux-gnu/tmp/portage/sys-libs/glibc-2.17/image//usr/lib/misc/glibc/pt_chown': Operation not permitted |
17 |
|
18 |
pt_chown is a bit of a special case and it does come with an --enable |
19 |
switch in configure. Did you try using --disable-pt_chown ? I guess |
20 |
the program isn't really needed in an embedded system and besides |
21 |
"It is not built by default because systems using the Linux kernel |
22 |
are commonly built with the `devpts' filesystem enabled and mounted |
23 |
at `/dev/pts', which manages pseudo-terminal ownership automatically." |
24 |
|
25 |
glibc.git/login/Makefile hardcodes the -m 4755 parameter to install. |
26 |
I can imagine that a few system packages would take such liberties, |
27 |
but hopefully it isn't strictly neccessary if we can specify |
28 |
carefully what we actually want to build. |
29 |
|
30 |
|
31 |
> I got fakeroot installed but seems like emerge ignores that somehow. |
32 |
> Is this just a futile dream still? |
33 |
|
34 |
Dunno - since you have the setup maybe you can try disabling pt_chown |
35 |
and see how far that takes you? I'm very interested in your results. |
36 |
|
37 |
|
38 |
Thanks |
39 |
|
40 |
//Peter |