Commit Graph

140 Commits

Author SHA1 Message Date
Lukas Slebodnik
09ad21db32 Disable lmdb support for ppc64le
New tests added in 2.1.3 fails on ppc64l4
It failed in ldb_connect

(gdb) l
2166            }
2167            ldb_module_set_private(ldb_kv->module, ldb_kv);
2168            talloc_steal(ldb_kv->module, ldb_kv);
2169
2170            if (ldb_kv_cache_load(ldb_kv->module) != 0) {
2171                    ldb_asprintf_errstring(ldb, "Unable to load ltdb cache "
2172                                           "records for backend '%s'", name);
2173                    talloc_free(ldb_kv->module);
2174                    return LDB_ERR_OPERATIONS_ERROR;
2175            }
(gdb) bt
 #0  ldb_kv_init_store (ldb_kv=0x10003f5e0, name=0x7ffff7064bc0 "ldb_mdb backend", ldb=0x10003f3b0, options=0x7fffffffdee8, _module=0x10003f3b0) at ../../ldb_key_value/ldb_kv.c:2171
 #1  0x00007ffff7063f70 in lmdb_connect (ldb=0x10003f3b0, url=<optimized out>, flags=<optimized out>, options=0x7fffffffdee8, _module=0x10003f3b0) at ../../ldb_mdb/ldb_mdb.c:1141
 #2  0x00007ffff7f1bc04 in ldb_module_connect_backend (ldb=0x10003f3b0, url=0x100038fd0 "mdb://lmdb_free_list_test.ldb", options=0x7fffffffdee8, backend_module=0x10003f3b0)
     at ../../common/ldb_modules.c:217
 #3  0x00007ffff7f451d0 in ldb_connect (ldb=0x10003f3b0, url=0x100038fd0 "mdb://lmdb_free_list_test.ldb", flags=<optimized out>, options=0x7fffffffdee8) at ../../common/ldb.c:269
 #4  0x0000000100002c44 in setup (state=0x1000302b0) at ../../tests/ldb_lmdb_free_list_test.c:170
 #5  0x00007ffff7e67da8 in cmocka_run_one_test_or_fixture () from /lib64/libcmocka.so.0
 #6  0x00007ffff7e68490 in _cmocka_run_group_tests () from /lib64/libcmocka.so.0
 #7  0x0000000100001478 in main (argc=<optimized out>, argv=<optimized out>) at ../../tests/ldb_lmdb_free_list_test.c:666

sh-5.0# ./bin/ldb_lmdb_free_list_test
[==========] Running 3 test(s).
[ RUN      ] test_free_list_no_read_lock
Could not run test: 0x1 != 0
[   LINE   ] --- ../../tests/ldb_lmdb_free_list_test.c:171: error: Failure!Test setup failed
[  ERROR   ] test_free_list_no_read_lock
Failed to connect to 'mdb://lmdb_free_list_test.ldb' with backend 'mdb': Unable to load ltdb cache records for backend 'ldb_mdb backend'[ RUN      ] test_free_list_read_lock
Could not run test: 0x1 != 0
[   LINE   ] --- ../../tests/ldb_lmdb_free_list_test.c:171: error: Failure!Test setup failed
[  ERROR   ] test_free_list_read_lock
Failed to connect to 'mdb://lmdb_free_list_test.ldb' with backend 'mdb': Unable to load ltdb cache records for backend 'ldb_mdb backend'[ RUN      ] test_free_list_stale_reader
Could not run test: 0x1 != 0
[   LINE   ] --- ../../tests/ldb_lmdb_free_list_test.c:171: error: Failure!Test setup failed
[  ERROR   ] test_free_list_stale_reader
Failed to connect to 'mdb://lmdb_free_list_test.ldb' with backend 'mdb': Unable to load ltdb cache records for backend 'ldb_mdb backend'[==========] 3 test(s) run.
[  PASSED  ] 0 test(s).
2020-05-22 10:37:32 +02:00
Lukas Slebodnik
fd1e6aae63 rhbz#1837364 New: libldb-2.1.3 is available 2020-05-20 12:01:55 +02:00
Lukas Slebodnik
5b9048a02e Fix typo in date 2020-04-28 11:44:31 +02:00
Lukas Slebodnik
9beb03eed5 rhbz#1828721 New: libldb-2.1.2 is available 2020-04-28 11:40:49 +02:00
Günther Deschner
6f5fde39a8 libldb-2.1.1 is available
resolves: rhbz#1807066

