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:
boolkeyword collision (both arches).src/htsmsg.h:77has a struct field literally namedbool(int bool;) – fine under older C standards whereboolwas just a<stdbool.h>macro, but GCC 16’s default (-std=gnu23,__STDC_VERSION__ 202311L) makesboola real reserved keyword, so it’s now a hard syntax error. Fixed withexport CFLAGS="${CFLAGS:-} -std=gnu17"inbuild()rather than patching the struct field.- Dead vendored-source URL (both arches, only surfaced after fix
#1 let the build get further). The already-applied
update-vendored-libhdhomerun.patchbumpedMakefile.hdhomerun’sLIBHDHR/LIBHDHR_URLtolibhdhomerun_20180817.tgzfromdownload.silicondust.comback 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 (sha1sum052868bde3a5713c55b4d060b77e0bc3a0d891d6, matching whatMakefile.hdhomerunstill 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 ownsrc/mirror (see [[repo_src_mirror]]) rather than left depending on archive.org, and added as a realsource=entry so makepkg fetches/verifies it up front.Makefile.hdhomerundoes its ownwgetatbuild()time independent ofsource=though – redirected that viaTVHEADEND_FILE_CACHE(a hookMakefile.hdhomerun’sDOWNLOADmacro already supports: copies from$TVHEADEND_FILE_CACHE/<basename>instead of fetching over the network when set), pointed at$srcdirinbuild(). - The
FAILED TO DOWNLOAD (BUT THIS IS NOT A FATAL ERROR! DO NOT REPORT THAT!)line seen during troubleshooting is genuine, benign upstream text fromsupport/pcloud.py(an optional static-lib prefetch that needs Python’srequestsmodule, 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.