mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
app-backup/duplicity: workaround too-long PORTAGE_TMPDIR
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
5277adbdc2
commit
51998da7a6
@ -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."
|
||||
|
||||
@ -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."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user