Skip to content

Commit

Permalink
update to Alpine 3.19
Browse files Browse the repository at this point in the history
check out utfcpp (taglib2 dependency) from git, because Alpine 3.19
packages incompatible utfcpp 4.0, resulting in build failure
  • Loading branch information
lomereiter committed May 18, 2024
1 parent 14c34c6 commit dfdff8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.18 AS builder-taglib
FROM alpine:3.19 AS builder-taglib
WORKDIR /tmp
COPY alpine/taglib/APKBUILD .
RUN apk update && \
Expand Down Expand Up @@ -26,7 +26,7 @@ RUN go mod download
COPY . .
RUN GOOS=linux go build -o gonic cmd/gonic/gonic.go

FROM alpine:3.18
FROM alpine:3.19
LABEL org.opencontainers.image.source https://github.com/sentriz/gonic
RUN apk add -U --no-cache \
ffmpeg \
Expand Down
10 changes: 6 additions & 4 deletions alpine/taglib/APKBUILD
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Contributor: Leo <[email protected]>
# Maintainer: Natanael Copa <[email protected]>
pkgname=taglib2
pkgver=2.0
pkgver=2.0.1
pkgrel=0
pkgdesc="Library for reading and editing metadata of several popular audio formats"
url="https://taglib.github.io/"
arch="all"
license="LGPL-2.1-only OR MPL-1.1"
makedepends="zlib-dev utfcpp cmake samurai"
makedepends="zlib-dev git cmake samurai"
checkdepends="cppunit-dev"
subpackages="
$pkgname-dev
Expand All @@ -23,14 +23,16 @@ builddir="$srcdir/taglib-$pkgver"
# - CVE-2018-11439

build() {
git clone --depth=1 --branch v3.2.5 https://github.com/nemtrif/utfcpp.git 3rdparty/utfcpp

CFLAGS="$CFLAGS -flto=auto" \
CXXFLAGS="$CXXFLAGS -flto=auto" \
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DWITH_ZLIB=ON \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_EXAMPLES=ON \
-DBUILD_EXAMPLES=OFF \
-DBUILD_TESTING="$(want_check && echo ON || echo OFF)" \
-DVISIBILITY_HIDDEN=ON
cmake --build build
Expand All @@ -51,5 +53,5 @@ _lib() {
}

sha512sums="
099d02b2eab033f5702a8cb03e70752d7523c6f8c2f3eebdd0bcd939eafbdca3f2a6c82452983904b5822cfa45f2707ed866c3419508df9d43bf5c0b3a476f6c taglib-2.0.tar.gz
25ee89293a96d7f8dca6276f822bdaef01fd98503b78c20ffeac8e1d9821de7273a5127146aa798d304c6a995cb2b7229a205aff1cc261b5d4fa9e499dda0439 taglib-2.0.1.tar.gz
"

0 comments on commit dfdff8e

Please sign in to comment.