public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Simone Caronni <negativo17@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/bacula] rawhide: Reduce patching
Date: Sun, 08 Nov 2026 11:31:59 GMT	[thread overview]
Message-ID: <179413751973.1.7776844092981367387.rpms-bacula-2d2996c39df3@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/bacula
Branch : rawhide
Commit : 2d2996c39df310ef1a2e1911779cb72652dfa732
Author : Simone Caronni <negativo17@gmail.com>
Date   : 2026-11-08T12:08:46+01:00
Stats  : +21/-111 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/bacula/c/2d2996c39df310ef1a2e1911779cb72652dfa732?branch=rawhide

Log:
Reduce patching

---
diff --git a/bacula-cdp-client-install.patch b/bacula-cdp-client-install.patch
deleted file mode 100644
index 00693be..0000000
--- a/bacula-cdp-client-install.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -Naur bacula-17.0.0.old/src/tools/Makefile.in bacula-17.0.0/src/tools/Makefile.in
---- bacula-17.0.0.old/src/tools/Makefile.in	2026-08-06 15:41:06.000000000 +0200
-+++ bacula-17.0.0/src/tools/Makefile.in	2026-11-08 11:32:55.681263033 +0100
-@@ -45,7 +45,7 @@
- 
- INSNODIRTOOLS = bsmtp
- INSDIRTOOLS = bsmtp dbcheck bwild bregex
--INSTOOLS = $(INS@DIR_TOOLS@)
-+INSTOOLS = $(INS@DIR_TOOLS@) @TOOLS_INSTALL@
- INSTTESTS = breaddir_test bpipe_test tags_test xattr_append_test crypto_test select_fdset_test watchdog_test
- 
- .SUFFIXES:	.c .o

diff --git a/bacula-desktop.patch b/bacula-desktop.patch
deleted file mode 100644
index 25a6b70..0000000
--- a/bacula-desktop.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-diff -Naur bacula-17.0.0.old/scripts/bacula-tray-monitor.desktop.in bacula-17.0.0/scripts/bacula-tray-monitor.desktop.in
---- bacula-17.0.0.old/scripts/bacula-tray-monitor.desktop.in	2026-08-06 15:41:06.000000000 +0200
-+++ bacula-17.0.0/scripts/bacula-tray-monitor.desktop.in	2026-11-08 11:23:27.882996316 +0100
-@@ -5,6 +5,5 @@
- Exec=@sbindir@/bacula-tray-monitor -c @sysconfdir@/bacula-tray-monitor.conf
- Terminal=false
- Type=Application
--Encoding=UTF-8
- X-Desktop-File-Install-Version=0.3
--Categories=System;Application;Utility;X-Red-Hat-Base;
-+Categories=System;Utility;
-diff -Naur bacula-17.0.0.old/scripts/bat.desktop.in bacula-17.0.0/scripts/bat.desktop.in
---- bacula-17.0.0.old/scripts/bat.desktop.in	2026-08-06 15:41:06.000000000 +0200
-+++ bacula-17.0.0/scripts/bat.desktop.in	2026-11-08 11:23:27.883059224 +0100
-@@ -5,7 +5,6 @@
- Exec=@sbindir@/bat -c @sysconfdir@/bat.conf
- Terminal=false
- Type=Application
--Encoding=UTF-8
- StartupNotify=true
- X-Desktop-File-Install-Version=0.3
--Categories=System;Application;Utility;X-Red-Hat-Base;
-+Categories=System;Utility;

diff --git a/bacula-install.patch b/bacula-install.patch
index b26f54d..cd854bd 100644
--- a/bacula-install.patch
+++ b/bacula-install.patch
@@ -10,19 +10,6 @@ diff -Naur bacula-17.0.0.old/autoconf/config.rpath bacula-17.0.0/autoconf/config
  
  # Whether we need a single -rpath flag with a separated argument.
  hardcode_libdir_separator="$hardcode_libdir_separator"
-diff -Naur bacula-17.0.0.old/examples/nagios/check_bacula/Makefile.in bacula-17.0.0/examples/nagios/check_bacula/Makefile.in
---- bacula-17.0.0.old/examples/nagios/check_bacula/Makefile.in	2026-08-06 15:41:06.000000000 +0200
-+++ bacula-17.0.0/examples/nagios/check_bacula/Makefile.in	2026-11-08 11:23:27.841479198 +0100
-@@ -72,7 +72,8 @@
- 	(cd $(srcdir); $(RMF) Makefile)
- 
- install: all
--	$(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) check_bacula $(DESTDIR)$(sbindir)/check_bacula
-+	$(MKDIR) $(DESTDIR)$(libdir)/nagios/plugins
-+	$(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) .libs/check_bacula $(DESTDIR)$(libdir)/nagios/plugins/check_bacula
- 
- uninstall:
- 	(cd $(DESTDIR)$(sbindir); $(RMF) check_bacula)
 diff -Naur bacula-17.0.0.old/scripts/logwatch/logfile.bacula.conf.in bacula-17.0.0/scripts/logwatch/logfile.bacula.conf.in
 --- bacula-17.0.0.old/scripts/logwatch/logfile.bacula.conf.in	2026-08-06 15:41:06.000000000 +0200
 +++ bacula-17.0.0/scripts/logwatch/logfile.bacula.conf.in	2026-11-08 11:23:27.841518893 +0100
