Compare commits
10 Commits
71fed0d738
...
3105175e8a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3105175e8a | ||
|
|
4f231fe41f | ||
|
|
133d4c1788 | ||
|
|
f61eb31034 | ||
|
|
78379a2cf8 | ||
|
|
e61421911f | ||
|
|
7aa0f189fa | ||
|
|
95194aea90 | ||
|
|
21b73f6f94 | ||
|
|
6b025acb03 |
@ -0,0 +1,25 @@
|
||||
From 5a064f40a393193d057bd5a6d649ff4102aad742 Mon Sep 17 00:00:00 2001
|
||||
From: Kern Sibbald <kern@sibbald.com>
|
||||
Date: Sat, 2 May 2020 11:18:11 +0200
|
||||
Subject: [PATCH] Remove unused -t option in dbcheck.c -- fixes bug #2453
|
||||
|
||||
reference: https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/commit/5a064f40a393193d057bd5a6d649ff4102aad742
|
||||
---
|
||||
bacula/src/tools/dbcheck.c | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/src/tools/dbcheck.c b/src/tools/dbcheck.c
|
||||
index b7ee37106..1257adbed 100644
|
||||
--- a/src/tools/dbcheck.c
|
||||
+++ b/src/tools/dbcheck.c
|
||||
@@ -104,7 +104,6 @@ PROG_COPYRIGHT
|
||||
" -d <nn> set debug level to <nn>\n"
|
||||
" -dt print a timestamp in debug output\n"
|
||||
" -f fix inconsistencies\n"
|
||||
-" -t test if client library is thread-safe\n"
|
||||
" -v verbose\n"
|
||||
" -? print this message\n"
|
||||
"\n", 2002, "", VERSION, BDATE);
|
||||
--
|
||||
2.33.0
|
||||
|
||||
23
bacula-stop-the-service-and-the-process-exits-normally.patch
Normal file
23
bacula-stop-the-service-and-the-process-exits-normally.patch
Normal file
@ -0,0 +1,23 @@
|
||||
diff --git a/src/lib/signal.c b/src/lib/signal.c
|
||||
index cdb9824..1712d25 100644
|
||||
--- a/src/lib/signal.c
|
||||
+++ b/src/lib/signal.c
|
||||
@@ -138,7 +138,7 @@ extern "C" void signal_handler(int sig)
|
||||
already_dead++;
|
||||
/* Don't use Emsg here as it may lock and thus block us */
|
||||
if (sig == SIGTERM || sig == SIGINT) {
|
||||
- syslog(LOG_DAEMON|LOG_ERR, "Shutting down Bacula service: %s ...\n", my_name);
|
||||
+ syslog(LOG_DAEMON|LOG_INFO, "Shutting down Bacula service: %s ...\n", my_name);
|
||||
} else {
|
||||
fprintf(stderr, _("Bacula interrupted by signal %d: %s\n"), sig, get_signal_name(sig));
|
||||
syslog(LOG_DAEMON|LOG_ERR,
|
||||
@@ -274,6 +274,9 @@ extern "C" void signal_handler(int sig)
|
||||
|
||||
}
|
||||
#endif
|
||||
+ if (sig == SIGTERM || sig == SIGINT) {
|
||||
+ exit_handler(0);
|
||||
+ }
|
||||
exit_handler(sig);
|
||||
Dmsg0(500, "Done exit_handler\n");
|
||||
}
|
||||
33
bacula.spec
33
bacula.spec
@ -3,7 +3,7 @@
|
||||
|
||||
Name: bacula
|
||||
Version: 9.4.4
|
||||
Release: 3
|
||||
Release: 7
|
||||
Summary: Cross platform network backup for Linux, Unix, Mac and Windows
|
||||
License: AGPLv3 with exceptions
|
||||
URL: http://www.bacula.org
|
||||
@ -18,7 +18,9 @@ Source17: bacula-sd.sysconfig
|
||||
Patch0001: bacula-sqlite-priv.patch
|
||||
Patch0002: bacula-seg-fault.patch
|
||||
Patch0003: bacula-autoconf.patch
|
||||
|
||||
Patch0004: bacula-stop-the-service-and-the-process-exits-normally.patch
|
||||
Patch0005: 0001-Remove-unused-t-option-in-dbcheck.c-fixes-bug-2453.patch
|
||||
Patch0006: fix-add-the-compilation-option-pie.patch
|
||||
BuildRequires: desktop-file-utils perl-generators sed autoconf automake lzo-devel zlib-devel
|
||||
BuildRequires: gcc gcc-c++ glibc-devel ImageMagick libacl-devel libstdc++-devel libxml2-devel
|
||||
BuildRequires: libcap-devel ncurses-devel openssl-devel readline-devel sqlite-devel
|
||||
@ -96,14 +98,7 @@ Provides check_bacula support for Nagios.
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
#cp %{SOURCE2} %{SOURCE3} %{SOURCE4} .
|
||||
|
||||
pushd autoconf
|
||||
sed -i -r 's/(hardcode_into_libs)=.*$/\1=no/' libtool/libtool.m4
|
||||
aclocal -I bacula-macros/ -I gettext-macros/ -I libtool/
|
||||
popd
|
||||
autoconf -I autoconf/ -o configure autoconf/configure.in
|
||||
|
||||
sed -i -r 's/(hardcode_into_libs)=.*$/\1=no/' configure
|
||||
find updatedb -type f | xargs chmod -x
|
||||
|
||||
%build
|
||||
@ -147,7 +142,9 @@ export PATH="$PATH:%{_qt5_bindir}"
|
||||
--with-subsys-dir=%{_localstatedir}/lock/subsys \
|
||||
--with-working-dir=%{_localstatedir}/spool/bacula \
|
||||
|
||||
%disable_rpath
|
||||
#Remove RPATH
|
||||
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||
|
||||
%make_build
|
||||
%make_build -C examples/nagios/check_bacula
|
||||
@ -318,7 +315,19 @@ fi
|
||||
%{_mandir}/man*
|
||||
|
||||
%changelog
|
||||
* Mon Sep 14 2020 Ge Wang <wangge20@huawei.com> - 9.44-3
|
||||
* Mon Jun 05 2023 wu lei <wu_lei@hoperun.com> - 9.4.4-7
|
||||
- Add PIE flags
|
||||
|
||||
* Tue May 30 2023 chenchen <chen_aka_jan@163.com> - 9.4.4-6
|
||||
- Remove unused -t option in dbcheck.c
|
||||
|
||||
* Fri Apr 15 2022 xu_ping <xuping33@h-partners.com> - 9.4.4-5
|
||||
- Fix configure error
|
||||
|
||||
* Mon Mar 8 2021 zhangjiapeng <zhangjiapeng9@huawei.com> - 9.4.4-4
|
||||
- Stop the service and the process exits normally
|
||||
|
||||
* Mon Sep 14 2020 Ge Wang <wangge20@huawei.com> - 9.4.4-3
|
||||
- Modify Source0 Url
|
||||
|
||||
* Thu Nov 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 9.4.4-2
|
||||
|
||||
24
fix-add-the-compilation-option-pie.patch
Normal file
24
fix-add-the-compilation-option-pie.patch
Normal file
@ -0,0 +1,24 @@
|
||||
diff -Nur a/src/qt-console/bat.pro.in b/src/qt-console/bat.pro.in
|
||||
--- a/src/qt-console/bat.pro.in 2023-06-05 16:36:20.200951580 +0800
|
||||
+++ b/src/qt-console/bat.pro.in 2023-06-05 16:37:07.576951580 +0800
|
||||
@@ -26,7 +26,7 @@
|
||||
LIBS += -L../lib -lbaccfg -lbac -L../findlib -lbacfind @OPENSSL_LIBS@
|
||||
LIBTOOL_LINK = @QMAKE_LIBTOOL@ --silent --tag=CXX --mode=link
|
||||
LIBTOOL_INSTALL = @QMAKE_LIBTOOL@ --silent --mode=install
|
||||
-QMAKE_LINK = $${LIBTOOL_LINK} $(CXX)
|
||||
+QMAKE_LINK = $${LIBTOOL_LINK} $(CXX) -fPIE -Wl,-pie
|
||||
QMAKE_INSTALL_PROGRAM = $${LIBTOOL_INSTALL} install -m @SBINPERM@ -p
|
||||
QMAKE_CLEAN += .libs/* bat
|
||||
|
||||
diff -Nur a/src/qt-console/tray-monitor/tray-monitor.pro.in b/src/qt-console/tray-monitor/tray-monitor.pro.in
|
||||
--- a/src/qt-console/tray-monitor/tray-monitor.pro.in 2023-06-05 16:36:20.208951580 +0800
|
||||
+++ b/src/qt-console/tray-monitor/tray-monitor.pro.in 2023-06-05 16:37:53.676951580 +0800
|
||||
@@ -37,7 +37,7 @@
|
||||
INCLUDEPATH += ../.. .
|
||||
LIBTOOL_LINK = @QMAKE_LIBTOOL@ --silent --tag=CXX --mode=link
|
||||
LIBTOOL_INSTALL = @QMAKE_LIBTOOL@ --silent --mode=install
|
||||
-QMAKE_LINK = $${LIBTOOL_LINK} $(CXX)
|
||||
+QMAKE_LINK = $${LIBTOOL_LINK} $(CXX) -fPIE -Wl,-pie
|
||||
QMAKE_INSTALL_PROGRAM = $${LIBTOOL_INSTALL} install -m @SBINPERM@ -p
|
||||
QMAKE_CLEAN += obj/* .libs/* bacula-tray-monitor release/bacula-tray-monitor
|
||||
QMAKE_CXXFLAGS += -DTRAY_MONITOR
|
||||
Loading…
x
Reference in New Issue
Block a user