From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 66FC2138222 for ; Wed, 4 May 2016 09:13:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DF7F3224153; Wed, 4 May 2016 09:13:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 83572224153 for ; Wed, 4 May 2016 09:13:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 67D6D3409D0 for ; Wed, 4 May 2016 09:13:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B799B95D for ; Wed, 4 May 2016 09:13:19 +0000 (UTC) From: "Göktürk Yüksek" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Göktürk Yüksek" Message-ID: <1462352900.658d52f0eafaa6c139aa1c6ba5c249afa2e2f4e1.gokturk@gentoo> Subject: [gentoo-commits] proj/devmanual:master commit in: appendices/common-problems/ X-VCS-Repository: proj/devmanual X-VCS-Files: appendices/common-problems/text.xml X-VCS-Directories: appendices/common-problems/ X-VCS-Committer: gokturk X-VCS-Committer-Name: Göktürk Yüksek X-VCS-Revision: 658d52f0eafaa6c139aa1c6ba5c249afa2e2f4e1 X-VCS-Branch: master Date: Wed, 4 May 2016 09:13:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: bda2c298-398c-4f88-8a76-a04be0d72618 X-Archives-Hash: 454d9f6f682448b366829ee4cb97763c commit: 658d52f0eafaa6c139aa1c6ba5c249afa2e2f4e1 Author: Göktürk Yüksek binghamton edu> AuthorDate: Wed May 4 08:53:44 2016 +0000 Commit: Göktürk Yüksek binghamton edu> CommitDate: Wed May 4 09:08:20 2016 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=658d52f0 appendices/common-problems: remove the misleading sandbox violation example 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 binghamton.edu> appendices/common-problems/text.xml | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) 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.