@@ -31,17 +18,6 @@ diff -Naur bacula-17.0.0.old/scripts/logwatch/logfile.bacula.conf.in bacula-17.0
 -LogFile = @logdir@/bacula.log
 +LogFile = @logdir@/*.log
  
-diff -Naur bacula-17.0.0.old/scripts/Makefile.in bacula-17.0.0/scripts/Makefile.in
---- bacula-17.0.0.old/scripts/Makefile.in	2026-08-06 15:41:06.000000000 +0200
-+++ bacula-17.0.0/scripts/Makefile.in	2026-11-08 11:23:27.841559309 +0100
-@@ -84,7 +84,6 @@
- 	   $(MV) -f ${DESTDIR}${scriptdir}/baculabackupreport ${DESTDIR}${scriptdir}/baculabackupreport.old; \
- 	fi
- 	$(INSTALL_SCRIPT) baculabackupreport $(DESTDIR)$(scriptdir)/baculabackupreport
--	$(INSTALL_SCRIPT) bacula-tray-monitor.desktop $(DESTDIR)$(scriptdir)/bacula-tray-monitor.desktop
- 	chmod 0644 $(DESTDIR)$(scriptdir)/btraceback.gdb \
- 		   $(DESTDIR)$(scriptdir)/btraceback.dbx \
- 		   $(DESTDIR)$(scriptdir)/btraceback.mdb
 diff -Naur bacula-17.0.0.old/src/cats/make_sqlite3_tables.in bacula-17.0.0/src/cats/make_sqlite3_tables.in
 --- bacula-17.0.0.old/src/cats/make_sqlite3_tables.in	2026-08-06 15:41:06.000000000 +0200
 +++ bacula-17.0.0/src/cats/make_sqlite3_tables.in	2026-11-08 11:23:27.841619342 +0100
@@ -107,43 +83,3 @@ diff -Naur bacula-17.0.0.old/src/plugins/fd/docker/Makefile bacula-17.0.0/src/pl
  
  docker-fd.la: Makefile $(DOCKEROBJ) $(PLUGINLIBDIR)/pluginlib.lo $(DOCKERSRCH)
  	@echo "Linking $(@:.la=.so) ..."
-diff -Naur bacula-17.0.0.old/src/qt-console/bat.pro.in bacula-17.0.0/src/qt-console/bat.pro.in
---- bacula-17.0.0.old/src/qt-console/bat.pro.in	2026-11-08 11:23:27.836039797 +0100
-+++ bacula-17.0.0/src/qt-console/bat.pro.in	2026-11-08 11:23:27.841815642 +0100
-@@ -12,10 +12,10 @@
- 
- datarootdir = @datarootdir@
- bins.path = /$(DESTDIR)@sbindir@
--bins.files = bat
-+bins.files = .libs/bat
- confs.path = /$(DESTDIR)@sysconfdir@
- confs.commands = ./install_conf_file
--help.path = /$(DESTDIR)@docdir@
-+help.path = /$(DESTDIR)@htmldir@
- help.files = help/*.html images/status.png images/mail-message-new.png
- 
- TEMPLATE     = app
-diff -Naur bacula-17.0.0.old/src/qt-console/tray-monitor/tray-monitor.pro.in bacula-17.0.0/src/qt-console/tray-monitor/tray-monitor.pro.in
---- bacula-17.0.0.old/src/qt-console/tray-monitor/tray-monitor.pro.in	2026-11-08 11:23:27.836124867 +0100
-+++ bacula-17.0.0/src/qt-console/tray-monitor/tray-monitor.pro.in	2026-11-08 11:23:27.841864254 +0100
-@@ -26,7 +26,7 @@
- 
- 
- bins.path = /$(DESTDIR)@sbindir@
--bins.files = bacula-tray-monitor
-+bins.files = .libs/bacula-tray-monitor
- confs.path = /$(DESTDIR)@sysconfdir@
- confs.commands = ./install_conf_file
- 
-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 11:23:27.841925018 +0100
-@@ -382,7 +382,7 @@
- install-tune-dde: tune-dde
- 	$(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) tune-dde $(DESTDIR)$(sbindir)/tune-dde
- 
--install: all @LIBTOOL_INSTALL_TARGET@ $(CLOUD_INSTALL_TARGETS)
-+install: all @LIBTOOL_INSTALL_TARGET@ $(CLOUD_INSTALL_TARGETS) install-aligned
- 	$(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) bacula-sd $(DESTDIR)$(sbindir)/bacula-sd
- 	$(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) bsdjson $(DESTDIR)$(sbindir)/bsdjson
- 	$(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) bls $(DESTDIR)$(sbindir)/bls

diff --git a/bacula.spec b/bacula.spec
index 7b0f95d..d76b702 100644
--- a/bacula.spec
+++ b/bacula.spec
@@ -44,7 +44,6 @@ Patch3:             %{name}-non-free-code.patch
 Patch4:             %{name}-traceback-man.patch
 Patch5:             %{name}-compile-options.patch
 Patch6:             %{name}-install.patch
-Patch7:             %{name}-desktop.patch
 Patch8:             %{name}-docker-plugin.patch
 # Original patch removed by mistake, upstream is not willing to add it again:
 # http://www.bacula.org/git/cgit.cgi/bacula/commit/?h=Branch-7.0&id=51b3b98fb77ab3c0decee455cc6c4d2eb3c5303a
@@ -77,11 +76,6 @@ Patch16:            %{name}-nagios-compilation.patch
 # https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/commit/3f114ff206358ce52a784890e83b1756413e2ea7
 Patch17:            %{name}-docker-cli-29.patch
 
-# The cdp-client install target was accidentally dropped from INSTOOLS in
-# "regress: Add watchdog_test" (b961e1d81), so --enable-cdp-plugin no longer
-# installs cdp-client
-Patch18:            %{name}-cdp-client-install.patch
-
 BuildRequires:      autoconf
 BuildRequires:      automake
 BuildRequires:      desktop-file-utils
@@ -200,6 +194,10 @@ Requires:           mt-st
 Requires:           mtx
 Requires:           sdparm
 Provides:           bundled(libs3) = 4.1.bac
+# Only required for protecting the volume encryption keys with a GnuPG master
+# key (install-key-manager.sh):
+Recommends:         gnupg2
+Recommends:         python3-gnupg
 
 Requires(post):     systemd
 Requires(preun):    systemd
@@ -368,10 +366,15 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
 
 %make_build
 %make_build -C examples/nagios/check_bacula
+%make_build -C src/tools bsnapshot
 
 %install
 %make_install
-%make_install -C examples/nagios/check_bacula
+# Not part of the default install target
+%make_install -C src/tools/cdp-client
+%{__make} -C src/stored install-aligned DESTDIR=%{buildroot} INSTALL="%{__install} -p"
+%{__make} -C src/tools install-bsnapshot DESTDIR=%{buildroot} INSTALL="%{__install} -p"
+install -p -m 755 -D examples/nagios/check_bacula/.libs/check_bacula %{buildroot}%{_libdir}/nagios/plugins/check_bacula
 
 # Remove unused unversioned Storage Daemon plugins
 rm -f %{buildroot}%{_libdir}/%{name}/%{name}-sd-*-driver.so
@@ -385,14 +388,19 @@ rm -f %{buildroot}%{_libexecdir}/%{name}/baculabackupreport
 
 # Bat
 install -p -m 644 -D src/qt-console/images/bat_icon.png %{buildroot}%{_datadir}/pixmaps/bat_icon.png
-install -p -m 644 -D scripts/bat.desktop %{buildroot}%{_datadir}/applications/bat.desktop
 install -p -m 755 -D src/qt-console/.libs/bat %{buildroot}%{_sbindir}/bat
 
 install -p -m 644 -D manpages/bacula-tray-monitor.1 %{buildroot}%{_mandir}/man1/bacula-tray-monitor.1
 install -p -m 644 -D %{SOURCE19} %{buildroot}%{_datadir}/pixmaps/bacula-tray-monitor.png
-install -p -m 644 -D scripts/bacula-tray-monitor.desktop %{buildroot}%{_datadir}/applications/bacula-tray-monitor.desktop
 install -p -m 755 -D src/qt-console/tray-monitor/.libs/bacula-tray-monitor %{buildroot}%{_sbindir}/bacula-tray-monitor
 
+desktop-file-install \
+    --dir %{buildroot}%{_datadir}/applications \
+    --remove-key=Encoding \
+    --remove-category=Application \
+    --remove-category=X-Red-Hat-Base \
+    scripts/bat.desktop scripts/bacula-tray-monitor.desktop
+
 # Logrotate
 mkdir -p %{buildroot}%{_localstatedir}/log/bacula
 install -p -m 644 -D %{SOURCE6} %{buildroot}%{_sysconfdir}/logrotate.d/bacula
@@ -422,7 +430,7 @@ install -p -m 644 -D %{SOURCE7} %{buildroot}%{_prefix}/lib/firewalld/services/ba
 install -p -m 644 -D %{SOURCE8} %{buildroot}%{_prefix}/lib/firewalld/services/bacula-director.xml
 
 # Remove stuff we do not need
-rm -f %{buildroot}%{_libexecdir}/bacula/{bacula,bacula-ctl-*,startmysql,stopmysql,bconsole,make_catalog_backup}
+rm -f %{buildroot}%{_libexecdir}/bacula/{bacula,bacula-ctl-*,bacula-tray-monitor.desktop,startmysql,stopmysql,bconsole,make_catalog_backup}
 rm -f %{buildroot}%{_sbindir}/bacula
 rm -f %{buildroot}%{_mandir}/man8/bacula.8.gz
 rm -f %{buildroot}%{_libdir}/*.la
@@ -544,8 +552,6 @@ fi
 %{_libexecdir}/%{name}/drop_bacula_database
 %{_libexecdir}/%{name}/drop_bacula_tables
 %{_libexecdir}/%{name}/grant_bacula_privileges
-%{_libexecdir}/%{name}/install-key-manager.sh
-%{_libexecdir}/%{name}/key-manager.py
 %{_libexecdir}/%{name}/make_bacula_tables
 %{_libexecdir}/%{name}/make_catalog_backup.pl
 %{_libexecdir}/%{name}/update_bacula_tables
@@ -604,7 +610,9 @@ fi
 %{_libdir}/%{name}/totp-dir.so
 %{_libexecdir}/%{name}/bacula-resource-auto-creator.py
 %{_libexecdir}/%{name}/disk-changer
+%{_libexecdir}/%{name}/install-key-manager.sh
 %{_libexecdir}/%{name}/isworm
+%{_libexecdir}/%{name}/key-manager.py
 %{_libexecdir}/%{name}/mtx-changer
 %{_libexecdir}/%{name}/mtx-changer.conf
 %{_libexecdir}/%{name}/mtx-changer-python.conf
@@ -637,6 +645,7 @@ fi
 %{_libdir}/%{name}/docker-fd.so
 %{_sbindir}/bacula-fd
 %{_sbindir}/bfdjson
+%{_sbindir}/bsnapshot
 %{_sbindir}/cdp-client
 %{_unitdir}/bacula-fd.service
 

                 reply	other threads:[~2026-11-08 11:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179413751973.1.7776844092981367387.rpms-bacula-2d2996c39df3@fedoraproject.org \
    --to=negativo17@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox