From 0c2dc638468766e36db8318ed3cd1f4af9cf1365 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 3 Dec 2007 20:57:54 +0000 Subject: [PATCH] Bug #201090 - When portage creates a temp PORTAGE_BIN_PATH, put it inside PORTAGE_TMPDIR since, unlike /tmp, it can't be mounted with the "noexec" option. (trunk r8828) svn path=/main/branches/2.1.2/; revision=8829 --- pym/portage.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pym/portage.py b/pym/portage.py index 6582a3738..b23cf0472 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -9233,7 +9233,10 @@ class dblink: base_path_orig = os.path.dirname(settings["PORTAGE_BIN_PATH"]) from tempfile import mkdtemp import shutil - base_path_tmp = mkdtemp() + # Make the temp directory inside PORTAGE_TMPDIR since, unlike + # /tmp, it can't be mounted with the "noexec" option. + base_path_tmp = mkdtemp("", "._portage_reinstall_.", + settings["PORTAGE_TMPDIR"]) from portage_exec import atexit_register atexit_register(shutil.rmtree, base_path_tmp) dir_perms = 0755 -- 2.26.2