Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: Gentoo Dev <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] [PATCH] ebuild-writing/variables: better describe ROOT
Date: Wed, 11 May 2016 02:19:31
Message-Id: CAJ0EP4042P1aSyJ4-cxqGv4JgK3CpBn3veS9DU9v2bszWnVBrw@mail.gmail.com
In Reply to: Re: [gentoo-dev] [PATCH] ebuild-writing/variables: better describe ROOT by Mike Gilbert
1 On Tue, May 10, 2016 at 9:42 PM, Mike Gilbert <floppym@g.o> wrote:
2 >> Anywhere that you need addpredict() it also seems reasonable. The
3 >> v4l-dvb-saa716x ebuilds use "${ROOT}/usr/src/linux/" where EPREFIX would
4 >> not be a good replacement.
5 >
6 > Nah, usually addpredict is dealing with stuff in the system that is
7 > performing the build. Sandboxed phases should never be looking at
8 > ROOT.
9 >
10 > Those ebuilds should probably do addpredict /usr/src/linux instead.
11
12 Oh, I see. It's compiling kernel modules based on linux sources
13 installed in ROOT. Given the definition in PMS, I would say that's
14 undefined behavior at best.
15
16 I think SYSROOT might be a better fit here.

Replies