From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9C0CE158087 for ; Wed, 2 Feb 2022 08:58:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 33DD72BC003; Wed, 2 Feb 2022 08:58:11 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 221B12BC003 for ; Wed, 2 Feb 2022 08:58:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 31F403430F0 for ; Wed, 2 Feb 2022 08:58:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 294111EF for ; Wed, 2 Feb 2022 08:58:07 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1643792271.9ce42c49ec9b3b1f8273972e98248a3d0bfa1e13.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/ldb/, sys-libs/ldb/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-libs/ldb/files/ldb-2.4.2-skip-32bit-time_t-tests.patch sys-libs/ldb/ldb-2.4.2.ebuild sys-libs/ldb/ldb-2.5.0.ebuild X-VCS-Directories: sys-libs/ldb/ sys-libs/ldb/files/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 9ce42c49ec9b3b1f8273972e98248a3d0bfa1e13 X-VCS-Branch: master Date: Wed, 2 Feb 2022 08:58:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f0eb5e0a-1cf0-4db1-b3e9-b30fe8038c45 X-Archives-Hash: 5dacb38f1b65f8ae240de0c35c23d979 commit: 9ce42c49ec9b3b1f8273972e98248a3d0bfa1e13 Author: David Seifert gentoo org> AuthorDate: Wed Feb 2 08:57:51 2022 +0000 Commit: David Seifert gentoo org> CommitDate: Wed Feb 2 08:57:51 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ce42c49 sys-libs/ldb: disable tests sensitive to 32-bit time_t Bug: https://bugs.gentoo.org/832257 Signed-off-by: David Seifert gentoo.org> .../files/ldb-2.4.2-skip-32bit-time_t-tests.patch | 37 ++++++++++++++++++++++ sys-libs/ldb/ldb-2.4.2.ebuild | 1 + sys-libs/ldb/ldb-2.5.0.ebuild | 1 + 3 files changed, 39 insertions(+) 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 new file mode 100644 index 000000000000..044f2e29609f --- /dev/null +++ b/sys-libs/ldb/files/ldb-2.4.2-skip-32bit-time_t-tests.patch @@ -0,0 +1,37 @@ +From 38f5e8e09a7ae641b3669068b10c6bd966e46632 Mon Sep 17 00:00:00 2001 +From: Mathieu Parent +Date: Thu, 4 Nov 2021 22:46:15 +0100 +Subject: [PATCH] Skip failing tests (on 32-bit architectures) + +See https://bugzilla.samba.org/show_bug.cgi?id=14558#c17 +--- + tests/python/api.py | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/tests/python/api.py b/tests/python/api.py +index 8d154aa..e1de40c 100755 +--- a/tests/python/api.py ++++ b/tests/python/api.py +@@ -44,6 +44,9 @@ class NoContextTests(TestCase): + self.assertEqual("19700101000000.0Z", ldb.timestring(0)) + self.assertEqual("20071119191012.0Z", ldb.timestring(1195499412)) + ++ if os.environ.get('DEB_HOST_ARCH_BITS', '64') == '32': ++ self.skipTest('Test failing on 32-bit') ++ + self.assertEqual("00000101000000.0Z", ldb.timestring(-62167219200)) + self.assertEqual("99991231235959.0Z", ldb.timestring(253402300799)) + +@@ -62,6 +65,9 @@ class NoContextTests(TestCase): + self.assertEqual(0, ldb.string_to_time("19700101000000.0Z")) + self.assertEqual(1195499412, ldb.string_to_time("20071119191012.0Z")) + ++ if os.environ.get('DEB_HOST_ARCH_BITS', '64') == '32': ++ self.skipTest('Test failing on 32-bit') ++ + self.assertEqual(-62167219200, ldb.string_to_time("00000101000000.0Z")) + self.assertEqual(253402300799, ldb.string_to_time("99991231235959.0Z")) + +-- +2.30.2 + diff --git a/sys-libs/ldb/ldb-2.4.2.ebuild b/sys-libs/ldb/ldb-2.4.2.ebuild index cd109691c887..a8af63199f6d 100644 --- a/sys-libs/ldb/ldb-2.4.2.ebuild +++ b/sys-libs/ldb/ldb-2.4.2.ebuild @@ -53,6 +53,7 @@ MULTILIB_WRAPPED_HEADERS=( /usr/include/pyldb.h ) PATCHES=( "${FILESDIR}"/${PN}-1.5.2-optional_packages.patch "${FILESDIR}"/${PN}-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch + "${FILESDIR}"/${PN}-2.4.2-skip-32bit-time_t-tests.patch ) pkg_setup() { diff --git a/sys-libs/ldb/ldb-2.5.0.ebuild b/sys-libs/ldb/ldb-2.5.0.ebuild index c435347c1a38..dd87ed506eac 100644 --- a/sys-libs/ldb/ldb-2.5.0.ebuild +++ b/sys-libs/ldb/ldb-2.5.0.ebuild @@ -53,6 +53,7 @@ MULTILIB_WRAPPED_HEADERS=( /usr/include/pyldb.h ) PATCHES=( "${FILESDIR}"/${PN}-1.5.2-optional_packages.patch "${FILESDIR}"/${PN}-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch + "${FILESDIR}"/${PN}-2.4.2-skip-32bit-time_t-tests.patch ) pkg_setup() {