Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/ldb/files/
Date: Wed, 02 Feb 2022 10:23:11
Message-Id: 1643797374.a8a8866604ccdec991cdb868790a1b49f33c4f35.soap@gentoo
1 commit: a8a8866604ccdec991cdb868790a1b49f33c4f35
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 2 10:22:54 2022 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 2 10:22:54 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8a88666
7
8 sys-libs/ldb: fix patch
9
10 Bug: https://bugs.gentoo.org/832257
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 sys-libs/ldb/files/ldb-2.4.2-skip-32bit-time_t-tests.patch | 14 ++++++--------
14 1 file changed, 6 insertions(+), 8 deletions(-)
15
16 diff --git a/sys-libs/ldb/files/ldb-2.4.2-skip-32bit-time_t-tests.patch b/sys-libs/ldb/files/ldb-2.4.2-skip-32bit-time_t-tests.patch
17 index 044f2e29609f..70f34c5f1a58 100644
18 --- a/sys-libs/ldb/files/ldb-2.4.2-skip-32bit-time_t-tests.patch
19 +++ b/sys-libs/ldb/files/ldb-2.4.2-skip-32bit-time_t-tests.patch
20 @@ -5,29 +5,27 @@ Subject: [PATCH] Skip failing tests (on 32-bit architectures)
21
22 See https://bugzilla.samba.org/show_bug.cgi?id=14558#c17
23 ---
24 - tests/python/api.py | 6 ++++++
25 - 1 file changed, 6 insertions(+)
26 + tests/python/api.py | 4 ++++++
27 + 1 file changed, 4 insertions(+)
28
29 diff --git a/tests/python/api.py b/tests/python/api.py
30 index 8d154aa..e1de40c 100755
31 --- a/tests/python/api.py
32 +++ b/tests/python/api.py
33 -@@ -44,6 +44,9 @@ class NoContextTests(TestCase):
34 +@@ -44,6 +44,8 @@ class NoContextTests(TestCase):
35 self.assertEqual("19700101000000.0Z", ldb.timestring(0))
36 self.assertEqual("20071119191012.0Z", ldb.timestring(1195499412))
37
38 -+ if os.environ.get('DEB_HOST_ARCH_BITS', '64') == '32':
39 -+ self.skipTest('Test failing on 32-bit')
40 ++ self.skipTest('Test failing on 32-bit')
41 +
42 self.assertEqual("00000101000000.0Z", ldb.timestring(-62167219200))
43 self.assertEqual("99991231235959.0Z", ldb.timestring(253402300799))
44
45 -@@ -62,6 +65,9 @@ class NoContextTests(TestCase):
46 +@@ -62,6 +64,8 @@ class NoContextTests(TestCase):
47 self.assertEqual(0, ldb.string_to_time("19700101000000.0Z"))
48 self.assertEqual(1195499412, ldb.string_to_time("20071119191012.0Z"))
49
50 -+ if os.environ.get('DEB_HOST_ARCH_BITS', '64') == '32':
51 -+ self.skipTest('Test failing on 32-bit')
52 ++ self.skipTest('Test failing on 32-bit')
53 +
54 self.assertEqual(-62167219200, ldb.string_to_time("00000101000000.0Z"))
55 self.assertEqual(253402300799, ldb.string_to_time("99991231235959.0Z"))