update libldb to 2.4.1
(cherry picked from commit 46428092726b41fb372bf83725e739cd199c7134)
This commit is contained in:
parent
b4e25c8009
commit
9a52ef1842
@ -1,48 +0,0 @@
|
|||||||
From 9d935795ea5a3294f82fe65cca17c79a7b6589f0 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Mathieu Parent <math.parent@gmail.com>
|
|
||||||
Date: Thu, 25 Jun 2020 09:48:04 +0200
|
|
||||||
Subject: [PATCH] Fix FTBFS / Increase the over-estimation for sparse files
|
|
||||||
|
|
||||||
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14418
|
|
||||||
Signed-off-by: Mathieu Parent <math.parent@gmail.com>
|
|
||||||
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
|
|
||||||
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
|
|
||||||
|
|
||||||
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
|
|
||||||
Autobuild-Date(master): Tue Aug 25 04:23:19 UTC 2020 on sn-devel-184
|
|
||||||
---
|
|
||||||
lib/ldb/tests/ldb_kv_ops_test.c | 10 ++++++++--
|
|
||||||
1 file changed, 8 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/lib/ldb/tests/ldb_kv_ops_test.c b/lib/ldb/tests/ldb_kv_ops_test.c
|
|
||||||
index 30adebf1952..9db2212895f 100644
|
|
||||||
--- a/tests/ldb_kv_ops_test.c
|
|
||||||
+++ b/tests/ldb_kv_ops_test.c
|
|
||||||
@@ -1717,8 +1717,11 @@ static void test_get_size(void **state)
|
|
||||||
/*
|
|
||||||
* The tdb implementation of get_size over estimates for sparse files
|
|
||||||
* which is perfectly acceptable for it's intended use.
|
|
||||||
+ * mipsel, ia64: 9994
|
|
||||||
+ * ppc64el, powerpc, ppc64: 13369
|
|
||||||
+ * sparc64: 5046
|
|
||||||
*/
|
|
||||||
- assert_in_range(size, 2500, 5000);
|
|
||||||
+ assert_in_range(size, 2500, 15000);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
|
||||||
@@ -1746,8 +1749,11 @@ static void test_get_size(void **state)
|
|
||||||
/*
|
|
||||||
* The tdb implementation of get_size over estimates for sparse files
|
|
||||||
* which is perfectly acceptable for it's intended use.
|
|
||||||
+ * mipsel, ia64: 9994
|
|
||||||
+ * ppc64el, powerpc, ppc64: 13369
|
|
||||||
+ * sparc64: 5046
|
|
||||||
*/
|
|
||||||
- assert_in_range(size, 2500, 5000);
|
|
||||||
+ assert_in_range(size, 2500, 15000);
|
|
||||||
#endif
|
|
||||||
talloc_free(tmp_ctx);
|
|
||||||
}
|
|
||||||
--
|
|
||||||
GitLab
|
|
||||||
@ -8,20 +8,22 @@ Workaround: https://bugzilla.samba.org/show_bug.cgi?id=14404
|
|||||||
wscript | 5 +++--
|
wscript | 5 +++--
|
||||||
1 file changed, 3 insertions(+), 2 deletions(-)
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
diff -ruNa ldb-2.1.4/wscript ldb-2.1.4-org/wscript
|
diff --git a/wscript b/wscript
|
||||||
--- ldb-2.1.4/wscript 2021-03-23 11:14:55.530512420 +0800
|
index 9866901..17a9f14 100644
|
||||||
+++ ldb-2.1.4-org/wscript 2020-06-25 16:43:52.000000000 +0800
|
--- a/wscript
|
||||||
@@ -635,8 +635,9 @@
|
+++ b/wscript
|
||||||
# fit > 4G of data into the DB), it would fill up the disk on
|
@@ -651,8 +651,9 @@ def test(ctx):
|
||||||
# many of our test instances
|
# we can fit > 4G of data into the DB), it would fill up
|
||||||
'ldb_mdb_kv_ops_test',
|
# the disk on many of our test instances
|
||||||
+ 'ldb_key_value_sub_txn_mdb_test']
|
'ldb_mdb_kv_ops_test',
|
||||||
|
- 'ldb_key_value_sub_txn_mdb_test',
|
||||||
|
- 'ldb_lmdb_free_list_test']
|
||||||
|
+ 'ldb_key_value_sub_txn_mdb_test']
|
||||||
+ if os.environ.get('DEB_HOST_ARCH', 'unknown') not in ['alpha', 'ia64', 'mips64el', 'ppc64el', 'ppc64', 'sparc64', 'unknown']:
|
+ if os.environ.get('DEB_HOST_ARCH', 'unknown') not in ['alpha', 'ia64', 'mips64el', 'ppc64el', 'ppc64', 'sparc64', 'unknown']:
|
||||||
+ test_exes += ['ldb_lmdb_free_list_test']
|
+ test_exes += ['ldb_lmdb_free_list_test']
|
||||||
- 'ldb_key_value_sub_txn_mdb_test',
|
|
||||||
- 'ldb_lmdb_free_list_test']
|
|
||||||
else:
|
else:
|
||||||
test_exes += ['ldb_no_lmdb_test']
|
test_exes += ['ldb_no_lmdb_test']
|
||||||
|
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
--
|
|
||||||
2.26.2
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
-----BEGIN PGP SIGNATURE-----
|
|
||||||
|
|
||||||
iQFJBAABCgAzFiEEkUejOXGVGO6QEby1R5ORYRMIQCUFAl79kUYVHHNhbWJhLWJ1
|
|
||||||
Z3NAc2FtYmEub3JnAAoJEEeTkWETCEAlkj0H/3lSR4OY+c0VuIH96kA81qNsXTU/
|
|
||||||
N9t+sItsMGlOStRerBOW2kQrerXndDSNPMsdiPzTgL4Kl983C00KPDTjvZLeeTAn
|
|
||||||
OvjX6OZx9BSRIjtr+y/AE41mMIZNt3obSLe8XBWz8vYWszhNKfJE+lSrGG+wlVck
|
|
||||||
sBGsZiGX1Wb6ps0RwQ1SDdtdjKAQnloDLl2V/ivUrAQzbp6xV0H4emPz6RmKVu9R
|
|
||||||
QpPUHuuRix+cKzuZLJbYf/tJK5FoOV+2GVBQGhLfhSPlX32hiplYXBQw1uxXA0XM
|
|
||||||
xsQqQn/oOFv89IAqw4Qb4RFG2vxVxFYGqIhCpRPm9sZccxdDSuPsMu5Eme8=
|
|
||||||
=FbtO
|
|
||||||
-----END PGP SIGNATURE-----
|
|
||||||
BIN
ldb-2.1.4.tar.gz
BIN
ldb-2.1.4.tar.gz
Binary file not shown.
11
ldb-2.4.1.tar.asc
Normal file
11
ldb-2.4.1.tar.asc
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
|
iQEzBAABCgAdFiEEkUejOXGVGO6QEby1R5ORYRMIQCUFAmF5NesACgkQR5ORYRMI
|
||||||
|
QCW4Mwf9F08o0VWPyvCrYdqnpOT6D5HFsrJwwuisMptoflDLfH4a+MRBPlcRBhMT
|
||||||
|
Ss6DSFb36bmjcNlSJeLdHtqp9LxaoQA4xOw4mWhxnrzQimrIass1h24FOwv5RpCu
|
||||||
|
EXmNCbRwp22e/e8ntFeKd7wiYBcoOHqM39jMjGbfhksbglemhMpyL92zjyzuHXPD
|
||||||
|
QeHibpPIZYlCy89LHQgHcUyyLzYN06lRQ5MKKojrerQ7LlsyvGM+EHS0X81683CM
|
||||||
|
lW2CkQKjFCKRS6tjXCEX1NEj3Xw4gltI3MiaH96ZnecftlINp8vIloqi1NkOK7hl
|
||||||
|
QylusnpzRqOXL2hr514wJr9F21Mslg==
|
||||||
|
=RW3H
|
||||||
|
-----END PGP SIGNATURE-----
|
||||||
BIN
ldb-2.4.1.tar.gz
Normal file
BIN
ldb-2.4.1.tar.gz
Normal file
Binary file not shown.
25
libldb.spec
25
libldb.spec
@ -1,12 +1,12 @@
|
|||||||
%global with_lmdb 1
|
%global with_lmdb 1
|
||||||
%global with_python3 1
|
%global with_python3 1
|
||||||
%global talloc_version 2.3.1
|
%global talloc_version 2.3.3
|
||||||
%global tdb_version 1.4.3
|
%global tdb_version 1.4.4
|
||||||
%global tevent_version 0.10.2
|
%global tevent_version 0.11.0
|
||||||
|
|
||||||
Name: libldb
|
Name: libldb
|
||||||
Version: 2.1.4
|
Version: 2.4.1
|
||||||
Release: 4
|
Release: 1
|
||||||
Summary: A schema-less, ldap like, API and database
|
Summary: A schema-less, ldap like, API and database
|
||||||
Requires: libtalloc%{?_isa} >= %{talloc_version}
|
Requires: libtalloc%{?_isa} >= %{talloc_version}
|
||||||
Requires: libtdb%{?_isa} >= %{tdb_version}
|
Requires: libtdb%{?_isa} >= %{tdb_version}
|
||||||
@ -16,8 +16,7 @@ URL: http://ldb.samba.org/
|
|||||||
Source0: http://samba.org/ftp/ldb/ldb-%{version}.tar.gz
|
Source0: http://samba.org/ftp/ldb/ldb-%{version}.tar.gz
|
||||||
Source1: http://samba.org/ftp/ldb/ldb-%{version}.tar.asc
|
Source1: http://samba.org/ftp/ldb/ldb-%{version}.tar.asc
|
||||||
|
|
||||||
Patch0: Fix-FTBFS-Increase-the-over-estimation-for-sparse-files.patch
|
Patch0: backport-Skip-ldb_lmdb_free_list_test-on-ppc64el-ppc64-and-sp.patch
|
||||||
Patch1: Skip-ldb_lmdb_free_list_test-on-ppc64el-ppc64-and-sp.patch
|
|
||||||
|
|
||||||
BuildRequires: gcc libtalloc-devel >= %{talloc_version} libtdb-devel >= %{tdb_version}
|
BuildRequires: gcc libtalloc-devel >= %{talloc_version} libtdb-devel >= %{tdb_version}
|
||||||
BuildRequires: libtevent-devel >= %{tevent_version} lmdb-devel >= 0.9.16 popt-devel
|
BuildRequires: libtevent-devel >= %{tevent_version} lmdb-devel >= 0.9.16 popt-devel
|
||||||
@ -86,16 +85,14 @@ export python_LDFLAGS=""
|
|||||||
%{?without_lmdb_flags} \
|
%{?without_lmdb_flags} \
|
||||||
--with-privatelibdir=%{_libdir}/ldb
|
--with-privatelibdir=%{_libdir}/ldb
|
||||||
|
|
||||||
make %{?_smp_mflags} V=1
|
%make_build V=1
|
||||||
doxygen Doxyfile
|
doxygen Doxyfile
|
||||||
|
|
||||||
%check
|
%check
|
||||||
echo disabling one assertion in tests/python/repack.py
|
|
||||||
sed -e '/test_guid_indexed_v1_db/,+18{/toggle_guidindex_check_pack/d}' -i tests/python/repack.py
|
|
||||||
make %{?_smp_mflags} check
|
make %{?_smp_mflags} check
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
%make_install
|
||||||
cp -a apidocs/man/* $RPM_BUILD_ROOT/%{_mandir}
|
cp -a apidocs/man/* $RPM_BUILD_ROOT/%{_mandir}
|
||||||
rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/_*
|
rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/_*
|
||||||
|
|
||||||
@ -173,6 +170,12 @@ echo "%{_libdir}/ldb" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
|||||||
%{_mandir}/man1/ldbsearch.1.*
|
%{_mandir}/man1/ldbsearch.1.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Dec 15 2021 yanglu <yanglu72@huawei.com> - 2.4.1-1
|
||||||
|
- Type:update
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:update to 2.4.1
|
||||||
|
|
||||||
* Tue Sep 07 2021 gaihuiying <gaihuiying1@huawei.com> - 2.1.4-4
|
* Tue Sep 07 2021 gaihuiying <gaihuiying1@huawei.com> - 2.1.4-4
|
||||||
- Type:requirement
|
- Type:requirement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user