Guenther
2020-02-26 15:06:07 +01:00
Fedora Release Engineering
9a01bc7f03 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-29 09:35:31 +00:00
Lukas Slebodnik
a366c15c50 Workaround for failure on ppc64le 2020-01-23 00:39:52 +01:00
Lukas Slebodnik
e7e5c5f5b9 Always check the signature of the tarball 2020-01-22 21:30:30 +01:00
Lukas Slebodnik
0c3e05356f rhbz#1748422 - libldb-2.1.0 is available 2020-01-22 17:14:30 +01:00
Lukas Slebodnik
8f21ab5316 rhbz#1748422 - libldb-2.0.8 is available 2019-12-16 17:54:18 +01:00
Lukas Slebodnik
6be587f708 rhbz#1748422 - libldb-2.0.7 is available 2019-09-11 21:39:42 +02:00
Lukas Slebodnik
26fa84681f rhbz#1748422 - New upstream release 2.0.6 2019-09-04 08:18:32 +02:00
Lukas Slebodnik
bb9c7beaf2 Disable toggle_guidindex_check_pack test for ppc64le
It is a temporary workaround to unblock other packages
2019-08-26 13:16:36 +02:00
Lukas Slebodnik
507e6988dd rhbz#1683147 - libldb-2.0.5 is available 2019-08-26 10:45:29 +02:00
Lukas Slebodnik
f542d96b3e Remove python2 packages
* resolves: rhbz#1737644 - libldb, libtalloc, libtevent, libtdb: Remove Python 2 subpackages from Fedora 31+
2019-08-26 10:36:03 +02:00
Miro Hrončok
ccccd5ba2f Rebuilt for Python 3.8 2019-08-19 10:18:04 +02:00
Fedora Release Engineering
08f4139def - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-25 13:40:44 +00:00
Günther Deschner
efb1a3e7eb Add missing sources 2019-07-13 13:10:35 +02:00
Günther Deschner
4efa35f8c5 New upstream release 1.5.5
Guenther
2019-07-13 11:56:46 +02:00
Lukas Slebodnik
482b42ed8b rhbz#1718113 - samba fail to build with Python 3.8
AttributeError: module 'time' has no attribute 'clock'
2019-06-14 15:12:14 +02:00
Lukas Slebodnik
1c4ad7a580 Add missing patch 2019-06-03 22:44:31 +02:00
Lukas Slebodnik
b08d8b3a27 rhbz#1711638 - fails to build with Python 3.8.0a4 2019-06-03 17:00:42 +02:00
Lukas Slebodnik
d97cb83bae New upstream release 1.5.4 2019-03-06 12:33:44 +01:00
Lukas Slebodnik
110f3b7d49 New upstream release 1.5.3 2019-02-14 14:32:11 +01:00
Fedora Release Engineering
3c20801c8b - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-01 07:31:33 +00:00
Lukas Slebodnik
d707c03707 Use deterministic order of dict for tests 2019-01-18 21:04:28 +01:00
Lukas Slebodnik
f5b18a5dbb Revert "Workaround for wrong order of repr on s390x"
It did not work for some reason.

This reverts commit 2a4d9797fa.
2019-01-18 21:04:05 +01:00
Lukas Slebodnik
2a4d9797fa Workaround for wrong order of repr on s390x
The standard dictionary in Python 3.7 is ordered
But it can fail with python2

Simple reproducer:
for i in {1..10}; do PYTHONHASHSEED=random python2 -c 'import ldb; msg = ldb.Message(); msg.dn = ldb.Dn(ldb.Ldb(), "dc=foo29"); msg["dc"] = b"foo"; print(repr(msg)) '; done

======================================================================
FAIL: test_repr (__main__.LdbMsgTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/python/api.py", line 2322, in test_repr
    "Message({'dn': Dn('dc=foo29'), 'dc': MessageElement(['foo'])})")
