sys-apps/portage: install tmpfiles.d to create /var/tmp/portage

This ensures the directory is created at boot, and prevents other users
from creating it before emerge is run.

Bug: https://bugs.gentoo.org/853283
Closes: https://github.com/gentoo/gentoo/pull/27871
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
Mike Gilbert
2022-10-20 11:45:51 -04:00
parent 1c9869d4d2
commit d9eeba71d6
3 changed files with 3 additions and 2 deletions

View File

@@ -0,0 +1 @@
d /var/tmp/portage 0775 portage portage

View File

@@ -217,7 +217,7 @@ python_install_all() {
esetup.py "${targets[@]}"
fi
dotmpfiles "${FILESDIR}"/portage-ccache.conf
dotmpfiles "${FILESDIR}"/portage-{ccache,tmpdir}.conf
# Due to distutils/python-exec limitations
# these must be installed to /usr/bin.

View File

@@ -212,7 +212,7 @@ python_install_all() {
esetup.py "${targets[@]}"
fi
dotmpfiles "${FILESDIR}"/portage-ccache.conf
dotmpfiles "${FILESDIR}"/portage-{ccache,tmpdir}.conf
# Due to distutils/python-exec limitations
# these must be installed to /usr/bin.