]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Fix Alpine HDHomeRun crash by building statically with generic CPU flags copilot/fix-0fa2ccbf-3c09-4060-a06e-90995dfea026 1949/head
authorcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Sun, 5 Oct 2025 22:23:55 +0000 (22:23 +0000)
committercopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Sun, 5 Oct 2025 22:23:55 +0000 (22:23 +0000)
Co-authored-by: Flole998 <9951871+Flole998@users.noreply.github.com>
Containerfile.alpine
Makefile.hdhomerun

index 4dbae86835d026d43c0dada28a9fb9cc259e6e0e..04eaefd6c1d5f5e52274bf30e7bef9601f9038e9 100644 (file)
@@ -25,7 +25,6 @@ RUN apk add --no-cache \
         'git' \
         'gnu-libiconv-dev' \
         'libdvbcsa-dev' \
-        'libhdhomerun-dev' \
         'libva-dev' \
         'libvpx-dev' \
         'linux-headers' \
@@ -41,12 +40,11 @@ RUN apk add --no-cache \
         'zlib-dev' \
     && \
     git config --global --add safe.directory '/src/data/dvb-scan' && \
-    ./configure \
+    CFLAGS="-O2 -mtune=generic" ./configure \
                 --prefix='/usr/local' \
                 --disable-doc \
                 --disable-execinfo \
                 --disable-ffmpeg_static \
-                --disable-hdhomerun_static \
                 --disable-libfdkaac_static \
                 --disable-libmfx_static \
                 --disable-libopus_static \
@@ -92,7 +90,6 @@ RUN apk add --no-cache \
         'gnu-libiconv-libs' \
         'libcrypto3' \
         'libdvbcsa' \
-        'libhdhomerun-libs' \
         'libssl3' \
         'liburiparser' \
         'libva' \
index 21e58bfacc6d6c9cf918e321631fe4493b1f1627..aa7b3d0b5870565b34f622d8aeea69be027d14a5 100644 (file)
@@ -22,6 +22,9 @@ include $(DIR)/.config.mk
 unexport CFLAGS
 unexport LDFLAGS
 
+# Use generic CPU tuning to avoid illegal instructions in containers
+CFLAGS += -O2 -mtune=generic
+
 ifeq ($(CONFIG_PIE),yes)
 CFLAGS += -fPIE
 else