public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/bacula] f44: Fix linking of the S3 cloud driver (rhbz#2413541)
@ 2026-11-08 18:12 Simone Caronni
  0 siblings, 0 replies; only message in thread
From: Simone Caronni @ 2026-11-08 18:12 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/bacula
Branch : f44
Commit : ca05287374b799437a7be311630a85a4f73944d8
Author : Simone Caronni <negativo17@gmail.com>
Date   : 2026-11-08T19:11:46+01:00
Stats  : +30/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/bacula/c/ca05287374b799437a7be311630a85a4f73944d8?branch=f44

Log:
Fix linking of the S3 cloud driver (rhbz#2413541)

---
diff --git a/bacula-s3-driver-linking.patch b/bacula-s3-driver-linking.patch
new file mode 100644
index 0000000..07b2f5b
--- /dev/null
+++ b/bacula-s3-driver-linking.patch
@@ -0,0 +1,25 @@
+diff -Naur bacula-17.0.0.old/src/stored/Makefile.in bacula-17.0.0/src/stored/Makefile.in
+--- bacula-17.0.0.old/src/stored/Makefile.in	2026-08-06 15:41:06.000000000 +0200
++++ bacula-17.0.0/src/stored/Makefile.in	2026-11-08 19:07:23.724491422 +0100
+@@ -25,6 +25,8 @@
+ CLOUD_INSTALL_TARGETS=@CLOUD_INSTALL_TARGETS@
+ 
+ S3_LIBS=@S3_LIBS@
++CURL_LIBS=@CURL_LIBS@
++XML_LIBS=-lxml2
+ S3_INC=@S3_INC@
+ 
+ DB_LIBS=@DB_LIBS@
+@@ -229,10 +231,10 @@
+ 	 $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -shared $(CLOUD_GENERIC_LOBJS) -o $@ -R $(libdir) -rpath $(libdir) -module -export-dynamic -release $(LIBBACSD_LT_RELEASE)
+ 
+ bacula-sd-cloud-s3-driver.la: Makefile $(CLOUD_S3_LOBJS)
+-	 $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -shared $(CLOUD_S3_LOBJS) -o $@ $(S3_LIBS) -R $(libdir) -rpath $(libdir) -module -export-dynamic -release $(LIBBACSD_LT_RELEASE)
++	 $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -shared $(CLOUD_S3_LOBJS) -o $@ $(S3_LIBS) $(CURL_LIBS) $(XML_LIBS) $(OPENSSL_LIBS) -R $(libdir) -rpath $(libdir) -module -export-dynamic -release $(LIBBACSD_LT_RELEASE)
+ 
+ bacula-sd-cloud-glacier-s3-driver.la: Makefile $(CLOUD_S3_GLACIER_LOBJS)
+-	 $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -shared $(CLOUD_S3_GLACIER_LOBJS) -o $@ $(S3_LIBS) -R $(libdir) -rpath $(libdir) -module -export-dynamic -release $(LIBBACSD_LT_RELEASE)
++	 $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -shared $(CLOUD_S3_GLACIER_LOBJS) -o $@ $(S3_LIBS) $(CURL_LIBS) $(XML_LIBS) $(OPENSSL_LIBS) -R $(libdir) -rpath $(libdir) -module -export-dynamic -release $(LIBBACSD_LT_RELEASE)
+ 
+ bacula-sd-cloud-generic-driver.la: Makefile $(CLOUD_GENERIC_LOBJS)
+ 	 $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -shared $(CLOUD_GENERIC_LOBJS) -o $@ -R $(libdir) -rpath $(libdir) -module -export-dynamic -release $(LIBBACSD_LT_RELEASE)

diff --git a/bacula.spec b/bacula.spec
index 40ee14a..36b3d7d 100644
--- a/bacula.spec
+++ b/bacula.spec
@@ -81,6 +81,11 @@ Patch15:            %{name}-bat-restore-progress.patch
 # https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/commit/3f114ff206358ce52a784890e83b1756413e2ea7
 Patch16:            %{name}-docker-cli-29.patch
 
+# The bundled libs3 is a static library: link the S3 cloud drivers against its
+# dependencies (curl, libxml2 and OpenSSL), or the drivers fail to load:
+# https://bugzilla.redhat.com/show_bug.cgi?id=2413541
+Patch18:            %{name}-s3-driver-linking.patch
+
 BuildRequires:      autoconf
 BuildRequires:      automake
 BuildRequires:      desktop-file-utils

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-08 18:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-08 18:12 [rpms/bacula] f44: Fix linking of the S3 cloud driver (rhbz#2413541) Simone Caronni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox