commit: 08f413c3871d931d1a3fd7ae68dd4c97cc5a308a
Author: Yuan Liao <liaoyuan <AT> gmail <DOT> com>
AuthorDate: Sat Dec 14 16:30:38 2024 +0000
Commit: Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Sat Dec 14 16:47:35 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=08f413c3
games-emulation/dosbox-x: Set XDG_CONFIG_HOME for tests
Since upstream commit 25f23a25c (Log loaded conf file, 2024-11-09),
DOSBox-X creates a default configuration file if an existing file does
not exist when its binary is launched, even when it is just to run self
tests. When Portage runs the tests, to ensure the tests can start
without an error or even a segmentation fault, the 'portage' user must
have permission to the path where DOSBox-X will create the configuration
file.
Signed-off-by: Yuan Liao <liaoyuan <AT> gmail.com>
games-emulation/dosbox-x/dosbox-x-9999.ebuild | 1 +
1 file changed, 1 insertion(+)
diff --git a/games-emulation/dosbox-x/dosbox-x-9999.ebuild
b/games-emulation/dosbox-x/dosbox-x-9999.ebuild
index 7372dc2d4..3dc3a128b 100644
--- a/games-emulation/dosbox-x/dosbox-x-9999.ebuild
+++ b/games-emulation/dosbox-x/dosbox-x-9999.ebuild
@@ -151,6 +151,7 @@ src_compile() {
}
src_test() {
+ local -x XDG_CONFIG_HOME="${T}" # Tests may create configuration files
set -- src/dosbox-x -tests
echo "${@}" >&2
"${@}" || die "Unit tests failed"