[mythtv] OpenTV logical channel numbers

Stuart Auchterlonie stuarta at squashedfrog.net
Mon Jan 13 10:54:52 UTC 2020


On 11/01/2020 10:47, Klaas de Waal wrote:
> Hi Stephen,
> 
>> Is there a safe way of running master on the same PC as I am using for
>> my production v30 system?
> 
> Not that I know of.

there is, it's just not trivial

You have to compile each version your self, and point the installation
directory to a non standard path. I use
- /usr/local/myth-git (for master)
- /usr/local/myth-prod (for prod)

then (at least the backend) needs a wrapper script like this
(and any other binaries you plan to run. eg setup, frontend)

~~~
#!/bin/sh

PATH=/usr/local/myth-prod/bin:$PATH
LD_LIBRARY_PATH=/usr/local/myth-prod/lib:$LD_LIBRARY_PATH
MYTHCONFDIR=$HOME/.mythtv-prod/
PYTHONPATH=/usr/local/myth-prod/lib/python2.7/site-packages

export PATH LD_LIBRARY_PATH MYTHCONFDIR PYTHONPATH

exec /usr/local/myth-prod/bin/mythbackend $@
~~~

which sets up all the relevant paths for the different bits.

The key one is MYTHCONFDIR, which points the configuration
to a different directory, thus keeping them separate.

The only other thing i've done, is on my dev instance, set
the backend port from :6544 -> :7544 so i can have both running
at the same time.


Regards
Stuart


More information about the mythtv-dev mailing list