Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 560142 - media-tv/mythtv-0.27.5_p20150904: init.d script has typo with mythtv user
Summary: media-tv/mythtv-0.27.5_p20150904: init.d script has typo with mythtv user
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: MythTV Maintainers
URL:
Whiteboard:
Keywords:
: 560144 560584 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-09-10 14:53 UTC by Mark Keisler
Modified: 2015-12-14 00:00 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,16.55 KB, text/plain)
2015-09-10 14:57 UTC, Mark Keisler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Keisler 2015-09-10 14:53:56 UTC
mythbackend.init-r1 in the ebuild has a typo of mythtv as mythv:
--- files/mythbackend.init-r1   2015-09-08 14:01:02.000000000 -0500
+++ mythbackend-init-fixed    2015-09-10 09:36:04.491987898 -0500
@@ -38,8 +38,8 @@

        # Work around any strange permissions that may be on these files.
        [ "x${MYTHBACKEND_LOGGING}" = "xfiles" ] && \
-               checkpath --dir --owner mythv:video --mode 0664 /var/log/mythtv
-       checkpath --dir --owner mythv:video --mode 0664 /home/mythtv
+               checkpath --directory --owner mythtv:video --mode 0664 /var/log/mythtv
+       checkpath --directory --owner mythtv:video --mode 0664 /home/mythtv



Reproducible: Always

Steps to Reproduce:
1./etc/init.d/mythbackend start
2.
3.
Actual Results:  
 * Caching service dependencies ...                                                                                                        [ ok ] * checkpath: owner `mythv:video' not found
 * checkpath: owner `mythv:video' not found
 * Starting MythTV Backend ...                                                                                                             [ ok ]

and it doesn't actually start

Expected Results:  
no errors and a running mythbackend
Comment 1 Mark Keisler 2015-09-10 14:57:39 UTC
Created attachment 411550 [details]
emerge --info
Comment 2 Ben Kohler gentoo-dev 2015-09-10 15:35:16 UTC
*** Bug 560144 has been marked as a duplicate of this bug. ***
Comment 3 Neil Bothwick 2015-09-10 15:47:39 UTC
The checkpath message is a red herring, the script proceeds and fails later, see the linked bug.
Comment 4 Mark Keisler 2015-09-10 20:00:57 UTC
(In reply to Neil Bothwick from comment #3)
> The checkpath message is a red herring, the script proceeds and fails later,
> see the linked bug.

well, the checkpath command is also a bug.  There are multiple issues.
Comment 5 Neil Bothwick 2015-09-11 11:06:18 UTC
Indeed it is, I posted a patch in https://bugs.gentoo.org/show_bug.cgi?id=560144 that fixes both issues. We both reported the bug at the same time, hence the duplicate.
Comment 6 Mark Keisler 2015-09-13 17:54:38 UTC
The init script also removed the execute bits from ~mythtv/ and /var/log/mythtv/ which hosed me up after going back to 0.27.5_p20150627
Comment 7 Doug Goldstein (RETIRED) gentoo-dev 2015-09-14 14:16:46 UTC
*** Bug 560144 has been marked as a duplicate of this bug. ***
Comment 8 Doug Goldstein (RETIRED) gentoo-dev 2015-09-14 14:20:46 UTC
Thanks for the report. Fixed in http://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67fb506813d922889a077e6bd04ebd9277234a1a
Comment 9 Neil Bothwick 2015-09-15 15:25:36 UTC
The problem still exists with media-tv/mythtv-0.27.5_p20150904-r1. The init scriot uses --directory instead --dir but the user is still misspelled. Moving the --user option to before the -- makes mythbackend announce that it is failing to start instead of doing so silently. There's nothing in the logs to say why it didn't start.
Comment 10 Neil Bothwick 2015-09-15 15:30:20 UTC
It seem the problem may be due to defining the same pidfile twice.
Comment 11 Doug Goldstein (RETIRED) gentoo-dev 2015-09-15 18:38:58 UTC
(In reply to Neil Bothwick from comment #10)
> It seem the problem may be due to defining the same pidfile twice.

Its not. start-stop-daemon is not creating it. Its just watching for it.
Comment 12 Neil Bothwick 2015-09-15 20:08:03 UTC
Well, removing the second --pidfile called resulted in a successful start, so something's still not right.
Comment 13 Ben Kohler gentoo-dev 2015-09-15 22:44:15 UTC
(In reply to Doug Goldstein from comment #8)
> Thanks for the report. Fixed in
> http://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=67fb506813d922889a077e6bd04ebd9277234a1a

This commit still shows "mythv" and not "mythtv", so while some bug may have been fixed, the one mentioned in this bug's summary has not.
Comment 14 Ben Kohler gentoo-dev 2015-09-15 22:46:19 UTC
*** Bug 560584 has been marked as a duplicate of this bug. ***
Comment 15 Doug Goldstein (RETIRED) gentoo-dev 2015-09-16 15:36:30 UTC
Thanks for the report. Fixed in http://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bab02093cfbe6ebcd22087520082604ae822379
Comment 16 Doug Goldstein (RETIRED) gentoo-dev 2015-09-16 15:36:52 UTC
I didn't do a bump but try the latest version. I can do a bump once everyone is happy.
Comment 17 Wilson M. Michaels 2015-09-16 18:00:26 UTC
I tested the patch.  It works :)  Thank you.
Comment 18 Kristopher 2015-12-14 00:00:05 UTC
Why is /home/mythtv set to 775 in the init script?  This prevents ssh from ever working when connecting to the mythtv user.  Doesn't 755 work just as well here?