Fix configure error
Signed-off-by: cherry530 <xuping33@huawei.com> (cherry picked from commit 6c08fea3f2f3d96dca0b527e2fa63809db15f321)
This commit is contained in:
parent
7aa0f189fa
commit
e61421911f
18
bacula.spec
18
bacula.spec
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: bacula
|
Name: bacula
|
||||||
Version: 9.4.4
|
Version: 9.4.4
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: Cross platform network backup for Linux, Unix, Mac and Windows
|
Summary: Cross platform network backup for Linux, Unix, Mac and Windows
|
||||||
License: AGPLv3 with exceptions
|
License: AGPLv3 with exceptions
|
||||||
URL: http://www.bacula.org
|
URL: http://www.bacula.org
|
||||||
@ -96,14 +96,7 @@ Provides check_bacula support for Nagios.
|
|||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
#cp %{SOURCE2} %{SOURCE3} %{SOURCE4} .
|
sed -i -r 's/(hardcode_into_libs)=.*$/\1=no/' configure
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
find updatedb -type f | xargs chmod -x
|
find updatedb -type f | xargs chmod -x
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -147,7 +140,9 @@ export PATH="$PATH:%{_qt5_bindir}"
|
|||||||
--with-subsys-dir=%{_localstatedir}/lock/subsys \
|
--with-subsys-dir=%{_localstatedir}/lock/subsys \
|
||||||
--with-working-dir=%{_localstatedir}/spool/bacula \
|
--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
|
||||||
%make_build -C examples/nagios/check_bacula
|
%make_build -C examples/nagios/check_bacula
|
||||||
@ -318,6 +313,9 @@ fi
|
|||||||
%{_mandir}/man*
|
%{_mandir}/man*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* Mon Mar 8 2021 zhangjiapeng <zhangjiapeng9@huawei.com> - 9.4.4-4
|
||||||
- Stop the service and the process exits normally
|
- Stop the service and the process exits normally
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user