AssertionError: "Message({'dc': MessageElement(['foo']), 'dn': Dn('dc=foo29')})" != "Message({'dn': Dn('dc=foo29'), 'dc': MessageElement(['foo'])})"
----------------------------------------------------------------------
Ran 1025 tests in 29.146s
FAILED (failures=1)
2019-01-18 18:13:20 +01:00
Lukas Slebodnik
5996f46405 Remove dependency on pkg-config from devel Requires
provide .pc file does not mean that package requires pkg-config
2019-01-18 16:32:01 +01:00
Lukas Slebodnik
1ddfd04fdf Remove unnecessary workarounds 2019-01-18 16:32:01 +01:00
Lukas Slebodnik
f79e4c7cba Update conditional build of lmdb 2019-01-18 16:32:01 +01:00
Lukas Slebodnik
160b21d5a3 Fix out of bound in ldb_wildcard_compare 2019-01-18 16:32:01 +01:00
Lukas Slebodnik
26bfbd96ca Fix detection of HAVE_LARGEFILE with python2
+ use autosetup
+ rebase 2nd patch
2019-01-18 16:32:01 +01:00
Lukas Slebodnik
d423db1bd0 Workaround for hardcoded path in Makefile
sh-4.4# make all
PYTHONHASHSEED=1 WAF_MAKE=1  ../../buildtools/bin/waf build
/bin/sh: ../../buildtools/bin/waf: No such file or directory
make: *** [Makefile:7: all] Error 127
2019-01-18 16:32:01 +01:00
Lukas Slebodnik
30d8d25f36 Update python2/3 builds 2019-01-18 16:32:01 +01:00
Lukas Slebodnik
9427f0d5bc Make python2 optional 2019-01-18 16:32:01 +01:00
Lukas Slebodnik
c627f945ea New upstream release - 1.5.2 2019-01-18 16:31:43 +01:00
Lukas Slebodnik
e591332967 New upstream release 1.4.3 2018-11-08 15:43:10 +01:00
Dylan Stephano-Shachter
c74409477d only run pathfix.py on python 3 builds 2018-08-23 16:55:21 -04:00
Lukas Slebodnik
171f707588 New upstream release 1.4.2 2018-08-16 11:15:02 +02:00
Fedora Release Engineering
ebafbb50b2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-13 08:21:49 +00:00
Jakub Hrozek
7e000c9e8e New upstream release 1.4.1
- Apply a patch to hide local ABI symbols to avoid issues with new binutils
- Patch the waf script to explicitly call python2 as "env python" doesn't
  yield py2 anymore
2018-07-12 16:47:28 +02:00
Miro Hrončok
8dd3a89d7e Rebuilt for Python 3.7 2018-06-19 10:46:07 +02:00
Lukas Slebodnik
d19d8f8d5f Another attempt to fix multiarch build
__isa_bits seems to be defined in scratch build but not in ordinary
build.
2018-05-31 11:32:07 +02:00
Lukas Slebodnik
3370424e7f Fix issue with parsing spec file
error: parse error in expression
error: /builddir/build/SPECS/libldb.spec:190: bad %if condition
2018-05-31 09:09:12 +02:00
Lukas Slebodnik
0b97065b6b Fix build on 32 bit architectures
* lmdb is supported in ldb just on 64 bit architectures
2018-05-30 23:29:28 +02:00
Lukas Slebodnik
650490cad8 New upstream release 1.4.0 2018-05-30 22:36:50 +02:00
Jakub Hrozek
d6786e7fee New upstream release 1.3.3
Resolves: rhbz#1574267 - libldb-1.3.3 is available
2018-05-03 12:01:52 +02:00
Lukas Slebodnik
5bbb418cc2 Disable link time optimisation for python3 related modules/libs
Workaround for rhbz#1548822
2018-03-01 21:12:51 +01:00
Lukas Slebodnik
608e0c71d2 New upstream release 1.3.2
Resolves: rhbz#1550051 - libldb-1.3.2 is available
2018-03-01 10:49:00 +01:00