Gentoo Archives: gentoo-embedded

From: Joakim Tjernlund <joakim.tjernlund@×××××××××.se>
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] cross building into custom SYSROOT with non root user ?
Date: Mon, 21 Oct 2013 12:39:01
Message-Id: OFA5C9C18A.51B8A072-ONC1257C0B.00442929-C1257C0B.004579D7@transmode.se
1 I am trying to get this old dream to fly again:
2 Building a root fs in my own sysroot (other that /usr/CHOST ) as a normal
3 user because the
4 good old /usr/CHOST as root doesn't really fly in a multi developer
5 project where people expect to
6 be able build stuff as a normal user and being able to have multiple
7 versions of root fs installed.
8
9 I could not even build glibc:
10 > SYSROOT=/usr/local/src/X-5000/root
11 PKGDIR=/usr/local/src/X-5000/overlay/packages
12 DISTDIR=/usr/local/src/X-5000/overlay/distfiles
13 ROOT=/usr/local/src/X-5000/root emerge-x86_64-tm-linux-gnu -a --nodeps
14 sys-libs/glibc
15 ....
16 /usr/bin/install: cannot change ownership of
17 '/usr/x86_64-tm-linux-gnu/tmp/portage/sys-libs/glibc-2.17/image//usr/lib/misc/glibc/pt_chown':
18 Operation not permitted
19
20 I got fakeroot installed but seems like emerge ignores that somehow.
21 Is this just a futile dream still?
22
23 Jocke

Replies