Commit Graph

113 Commits

Author SHA1 Message Date
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
Lukas Slebodnik
11b75af968 Add gcc to BuildRequires
https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot
2018-02-26 15:31:14 +01:00
Lukas Slebodnik
46dc8a0bf0 Use ldconfig scriptlets
https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets
2018-02-26 15:28:35 +01:00
Florian Weimer
3a6764e343 Another rebuild with new build flags 2018-02-24 21:50:11 +01:00
Florian Weimer
3c9d5ae5c9 Rebuild to pick up new Python build flags 2018-02-24 14:57:29 +01:00
Fedora Release Engineering
682c3974e2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-07 22:34:03 +00:00
Björn Esser
4f64d60a55
Rebuilt for switch to libxcrypt 2018-01-20 23:07:06 +01:00
Lukas Slebodnik
c3abe18978 New upstream release 1.3.1
Resolves: rhbz#1534128 - libldb-1.3.1 is available
2018-01-13 15:32:19 +01:00
Lukas Slebodnik
c0e792f7e9 Update Python 2 dependency declarations to new packaging standards
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
2018-01-09 19:49:13 +01:00
Lukas Slebodnik
c3c2498422 Update spec file conditionals 2017-11-30 09:57:24 +01:00
Lukas Slebodnik
df8cc6a1d9 Fix memory leak introduced in 1.3.0 2017-10-21 16:09:13 +02:00
Lukas Slebodnik
de55e7fcb3 New upstream release 1.3.0
Resolves: rhbz#1504361 - libldb-1.3.0 is available
2017-10-20 14:02:21 +02:00
Lukas Slebodnik
7e985261b5 New upstream release 1.2.2
Resolves: rhbz#1489418  - libldb-1.2.2 is available
2017-09-11 12:12:35 +02:00
Fedora Release Engineering
d2cd71f30d - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 01:46:27 +00:00
Fedora Release Engineering
023868d632 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-26 19:11:18 +00:00
Lukas Slebodnik
4d74180d83 Remove unused patches from git 2017-07-24 12:03:20 +02:00
Lukas Slebodnik
10fccc5545 New upstream release 1.2.1
Resolves: rhbz#1473988 - libldb-1.2.1 is available
2017-07-24 10:14:05 +02:00
Andreas Schneider
44b390d82c Fix pyhton3 support 2017-07-06 10:15:20 +02:00
Lukas Slebodnik
1abc06a2dd Fix bug found by unit test on i386 2017-07-04 16:05:43 +02:00
Lukas Slebodnik
d177bb91cc New upstream release 1.2.0
Resolves: rhbz#1467118 - libldb-1.2.0 is available
* run unit-tests
2017-07-04 13:09:50 +02:00
Lukas Slebodnik
de65afad2f New upstream release 1.1.31
Resolves: rhbz#1462041 - libldb-1.1.31 is available
2017-06-16 13:49:55 +02:00
Lukas Slebodnik
d5b8e3f89f Revert detection of system pytalloc-util for python3 2017-06-03 12:27:22 +02:00
Lukas Slebodnik
f5da48cc61 New upstream release 1.1.30
Resolves: rhbz#1458264 - libldb-1.1.30 is available
2017-06-03 11:58:00 +02:00
Lukas Slebodnik
0860bd70dc rhbz#1401172 - Missing symbol versioning provided by libldb.so with strict CFLAGS
Fix configure time detection with -Werror=implicit-function-declaration
  -Werror=implicit-int
2017-04-01 15:02:05 +02:00
Lukas Slebodnik
725e5b329a Require renamed python2 packages
Use renamed python2 binding for talloc tevent and tdb

dnf prefer old package with required name rather then
    new package with provides
2017-04-01 14:54:18 +02:00
Lukas Slebodnik
d0b25de846 Fix few fedora packaging violation
* Package uses either %{buildroot} or $RPM_BUILD_ROOT
  Note: Using both %{buildroot} and $RPM_BUILD_ROOT
  See: http://fedoraproject.org/wiki/Packaging/Guidelines#macros

* Uses parallel make %{?_smp_mflags} macro.
  - parallel make works well with talloc, tevent, tdb and samba

* Spec use %global instead of %define unless justified.
     Note: %define requiring justification: %define talloc_version 2.0.8,
          %define tdb_version 1.3.3, %define tevent_version 0.9.17
2017-04-01 14:54:18 +02:00
Lukas Slebodnik
8718918ded Remove rhel5 relicts
* popt-devel is available on rhel6+
* waf is used instead of autotools
* Package has no %clean section with rm -rf %{buildroot} (or
  $RPM_BUILD_ROOT)
  Note: %clean present but not required
2017-04-01 14:54:18 +02:00
Fedora Release Engineering
86e10a0247 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-10 18:58:34 +00:00