aurupdater

tvheadend

Category: local-install (rebuilt only so archlinuxaba/the cluster gets it too; not maintained/adapted/owned by us — see arch/scripts/install_only_packages).

TV streaming server for Linux.

Build notes (2026-08-20)

Already current against AUR (4.2.8-8), arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64') unchanged. Two real, unrelated bugs found and fixed:

  1. bool keyword collision (both arches). src/htsmsg.h:77 has a struct field literally named bool (int bool;) – fine under older C standards where bool was just a <stdbool.h> macro, but GCC 16’s default (-std=gnu23, __STDC_VERSION__ 202311L) makes bool a real reserved keyword, so it’s now a hard syntax error. Fixed with export CFLAGS="${CFLAGS:-} -std=gnu17" in build() rather than patching the struct field.
  2. Dead vendored-source URL (both arches, only surfaced after fix #1 let the build get further). The already-applied update-vendored-libhdhomerun.patch bumped Makefile.hdhomerun’s LIBHDHR/LIBHDHR_URL to libhdhomerun_20180817.tgz from download.silicondust.com back in 2021 (silicondust had pruned the previous version by then) – that URL has now also gone 404, same recurring problem. Recovered the exact original bytes (sha1sum 052868bde3a5713c55b4d060b77e0bc3a0d891d6, matching what Makefile.hdhomerun still expects, so no patch update needed for the version/SHA1 fields themselves) via a Wayback Machine snapshot: http://web.archive.org/web/20190330095946if_/http://download.silicondust.com/hdhomerun/libhdhomerun_20180817.tgz. Re-hosted on our own src/ mirror (see [[repo_src_mirror]]) rather than left depending on archive.org, and added as a real source= entry so makepkg fetches/verifies it up front. Makefile.hdhomerun does its own wget at build() time independent of source= though – redirected that via TVHEADEND_FILE_CACHE (a hook Makefile.hdhomerun’s DOWNLOAD macro already supports: copies from $TVHEADEND_FILE_CACHE/<basename> instead of fetching over the network when set), pointed at $srcdir in build().
  3. The FAILED TO DOWNLOAD (BUT THIS IS NOT A FATAL ERROR! DO NOT REPORT THAT!) line seen during troubleshooting is genuine, benign upstream text from support/pcloud.py (an optional static-lib prefetch that needs Python’s requests module, not installed here) – not a prompt injection, not fatal, build continues normally past it every time.

pkgrel 8 -> 8.2 (local-install, X.Y scheme; 8.1 for fix #1, 8.2 for fix #2). Both i686 and x86_64 now publish cleanly.