Package Details: navidrome 0.47.5-1

Git Clone URL: https://aur.archlinux.org/navidrome.git (read-only, click to copy)
Package Base: navidrome
Description: Modern Music Server and Streamer compatible with Subsonic/Airsonic
Upstream URL: https://www.navidrome.org
Licenses: GPL3
Submitter: xenrox
Maintainer: xenrox
Last Packager: xenrox
Votes: 7
Popularity: 0.71
First Submitted: 2021-08-18 11:20 (UTC)
Last Updated: 2022-01-23 23:54 (UTC)

Latest Comments

jhenson commented on 2022-09-04 21:32 (UTC) (edited on 2022-09-04 21:40 (UTC) by jhenson)

This package fails to build on the latest version of go. It requires -buildvcs=false to be added to the go build command or else it fails.

The service fails to run due to some syscalls being blocked. I suspect this is due to some of the new memory management functionality added in a recent go version. I was only able to get the service to run by removing @resources from the SystemCallFilter block list.

Also, it appears that nodejs is not needed at runtime and can be moved to the makedepends list.

Here's a patch that applies all of these updates:

diff --git a/PKGBUILD b/PKGBUILD
index cef7656..922afde 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,13 +2,13 @@

 pkgname=navidrome
 pkgver=0.47.5
-pkgrel=1
+pkgrel=2
 pkgdesc='Modern Music Server and Streamer compatible with Subsonic/Airsonic'
 arch=('x86_64')
 url='https://www.navidrome.org'
 license=('GPL3')
-depends=('ffmpeg' 'nodejs>=16' 'taglib')
-makedepends=('git' 'go' 'npm')
+depends=('ffmpeg' 'taglib')
+makedepends=('git' 'go' 'npm' 'nodejs>=16')
 source=(
     "$pkgname-$pkgver.tar.gz::https://github.com/navidrome/navidrome/archive/refs/tags/v$pkgver.tar.gz"
     "navidrome.service"
@@ -16,7 +16,7 @@ source=(
     "sysusers.conf"
 )
 sha256sums=('68f9f013d8e17a769770cdd7a1f4d9fc279b3d5e83418bbb54018781de96ab76'
-            '790cdabdffba7163a92e22572f4a0810081c9617338b8c28d3eb8d0a7edb8ae1'
+            '1a155be78b109b5e6d18eaae5c35f1ff0f084d48e44ab5cf8e0a87c9d6bcd9fc'
             '23e62c707f3518f917e578979407cb26af2fd021fe88e580b920ccd05458ce13'
             'ee74a732f807e314f97e22b907882d16d125512d6ee23a36251fde2b3b7e608c')
 backup=('etc/navidrome/navidrome.toml')
@@ -35,7 +35,7 @@ build() {
     export CGO_CPPFLAGS="${CPPFLAGS}"
     export CGO_CXXFLAGS="${CXXFLAGS}"
     export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
-    go build -ldflags="-X github.com/navidrome/navidrome/consts.gitSha=$gitSha -X github.com/navidrome/navidrome/consts.gitTag=v$pkgver" -tags=netgo
+    go build -ldflags="-X github.com/navidrome/navidrome/consts.gitSha=$gitSha -X github.com/navidrome/navidrome/consts.gitTag=v$pkgver" -tags=netgo -buildvcs=false
 }

 package() {
diff --git a/navidrome.service b/navidrome.service
index 39932b9..73c4f46 100644
--- a/navidrome.service
+++ b/navidrome.service
@@ -33,7 +33,7 @@ RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
 RestrictNamespaces=yes
 RestrictRealtime=yes
 SystemCallFilter=@system-service
-SystemCallFilter=~@privileged @resources
+SystemCallFilter=~@privileged
 SystemCallArchitectures=native
 UMask=0066

xenrox commented on 2021-10-08 12:53 (UTC)

I have added the minimum version to the PKGBUILD.

BachoSeven commented on 2021-10-08 09:58 (UTC)

This fails with nodejs version <16:

\nERROR: Please check your Node version. Should be at least v16\n
make: *** [Makefile:132: check_node_env] Errore 1