Gentoo Archives: gentoo-dev

From: Avi Schwartz <avi@×××××××××××××××.com>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] ebuild failing with sandbox violation
Date: Mon, 29 Apr 2002 12:15:50
In Reply to: [gentoo-dev] ebuild failing with sandbox violation by Encoding could not be reliably detected. Contents not available.
1 In my very short ebuild experience, I have seen these sandbox violations
2 in two cases:
4 1) If I forgot to add the ${D} prefix to the directory specifications in
5 src_install() or did not set DESTDIR properly.
7 2) The program's Makefile ignores ${DESTDIR}. This is quite common when
8 /etc is involved. If you will take a look at the dev-db/unixODBC
9 ebuild, you will see that the is modified to add ${DESTDIR}
10 in front of the /etc directory to fix this.
12 Avi
14 On Mon, 2002-04-29 at 12:19, jurquijo@××××.org wrote:
15 > Can anyone point me to a doc or mailing list post that describes sandbox
16 > violations?
17 >
18 > I've written an ebuild for imwheel and it used to work/install fine on a
19 > gentoo rc6 system I had installed.
20 >
21 > Trying to install the same ebuild on a recently built system fails with a
22 > "sandbox violation" when the ebuild tries to create /etc/imwheelrc.
23 >
24 > I thought that in all steps prior to the "merge" command, ebuilds were
25 > built in a "safe" temporary environment before being copied to the live
26 > filesystem.
27 --
28 Avi Schwartz
29 avi@×××××××××××××××.com