Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️ Update alpine Docker tag to v3.21 #303

Merged
merged 3 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
],
"versioningTemplate": "loose",
"datasourceTemplate": "repology",
"depNameTemplate": "alpine_3_20/{{package}}"
"depNameTemplate": "alpine_3_21/{{package}}"
},
{
"customType": "regex",
Expand Down
45 changes: 24 additions & 21 deletions tvheadend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG BUILD_FROM

FROM alpine:3.20 AS builder
FROM alpine:3.21 AS builder
############## builder ##############

# package versions
Expand All @@ -23,41 +23,41 @@
apk add --no-cache \
jq=1.7.1-r0 \
curl=8.11.0-r2 \
bash=5.2.26-r0 \
bash=5.2.37-r0 \
autoconf=2.72-r0 \
automake=1.16.5-r2 \
automake=1.17-r0 \
bsd-compat-headers=0.7.2-r6 \
build-base=0.5-r3 \
cmake=3.29.3-r0 \
cmake=3.31.1-r0 \
coreutils=9.5-r1 \
dbus-dev=1.14.10-r1 \
ffmpeg4-dev=4.4.4-r7 \
file=5.45-r1 \
findutils=4.9.0-r5 \
dbus-dev=1.14.10-r4 \
ffmpeg4-dev=4.4.5-r0 \
file=5.46-r0 \
findutils=4.10.0-r0 \
gettext-dev=0.22.5-r0 \
git=2.45.2-r0 \
git=2.47.1-r0 \
gnu-libiconv-dev=1.17-r2 \
libdvbcsa-dev=1.1.0-r1 \
libgcrypt-dev=1.10.3-r0 \
libgcrypt-dev=1.10.3-r1 \
libhdhomerun-dev=20200225-r1 \
libtool=2.4.7-r3 \
libva-dev=2.21.0-r0 \
libvpx-dev=1.14.1-r0 \
libxml2-dev=2.12.7-r0 \
libxslt-dev=1.1.39-r1 \
linux-headers=6.6-r0 \
openssl-dev=3.3.2-r1 \
opus-dev=1.5.2-r0 \
libva-dev=2.22.0-r1 \
libvpx-dev=1.15.0-r0 \
libxml2-dev=2.13.4-r3 \
libxslt-dev=1.1.42-r1 \
linux-headers=6.6-r1 \
openssl-dev=3.3.2-r4 \
opus-dev=1.5.2-r1 \
patch=2.7.6-r10 \
pcre2-dev=10.43-r0 \
pkgconf=2.2.0-r0 \
pkgconf=2.3.0-r0 \
pngquant=3.0.3-r0 \
python3=3.12.8-r1 \
sdl2-dev=2.28.5-r1 \
sdl2-dev=2.30.9-r0 \
uriparser-dev=0.9.8-r0 \
x264-dev=0.164_git20231001-r0 \
x264-dev=0.164.3108-r0 \
x265-dev=3.6-r0 \
zlib-dev=1.3.1-r1
zlib-dev=1.3.1-r2

RUN \
echo "**** remove musl iconv.h and replace with gnu-iconv.h ****" && \
Expand Down Expand Up @@ -127,6 +127,9 @@
/tmp/argtable --strip-components=1 && \
cp /tmp/argtable2_config/config.* /tmp/argtable && \
cd /tmp/argtable && \
cp /tmp/argtable2_config/*.patch /tmp/argtable && \
patch -p1 < fix-implicit-function-declaration.patch && \
patch -p1 < fix-undeclared-library-function.patch && \
./configure \
--prefix=/usr && \
make -j 2 && \
Expand Down Expand Up @@ -157,7 +160,7 @@
####### runtime ###########

# hadolint ignore=DL3006
FROM ${BUILD_FROM}

Check warning on line 163 in tvheadend/Dockerfile

View workflow job for this annotation

GitHub Actions / workflows / Build aarch64

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG ${BUILD_FROM} results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

Check warning on line 163 in tvheadend/Dockerfile

View workflow job for this annotation

GitHub Actions / workflows / Build amd64

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG ${BUILD_FROM} results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

Check warning on line 163 in tvheadend/Dockerfile

View workflow job for this annotation

GitHub Actions / workflows / Build armv7

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG ${BUILD_FROM} results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

Check warning on line 163 in tvheadend/Dockerfile

View workflow job for this annotation

GitHub Actions / workflows / Build aarch64

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG ${BUILD_FROM} results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

Check warning on line 163 in tvheadend/Dockerfile

View workflow job for this annotation

GitHub Actions / workflows / Build amd64

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG ${BUILD_FROM} results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

Check warning on line 163 in tvheadend/Dockerfile

View workflow job for this annotation

GitHub Actions / workflows / Build armv7

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG ${BUILD_FROM} results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

ARG PICONS_RELEASE="2024-12-03--23-25-49"

Expand Down
16 changes: 16 additions & 0 deletions tvheadend/argtable2_config/fix-implicit-function-declaration.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
From febb2928d1e72c7adc914b2ef8e0611e1a5ea3fd Mon Sep 17 00:00:00 2001
From: Sam James <[email protected]>
Date: Thu, 6 Oct 2022 18:10:52 +0100
Subject: [PATCH] Fix implicit function declaration

Bug: https://bugs.gentoo.org/871231
--- a/src/arg_int.c
+++ b/src/arg_int.c
@@ -29,6 +29,7 @@ USA.
/* #endif */

#include "argtable2.h"
+#include <ctype.h>
#include <limits.h>

/* local error codes */
27 changes: 27 additions & 0 deletions tvheadend/argtable2_config/fix-undeclared-library-function.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
From 519609d844f1e5bbf37407de8e43fa2d2be03262 Mon Sep 17 00:00:00 2001
From: Brahmajit Das <[email protected]>
Date: Sun, 7 May 2023 00:03:40 +0530
Subject: [PATCH] Fix undeclared library function strcmp

Bug: https://bugs.gentoo.org/885609
--- a/tests/fntests.c
+++ b/tests/fntests.c
@@ -1,5 +1,6 @@
#include "../src/argtable2.h"
#include <assert.h>
+#include <string.h>

/* for memory leak debugging */
#ifdef DMALLOC
--- a/tests/test_file.c
+++ b/tests/test_file.c
@@ -21,6 +21,7 @@ USA.

#include "../src/argtable2.h"
#include <stdlib.h>
+#include <string.h>

/* for memory leak debugging */
#ifdef DMALLOC
--
2.40.1
Loading