app-backup/duplicity: workaround too-long PORTAGE_TMPDIR

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2025-12-15 03:06:25 +00:00
parent 5277adbdc2
commit 51998da7a6
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 22 additions and 0 deletions

View File

@ -66,6 +66,17 @@ PATCHES=(
distutils_enable_tests pytest
python_test() {
# The default portage tempdir is too long for AF_UNIX sockets
local -x TMPDIR DOCKER_GNUPGHOME
TMPDIR="$(mktemp -d --tmpdir=/tmp ${PF}-XXX || die)"
# testing/__init__.py doesn't respect GNUPGHOME
DOCKER_GNUPGHOME="${TMPDIR}/gnupg"
cp -ar "${S}"/testing/gnupg "${DOCKER_GNUPGHOME}"/ || die
epytest
}
pkg_postinst() {
elog "Duplicity has many optional dependencies to support various backends."
elog "Currently it's up to you to install them as necessary."

View File

@ -66,6 +66,17 @@ PATCHES=(
distutils_enable_tests pytest
python_test() {
# The default portage tempdir is too long for AF_UNIX sockets
local -x TMPDIR DOCKER_GNUPGHOME
TMPDIR="$(mktemp -d --tmpdir=/tmp ${PF}-XXX || die)"
# testing/__init__.py doesn't respect GNUPGHOME
DOCKER_GNUPGHOME="${TMPDIR}/gnupg"
cp -ar "${S}"/testing/gnupg "${DOCKER_GNUPGHOME}"/ || die
epytest
}
pkg_postinst() {
elog "Duplicity has many optional dependencies to support various backends."
elog "Currently it's up to you to install them as necessary."