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