Skip to content

Commit 06f8534

Browse files
committed
kodi: fix installation on Bookworm
Since Bullseye, `kodi` should be installed from the RPT repos, since it's build with the necessary patches/optimization directly by the RP folks. However, the version in the repos don't always overrides the version present in the upstream Debian/Raspbian repositories [1] and installation fails. Added a workaround to always prefer the Kodi packages originating from archive.raspberrypi.com/archive.raspberrypi.org. I think Bullseye and previous had 'archive.raspberrypi.org' for RP repostories, while Bookworm has switched to 'archive.raspberrypi.com', so we can't use the URL for pinning. Added a pin based on the 'l'(Location ?) field of the release from the repository. [1] raspberrypi/bookworm-feedback#144
1 parent 06e2ce9 commit 06f8534

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scriptmodules/ports/kodi.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ function depends_kodi() {
3434
apt-key del 4096R/BAA567BB >/dev/null
3535
fi
3636
fi
37+
if [[ "$__os_debian_ver" -gt 10 ]]; then
38+
# install Kodi from the RPI repos directly
39+
# make sure we're not installing Debian/Raspbian version by pinning the origin of the packages
40+
local apt_pin_file="/etc/apt/preferences.d/01-rpie-pin-kodi"
41+
if [[ ! -f "$apt_pin_file" ]]; then
42+
echo -e "Package: kodi*\nPin: release o=Raspberry Pi Foundation\nPin-Priority: 900" > "$apt_pin_file"
43+
fi
44+
fi
3745
# ubuntu
3846
elif [[ -n "$__os_ubuntu_ver" ]] && isPlatform "x86"; then
3947
if [[ "$md_mode" == "install" ]]; then

0 commit comments

Comments
 (0)