[UPDATED]How to build mythtv-light (v34) for RPI OS 64bit Bookworm

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

[UPDATED]How to build mythtv-light (v34) for RPI OS 64bit Bookworm

Post by jfabernathy »

UPDATED: I've update this post since you don't build mythtv from master now that fixes/34 is the default for v34.

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/34
Clone the MythTV packaging repository:

Code: Select all

cd ~/build
git clone https://github.com/MythTV/packaging.git
cd packaging
git checkout fixes/34
Now build the .deb file

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_34.0-30-gc376437559-0_arm64_bookworm.deb in that directory may be a different version but the name should be similar.

Code: Select all

sudo apt install ./mythtv-light_34.0-30-gc376437559-0_arm64_bookworm.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
dochawk
Junior
Posts: 26
Joined: Mon Jan 17, 2022 8:32 pm
United States of America

Re: [UPDATED]How to build mythtv-light (v34) for RPI OS 64bit Bookworm

Post by dochawk »

I got as far as "./mythtv.yml --limit=localhost", at which point I am prompted with:
root@mythtvback:/mnt/ssd2t/ansible# ./mythtv.yml --limit=localhost
BECOME password:
I suppose my lack of familiarity with git is showing, but I have absolutely no idea what this means!

I have a 2tb ssd mounted at /mnt/ssd2t, if this matters.

thanks
User avatar
jfabernathy
Senior
Posts: 612
Joined: Wed Feb 18, 2015 2:37 pm
Location: Raleigh, NC
United States of America

Re: [UPDATED]How to build mythtv-light (v34) for RPI OS 64bit Bookworm

Post by jfabernathy »

what happens when you type in your password as requested?I never run anything as root. You need to be your user
User avatar
bill6502
Developer
Posts: 2439
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: [UPDATED]How to build mythtv-light (v34) for RPI OS 64bit Bookworm

Post by bill6502 »

Jim's right. The "BECOME password:" prompt is asking for the password used
for your user to become the root user. It's the same password you'd use if you
typed: sudo <some command name>, for example.
User avatar
monkeypet
Junior
Posts: 54
Joined: Tue Feb 11, 2014 7:18 pm
United States of America

Re: [UPDATED]How to build mythtv-light (v34) for RPI OS 64bit Bookworm

Post by monkeypet »

For those experiencing weird gradient issues on menus and playback on mythfrontend, I use this workaround:

https://github.com/MythTV/mythtv/issues/855
User avatar
jfabernathy
Senior
Posts: 612
Joined: Wed Feb 18, 2015 2:37 pm
Location: Raleigh, NC
United States of America

Re: [UPDATED]How to build mythtv-light (v34) for RPI OS 64bit Bookworm

Post by jfabernathy »

If you are running Wayland, I run mythfrontend with the --platform xcb command line option and that fixes it specific to mythfrontend.
Post Reply