How to build mythtv-light v33 on Bookworm version of RPI 64bit OS

For discussion of topics specific to MythTV on Raspberry Pi devices
Post Reply
User avatar
jfabernathy
Senior
Posts: 612
Joined: Wed Feb 18, 2015 2:37 pm
Location: Raleigh, NC
United States of America

How to build mythtv-light v33 on Bookworm version of RPI 64bit OS

Post by jfabernathy »

Using the Raspberry Pi Imager 1.7.5 or newer, select the Bookworm 64bit version. Flash the image directly to the SATA SSD using the adapter.

I found that the default Locale was set to ISO and that needs to be changed to UTF-8 for the ansible script to work correctly. Use the GUI version of the Raspberry PI Configuration app to change it.

We need to setup the dependencies and clone the repositories. You can get the background by looking at some MythTV wiki pages, but I'll give the instructions to follow from those pages.
https://www.mythtv.org/wiki/Build_from_Source
https://github.com/MythTV/packaging/tre ... /deb-light
https://github.com/MythTV/ansible

Get the dependencies:

Code: Select all

sudo apt install git ansible
git clone https://github.com/MythTV/ansible
cd ansible
./mythtv.yml --limit=localhost
cd
Clone the MythTV repository:

Code: Select all

mkdir ~/build
cd build
git clone https://github.com/MythTV/mythtv.git mythtv
cd mythtv
git checkout fixes/33
Clone the MythTV packaging repository:

Code: Select all

cd ~/build
git clone https://github.com/MythTV/packaging.git
cd packaging
git checkout fixes/33
Bookworm requires us to change a dependence in the build process. In

Code: Select all

~/build/packaging/deb-light/package.sh
Find using search "libfftw3-3" and change it to "libfftw3-bin"

Code: Select all

cd ~/build/mythtv/mythtv
../../packaging/deb-light/build_package.sh
Press enter to first question about 'Please supply destination....

Go get a beer while it compiles. It could take a while (1 hour 56 minutes on RPI4 overclocked to 2.0Ghz), so maybe several beers.

Code: Select all

cd ../..
The mythtv-light_33.1-12-gc4b7e4c433-0_arm64_bullseye.deb in that directory may be a different version but the name should be similar.

Code: Select all

sudo apt install ./mythtv-light_33.1-12-gc4b7e4c433-0_arm64_bullseye.deb
I got a number of warnings and a permission issue that I don't understand but it didn't cause mythtv to not install.

I've found that you can avoid any install warnings by doing the following. After the .deb file is built you can perform these steps:

Code: Select all

sudo mkdir /usr/share/my_mythtv_repo
build this script in the directory with the .deb files

Code: Select all

sudo nano build_my_mythtv_repo.sh
Enter this text into the editor.

Code: Select all

#! /bin/bash
rm /usr/share/my_mythtv_repo/*.
cp ./*.deb /usr/share/my_mythtv_repo
cd /usr/share/my_mythtv_repo
dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
Make the script executable and run it from the directory with the .deb files, i.e.

Code: Select all

cd ~/build
sudo ./build_my_mythtv_repo.sh
Now that the local repo is built you need to add it to your apt sources.
Create /etc/apt/sources.list.d/my_mythtv_repo.list

Code: Select all

deb [trusted=yes] file:/usr/share/my_mythtv_repo ./
The run:

Code: Select all

sudo apt update
sudo apt install mythtv-light
At this point the MythTV software is installed and if you only want a frontend then you are done.
User avatar
monkeypet
Junior
Posts: 54
Joined: Tue Feb 11, 2014 7:18 pm
United States of America

Re: How to build mythtv-light v33 on Bookworm version of RPI 64bit OS

Post by monkeypet »

Hi, can you explain to me what mythtv-light is? I read the wiki https://www.mythtv.org/wiki/MythTV_Light and it says, "MythTV Light is a simplified package for debian based systems. It installs everything in one package, unlike the normal Ubuntu install which has many interdependent packages".

What are the advantages? Is it just another way to package up mythtv as one bundle, but everything else is the same? Thanks. Sorry for the extremely basic question.
User avatar
jfabernathy
Senior
Posts: 612
Joined: Wed Feb 18, 2015 2:37 pm
Location: Raleigh, NC
United States of America

Re: How to build mythtv-light v33 on Bookworm version of RPI 64bit OS

Post by jfabernathy »

monkeypet wrote:
Sun Dec 10, 2023 3:42 am
Hi, can you explain to me what mythtv-light is? I read the wiki https://www.mythtv.org/wiki/MythTV_Light and it says, "MythTV Light is a simplified package for debian based systems. It installs everything in one package, unlike the normal Ubuntu install which has many interdependent packages".

What are the advantages? Is it just another way to package up mythtv as one bundle, but everything else is the same? Thanks. Sorry for the extremely basic question.
I started using mythtv-light only for RPI4 because someone else advised it, so I didn't really look into advantages, etc. It does provide all the programs that I use so I don't think anything is missing. I like that I can host the .deb created by mythtv-light on my NAS and just install it on any frontend around the house without having to do anything but sudo apt install. I can remove is using apt as well.

It's nice to just download it from the https://dl.orangedox.com/pCBmBm/1bO1JOe ... H3wcNDue9Z if you don't need the absolute latest version

Also by packaging it you avoid the recently introduced problems by PEP668.
keef256
Junior
Posts: 42
Joined: Fri Apr 22, 2022 3:38 pm
Great Britain

Re: How to build mythtv-light v33 on Bookworm version of RPI 64bit OS

Post by keef256 »

What do I need to do now to install a backend?
User avatar
jfabernathy
Senior
Posts: 612
Joined: Wed Feb 18, 2015 2:37 pm
Location: Raleigh, NC
United States of America

Re: How to build mythtv-light v33 on Bookworm version of RPI 64bit OS

Post by jfabernathy »

keef256 wrote:
Thu Feb 08, 2024 10:43 am
What do I need to do now to install a backend?
There's a matching install topic for this build topic.

viewtopic.php?f=46&t=5528
Post Reply