Project

General

Profile

Building on openSuSE

Added by Anders Gustafsson almost 2 years ago

In this case Leap 15.x, but should be OK for other versions.

You might need to install stuff, like

zypper install libdvbcsa-devel

also these if you do not have them:
git
make
gcc
dvbv-devel
gettext-toools
libopenssl-devel
libavahi-devel
liburiparser-devel

Then make a folder in a place of your choice. I selected tvh43 under "devel"

Step into that folder, cd tvh43

git clone https://github.com/tvheadend/tvheadend.git

./configure --enable-bundle --disable-dvbscan --disable-hdhomerun_static --disable-libopus

make

Then, do test that it works if upgrading and note that upgrades, upgrade the config irreversibely. Make a backup of the .hts folder
Note that an upgrade will do that for you under .hts/tvheadend/backup
Start tvheadend interactively:
cd build.linux
./tvheadend -u youruser -g yourgroup

Where youruser is the user you are running as (.hts ends up under /home/youruser) and group usually is "video"

If you find this build to your liking, you can

make install

To start as a service, create a file named tvheadend.service that contains:
----

Description=tvheadend
Wants=network.target
After=network.target
# Whats oscam?
#Wants=oscam.service
#After=oscam.service
# Wants: would like to have, After: start after, Requires: needs

[Service]
User=root
# tvheadend nees root priv to create pid file and switch to user hts.
#Group=
Type=forking
PIDFile=/run/tvheadend.pid
ExecStart=/usr/bin/tvheadend -f -l /var/log/tvh.log -p /run/tvheadend.pid -u youruser -g yourgroup
ExecStop=/usr/bin/rm /run/tvheadend.pid
Restart=always
RestartSec=5
TimeoutStopSec=5

[Install]
WantedBy=multi-user.target

[Service]
Type=forking

-----
Put in /usr/lib/systemd/system

Then service tvheadend start should do it


Replies (4)

RE: Building on openSuSE - Added by Jonas Lang almost 2 years ago

That’s an informative write up. Try formatting the commands with the html option so it stands out for any user following your instructions. Helps with anyone using the copy/paste method too.

RE: Building on openSuSE - Added by Anders Gustafsson almost 2 years ago

Yes. It was a copypaste from my notes. I have edited now. Funny, as I was compiling 4.3 (it has been over 5 years) I ran into a few issues, googled and ended up in threads where I have had the same issue in the past :)

RE: Building on openSuSE - Added by Jonas Lang almost 2 years ago

That’s perfect and easy for anyone to follow. It’s amazing how your own instructions end up acting as a personal reference document too. Everything located in one post.

RE: Building on openSuSE - Added by Anders Gustafsson almost 2 years ago

Well. I have been helped myself, many times, by posts or blogs from other people. So whenever I have the time, I try to give back, be it here, on Ifixit or tehe other many forums i Frequent.

If it runs stable now, then I will try to put back the Astrometa stick that caused the initial problems. I also have two other sticks en-route, different type.

    (1-4/4)