Fix ICU dependency for Debuntu

This commit is contained in:
Joshua M. Boniface
2025-08-30 11:21:09 -04:00
parent 50c398a503
commit 729990ac33
2 changed files with 7 additions and 2 deletions

2
debian/control vendored
View File

@@ -16,7 +16,7 @@ Description: Jellyfin is the Free Software Media System.
Package: jellyfin-server
Architecture: any
Depends: libfontconfig1, libjemalloc2, adduser
Depends: libfontconfig1, libjemalloc2, adduser, ${icu:Depends}
Recommends: jellyfin-web, sudo, jellyfin-ffmpeg7 | ffmpeg
Description: Jellyfin is the Free Software Media System.
This package provides the Jellyfin server backend and API.

7
debian/rules vendored
View File

@@ -34,6 +34,11 @@ export COMPlus_EnableDiagnostics=0
%:
dh $@
override_dh_gencontrol:
ICU_MAJOR="$$(apt-cache policy libicu-dev 2>/dev/null \
| sed -n 's/ Candidate: \([0-9]\+\)\..*/\1/p' | head -n1)" && \
dh_gencontrol -- -Vicu:Depends="libicu$$ICU_MAJOR"
override_dh_auto_test:
override_dh_clistrip:
@@ -61,4 +66,4 @@ override_dh_installinit:
dh_installinit --name=jellyfin
override_dh_shdeplibs:
dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
dh_shlibdeps -- --ignore-missing-info