NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.64k stars 13.8k forks source link

MythTV was not compiled with HDHOMERUN support #212349

Closed acarrico closed 1 year ago

acarrico commented 1 year ago

MythTV was not compiled with HDHOMERUN support. To reproduce, start the server configured for an hdhomerun tuner. See this error in the systemd journal:

Jan 23 13:24:21 silver mythbackend[630799]: HDHOMERUN card configured on video device 1018A2D1,
Jan 23 13:24:21 silver mythbackend[630799]: but MythTV was not compiled with HDHOMERUN support.
Jan 23 13:24:21 silver mythbackend[630799]: Recompile MythTV with HDHOMERUN support or remove the card
Jan 23 13:24:21 silver mythbackend[630799]: from the configuration and restart MythTV.

This issue just requires adding libhdhomerun to the buildInputs. I have recompiled and tested with the libhdhomerun library, and it fixes the issue. I'll create a PR with the change, hopefully someone can pull it, @titanous is listed as the maintainer.

[root@silver:/etc/nixos]# nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.0.12, NixOS, 22.11 (Raccoon), 22.11.1777.cdead16a444`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.11.1`
 - channels(root): `"nixos-22.11, nixos-unstable, nixpkgs-unstable"`
 - channels(acarrico): `"nixos-22.05, nixos-21.05-21.05, nixos-22.05-22.05, nixos-unstable, nixpkgs-unstable"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
deftdawg commented 5 months ago

@acarrico fyi...

You'll most likely need to add the workaround from #223177 to actually get your tuner to detect:

networking.firewall.extraCommands = "iptables -I nixos-fw -p udp --sport 65001 -j nixos-fw-accept"; # libhdhomerun