From 299f2240a097d9d2172d638262cfe3667de3f2e1 Mon Sep 17 00:00:00 2001 From: "Z. Liu" Date: Wed, 31 Dec 2025 01:02:54 +0800 Subject: [PATCH] media-tv/mythtv: die if mythtv's home is not a directory Closes: https://bugs.gentoo.org/763132 Signed-off-by: Z. Liu Part-of: https://github.com/gentoo/gentoo/pull/45213 Signed-off-by: Sam James --- media-tv/mythtv/mythtv-35.0_p20250723.ebuild | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/media-tv/mythtv/mythtv-35.0_p20250723.ebuild b/media-tv/mythtv/mythtv-35.0_p20250723.ebuild index e7d8bc15e1547..70ef5e09cf92a 100644 --- a/media-tv/mythtv/mythtv-35.0_p20250723.ebuild +++ b/media-tv/mythtv/mythtv-35.0_p20250723.ebuild @@ -149,6 +149,17 @@ python_check_deps() { python_has_version "dev-python/requests-cache[${PYTHON_USEDEP}]" } +pkg_pretend() { + if use autostart; then + local HOME_MYTHTV=$(egethome mythtv) + if [[ ! -z "${HOME_MYTHTV}" && ! -d "${HOME_MYTHTV}" ]] ; then + eerror "Home path '${HOME_MYTHTV}' for user 'mythtv' exists" \ + "but is not a directory" + die + fi + fi +} + pkg_setup() { use python && python-any-r1_pkg_setup }