Project

General

Profile

How to switch from apt-repository to own build?

Added by Al Bundy over 8 years ago

Because there are currently no builds for the raspberrypi pi and therefore I'd would like to switch to own builds but without loosing my settings.

So the build should use the same folders and users as the one from the apt-repository.

Has anyone tried yet to switch from apt to sources?


Replies (14)

RE: How to switch from apt-repository to own build? - Added by Mark Clarkstone over 8 years ago

The repo uses the same Autobuild.sh script IIRC so you can just install your own package over the existing one and it should just work..

RE: How to switch from apt-repository to own build? - Added by Jonathan Thomson over 8 years ago

Agreed. I have switched seamlessly between apt-provided package and self-built package with no problems whatsoever. Just set your ./configure options to use the same path as your distro version is installed and then run 'sudo make install' as your final command and restart tvheadend (if it was running).

RE: How to switch from apt-repository to own build? - Added by Al Bundy over 8 years ago

So I only have to build tvheadend with user hts and current installdir set on configure?

I don't have to remove or purge the apt-installation?
Does it thetetically work to update the "mixed" installation after the repository works again?

RE: How to switch from apt-repository to own build? - Added by Al Bundy over 8 years ago

Or is it better to build and install the apt-package?
https://tvheadend.org/boards/5/topics/15426

Do I have to configure something when building the package?
E.g. user or install-directory?

RE: How to switch from apt-repository to own build? - Added by Al Bundy over 8 years ago

I did it... :)

Latest nightly from apt-repository was installed (4.1xxx), running and working
Clone the git repo
run Autoinstall.sh (installed missing packages and rerun the script)
wait...
wait...
wait...
over two hours later the build was done
install the generated package

Check tvheadend about-site
Shows 4.2114 - looks good
watch some channels with tvhclient - looks also good. :-)

So it seems that the switch from apt-repository to own build works as expected but takes a very long time. :-)

RE: How to switch from apt-repository to own build? - Added by Jonathan Thomson over 8 years ago

The very first time you build TVH from source it compiles other static binaries too (such as ffmpeg) unless you specifically exclude them with the configure command. 2 hours is excessive though unless it was a Raspberry Pi or something - a full/clean build on my Xeon machine takes about 15 minutes - subsequent builds take less than 2 minutes.

Glad you sussed it though!

RE: How to switch from apt-repository to own build? - Added by Al Bundy over 8 years ago

I've compiled the package directly on my raspberry pi. ;-)

RE: How to switch from apt-repository to own build? - Added by Al Bundy over 8 years ago

Hmm - it seems that my superuser login does not work after the switch.

After entering my credentials the page asks again for username and password.

Any ideas or hints?
I'll restart the service after my recording is done...

RE: How to switch from apt-repository to own build? - Added by Al Bundy over 8 years ago

Login works now...
... without touching anything.

Mysterious...

RE: How to switch from apt-repository to own build? - Added by Al Bundy over 8 years ago

The login problem is back.
Any idea how to fix this?

RE: How to switch from apt-repository to own build? - Added by Graham H over 8 years ago

Have you tried tvheadend --firstrun ?

RE: How to switch from apt-repository to own build? - Added by Al Bundy over 8 years ago

Not yet - is this necessary?
I've updated only to latest git-version and don't want to lose my settings.

RE: How to switch from apt-repository to own build? - Added by Graham H over 8 years ago

Ignore that - just tried it and it doesn't do what I thought it did.

I've also just hacked /home/hts/.hts/tvheadend/superuser and changes there seem to stick - your username and password are in plain text. My version is 4.0.9 and this is on linux mint, config files seem to be different for evry distro so ymmv.

    (1-14/14)