From 658d52f0eafaa6c139aa1c6ba5c249afa2e2f4e1 Mon Sep 17 00:00:00 2001 From: Göktürk Yüksek Date: Wed, 4 May 2016 04:53:44 -0400 Subject: appendices/common-problems: remove the misleading sandbox violation example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the "Handling Access Violations" section, there is an example of a build system causing a sandbox violation by attempting to access HOME. Per PMS, HOME is a predefined read-only environment variable that points to a temporary location, which doesn't cause any sandbox violations. Remove the example while keeping the idea of tricking the build system into using a safer location. Signed-off-by: Göktürk Yüksek --- appendices/common-problems/text.xml | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) (limited to 'appendices/common-problems') diff --git a/appendices/common-problems/text.xml b/appendices/common-problems/text.xml index b0a7e58..2a9a2e7 100644 --- a/appendices/common-problems/text.xml +++ b/appendices/common-problems/text.xml @@ -214,31 +214,11 @@ ebuilds.

-Access violations most commonly occur during the install phase. See -src_install and -for discussion. -

- -

-Sometimes problems can also occur with packages attempting to write to -${HOME}. To get around this, it is usually sufficient to trick the build -system into using a safer location. For example, the fluxbox menu generator -tries to work in ${HOME}/.fluxbox to get around this, the following is -used: -

- - -ebegin "Creating a menu file (may take a while)" -mkdir -p "${T}/home/.fluxbox" || die "mkdir home failed" -MENUFILENAME="${S}/data/menu" MENUTITLE="Fluxbox ${PV}" \ - CHECKINIT="no. go away." HOME="${T}/home" \ - "${S}"/util/fluxbox-generate_menu -is -ds \ - || die "menu generation failed" -eend $? - - -

-In this situation, providing a fake home directory is all that is needed. +Access violations most commonly occur during the install +phase. Sometimes it is possible to get around the sandbox violations +by tricking the build system into using a safer location. See +src_install and + for discussion.

-- cgit v1.2.3-65-gdbad