The ZSTD issue is an upstream bug, which I fixed in:

https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/work_items/2755

There has not been an upstream release since then, though.

The patch in that upstream bug (fix-zstd-detection.diff, attached) should be usable in the Debian build, if desired. That's how I tested it originally.

-Corey
From 80efb815ad5a9529b6e7a07183a4fc5640765bb1 Mon Sep 17 00:00:00 2001
From: Corey Hickey <[email protected]>
Date: Sun, 18 May 2025 19:17:33 -0700
Subject: [PATCH] fix detection of zstd

This fixes an issue where if the curl lib is not found, then zstd will
not be supported.

The detection method for both curl and zstd uses a shell variable 'error'.
Unless we unset the variable afterward, the results of the curl check
carry over to the zstd check.
---
 bacula/autoconf/configure.in | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in
index 5660f69b1..24ec76a29 100644
--- a/bacula/autoconf/configure.in
+++ b/bacula/autoconf/configure.in
@@ -982,7 +982,9 @@ AC_CHECK_LIB(curl,curl_version_info,,[error="Can't find CURL library."])
 
 if test x"${error}" == "x"; then
    support_curl=yes
-fi 
+fi
+
+unset error
 
 AC_MSG_RESULT([$support_curl])
 if test "$support_curl" = "yes"; then
@@ -1043,6 +1045,8 @@ else
     ZSTD_INC=""
 fi
 
+unset error
+
 AC_MSG_RESULT([$support_zstd])
 if test "$support_zstd" = "yes"; then
    AC_DEFINE(HAVE_ZSTD, 1, [Define if ZSTD library is available])
-- 
2.47.2

Reply via email to