commit:     299f2240a097d9d2172d638262cfe3667de3f2e1
Author:     Z. Liu <zhixu.liu <AT> gmail <DOT> com>
AuthorDate: Tue Dec 30 17:02:54 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan 25 06:45:21 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=299f2240

media-tv/mythtv: die if mythtv's home is not a directory

Closes: https://bugs.gentoo.org/763132
Signed-off-by: Z. Liu <zhixu.liu <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/45213
Signed-off-by: Sam James <sam <AT> gentoo.org>

 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 e7d8bc15e154..70ef5e09cf92 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
 }

Reply via email to