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 5FE1F15800A for ; Thu, 27 Jul 2023 10:33:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A1661E097C; Thu, 27 Jul 2023 10:33:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8DBE9E097C for ; Thu, 27 Jul 2023 10:33:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 898FE341482 for ; Thu, 27 Jul 2023 10:33:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EA04CDDD for ; Thu, 27 Jul 2023 10:33:01 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1690453967.516e9c97a29bdf072d9317cc1a0e04c5c73611f5.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/ldb/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-libs/ldb/ldb-2.5.3.ebuild sys-libs/ldb/ldb-2.6.2.ebuild sys-libs/ldb/ldb-2.7.2.ebuild X-VCS-Directories: sys-libs/ldb/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 516e9c97a29bdf072d9317cc1a0e04c5c73611f5 X-VCS-Branch: master Date: Thu, 27 Jul 2023 10:33:01 +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: 1ab3195d-3109-4d10-baae-18e3c356a7e6 X-Archives-Hash: a81afd94e0ed01e154366e919cc19d94 commit: 516e9c97a29bdf072d9317cc1a0e04c5c73611f5 Author: Sam James gentoo org> AuthorDate: Thu Jul 27 10:32:27 2023 +0000 Commit: Sam James gentoo org> CommitDate: Thu Jul 27 10:32:47 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=516e9c97 sys-libs/ldb: allow running tests w/o USE=python We want to be able to run tests w/o Python as it makes automated testing much easier (as USE=python isn't default-enabled). Signed-off-by: Sam James gentoo.org> sys-libs/ldb/ldb-2.5.3.ebuild | 9 ++++++++- sys-libs/ldb/ldb-2.6.2.ebuild | 8 +++++++- sys-libs/ldb/ldb-2.7.2.ebuild | 8 +++++++- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/sys-libs/ldb/ldb-2.5.3.ebuild b/sys-libs/ldb/ldb-2.5.3.ebuild index fdd942221644..dfec3a428473 100644 --- a/sys-libs/ldb/ldb-2.5.3.ebuild +++ b/sys-libs/ldb/ldb-2.5.3.ebuild @@ -17,7 +17,7 @@ KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~ IUSE="doc ldap +lmdb python test" REQUIRED_USE="${PYTHON_REQUIRED_USE} - test? ( lmdb python )" + test? ( lmdb )" RESTRICT="!test? ( test )" @@ -67,6 +67,13 @@ pkg_setup() { src_prepare() { default + + if use test && ! use python ; then + # We want to be able to run tests w/o Python as it makes + # automated testing much easier (as USE=python isn't default-enabled). + truncate -s0 tests/python/{repack,index,api,crash}.py || die + fi + multilib_copy_sources } diff --git a/sys-libs/ldb/ldb-2.6.2.ebuild b/sys-libs/ldb/ldb-2.6.2.ebuild index 318abf8bb390..12c6ba830153 100644 --- a/sys-libs/ldb/ldb-2.6.2.ebuild +++ b/sys-libs/ldb/ldb-2.6.2.ebuild @@ -17,7 +17,7 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv IUSE="doc ldap +lmdb python test" REQUIRED_USE="${PYTHON_REQUIRED_USE} - test? ( lmdb python )" + test? ( lmdb )" RESTRICT="!test? ( test )" @@ -99,6 +99,12 @@ src_prepare() { check_samba_dep_versions + if use test && ! use python ; then + # We want to be able to run tests w/o Python as it makes + # automated testing much easier (as USE=python isn't default-enabled). + truncate -s0 tests/python/{repack,index,api,crash}.py || die + fi + multilib_copy_sources } diff --git a/sys-libs/ldb/ldb-2.7.2.ebuild b/sys-libs/ldb/ldb-2.7.2.ebuild index 76e28c619894..68ed096f1575 100644 --- a/sys-libs/ldb/ldb-2.7.2.ebuild +++ b/sys-libs/ldb/ldb-2.7.2.ebuild @@ -17,7 +17,7 @@ KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~ IUSE="doc ldap +lmdb python test" REQUIRED_USE="${PYTHON_REQUIRED_USE} - test? ( lmdb python )" + test? ( lmdb )" RESTRICT="!test? ( test )" @@ -99,6 +99,12 @@ src_prepare() { check_samba_dep_versions + if use test && ! use python ; then + # We want to be able to run tests w/o Python as it makes + # automated testing much easier (as USE=python isn't default-enabled). + truncate -s0 tests/python/{repack,index,api,crash}.py || die + fi + multilib_copy_sources }