netatalk: remove buildbot added dependency on libunwind

meson scripts add a dependency for libunwind if the library is present
in the system. libunwind is built by buildbots first so build adds
a linking dependency. libunwind is not needed for normal operation
of netatalk.
Instead of creating a hard dependency on libunwind, add a build
option upstream to make the use of libunwind optional.

Signed-off-by: Antonio Pastor <antonio.pastor@gmail.com>
This commit is contained in:
Antonio Pastor authored and Christian Marangi committed 2026-10-27 13:20:39 +01:00
1 parent f9faf3fc28
commit 97e08c4669
2 files changed
+52 -1

No files matched your search

+2 -1
View File
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=netatalk
PKG_VERSION:=4.6.1
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@SF/netatalk
@@ -100,6 +100,7 @@ MESON_ARGS += \
-Dwith-quota=false \
-Dwith-spotlight=false \
-Dwith-cracklib=false \
-Dwith-libunwind=false \
-Dwith-tests=false \
-Dwith-testsuite=false \
-Dwith-dtrace=false \
@@ -0,0 +1,50 @@
From f7b87d3e0ea0e43f0819d22160920a901d04442f Mon Sep 17 00:00:00 2001
From: Antonio Pastor <antonio.pastor@gmail.com>
Date: Mon, 26 Oct 2026 17:35:40 -0400
Subject: [PATCH] netatalk: make use of libunwind optional
meson scripts add a dependency for libunwind if the library is present
in the system.
On targets creating packages for installation such as OpenWrt, the
library might be present on build machines but not on target system.
Instead of creating a hard dependency on libunwind, add a build
option to make the use of libunwind optional.
--- a/meson.build
+++ b/meson.build
@@ -61,6 +61,7 @@ enable_debugging = get_option('with-debu
enable_dtrace = get_option('with-dtrace')
enable_fce = get_option('with-fce')
enable_gssapi = get_option('with-gssapi')
+enable_libunwind = get_option('with-libunwind')
enable_iconv = get_option('with-libiconv')
enable_kerberos = get_option('with-kerberos')
enable_krb5_uam = get_option('with-krbV-uam')
@@ -842,7 +843,11 @@ endif
# Check for mysql CNID backend
# Backtraces on musl, which ships no execinfo
-libunwind = dependency('libunwind', required: false)
+if enable_libunwind
+ libunwind = dependency('libunwind', required: false)
+else
+ libunwind = disabler()
+endif
if libunwind.found()
cdata.set('HAVE_LIBUNWIND', 1)
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -136,6 +136,12 @@ option(
description: 'Enable iconv support',
)
option(
+ 'with-libunwind',
+ type: 'boolean',
+ value: true,
+ description: 'Enable libunwind use if library is present',
+)
+option(
'with-overwrite',
type: 'boolean',
value: false,