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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1B35513933E for ; Sat, 17 Jul 2021 20:47:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 548B5E0B46; Sat, 17 Jul 2021 20:47:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3A747E0B46 for ; Sat, 17 Jul 2021 20:47:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2A899342B1D for ; Sat, 17 Jul 2021 20:47:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7CA867D5 for ; Sat, 17 Jul 2021 20:47:32 +0000 (UTC) From: "Cédric Krier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Cédric Krier" Message-ID: <1626554847.0d8a9c4090058823695e2f8b5fd79e5bfb38a3ec.cedk@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/mercurial/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-vcs/mercurial/mercurial-9999.ebuild X-VCS-Directories: dev-vcs/mercurial/ X-VCS-Committer: cedk X-VCS-Committer-Name: Cédric Krier X-VCS-Revision: 0d8a9c4090058823695e2f8b5fd79e5bfb38a3ec X-VCS-Branch: master Date: Sat, 17 Jul 2021 20:47:32 +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: 7acea942-d513-4fb7-9f54-17696c1e923a X-Archives-Hash: dd69315888ef28eb60f588a9bc92ee18 commit: 0d8a9c4090058823695e2f8b5fd79e5bfb38a3ec Author: Cédric Krier gentoo org> AuthorDate: Sat Jul 17 20:46:43 2021 +0000 Commit: Cédric Krier gentoo org> CommitDate: Sat Jul 17 20:47:27 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d8a9c40 dev-vcs/mercurial: update live build with test enabled Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Cédric Krier gentoo.org> dev-vcs/mercurial/mercurial-9999.ebuild | 36 +++++++++++++++------------------ 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/dev-vcs/mercurial/mercurial-9999.ebuild b/dev-vcs/mercurial/mercurial-9999.ebuild index 516f17871e1..1fa18749e4a 100644 --- a/dev-vcs/mercurial/mercurial-9999.ebuild +++ b/dev-vcs/mercurial/mercurial-9999.ebuild @@ -8,7 +8,7 @@ PYTHON_REQ_USE="threads(+)" DISTUTILS_USE_SETUPTOOLS=no CARGO_OPTIONAL=1 -inherit bash-completion-r1 cargo elisp-common distutils-r1 mercurial flag-o-matic +inherit bash-completion-r1 cargo elisp-common distutils-r1 mercurial flag-o-matic multiprocessing DESCRIPTION="Scalable distributed SCM" HOMEPAGE="https://www.mercurial-scm.org/" @@ -25,18 +25,18 @@ BDEPEND=" RDEPEND=" app-misc/ca-certificates - dev-python/zstandard[${PYTHON_USEDEP}] gpg? ( app-crypt/gnupg ) - tk? ( dev-lang/tk ) -" + tk? ( dev-lang/tk )" + DEPEND="emacs? ( >=app-editors/emacs-23.1:* ) - test? ( app-arch/unzip - dev-python/pygments[${PYTHON_USEDEP}] )" + test? ( + app-arch/unzip + dev-python/pygments[${PYTHON_USEDEP}] + )" SITEFILE="70${PN}-gentoo.el" -# Too many tests fail #608720 -RESTRICT="test" +RESTRICT="!test? ( test )" src_unpack() { mercurial_src_unpack @@ -50,11 +50,7 @@ python_prepare_all() { # fix up logic that won't work in Gentoo Prefix (also won't outside in # certain cases), bug #362891 sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die - sed -i -e '/ hgenv =/a\' -e ' hgenv.pop("PYTHONPATH", None)' setup.py || die - # Use absolute import for zstd - sed -i -e 's/from \.* import zstd/import zstandard as zstd/' \ - mercurial/utils/compression.py \ - mercurial/wireprotoframing.py || die + sed -i -e 's/__APPLE__/__NO_APPLE__/g' mercurial/cext/osutil.c || die distutils-r1_python_prepare_all } @@ -62,7 +58,7 @@ python_prepare_all() { src_compile() { if use rust; then pushd rust/hg-cpython || die - cargo_src_compile + cargo_src_compile --no-default-features --features python3 --jobs $(makeopts_jobs) popd fi distutils-r1_src_compile @@ -74,7 +70,7 @@ python_compile() { if use rust; then local -x HGWITHRUSTEXT="cpython" fi - distutils-r1_python_compile build_ext --no-zstd + distutils-r1_python_compile build_ext } python_compile_all() { @@ -97,7 +93,7 @@ python_install() { if use rust; then local -x HGWITHRUSTEXT="cpython" fi - distutils-r1_python_install build_ext --no-zstd + distutils-r1_python_install build_ext } python_install_all() { @@ -151,6 +147,7 @@ src_test() { rm -f test-convert-mtn* # monotone rm -f test-convert-tla* # GNU Arch tla rm -f test-largefiles* # tends to time out + rm -f test-https* # requires to support tls1.0 if [[ ${EUID} -eq 0 ]]; then einfo "Removing tests which require user privileges to succeed" rm -f test-convert* @@ -168,12 +165,11 @@ src_test() { python_test() { local TEST_DIR - rm -rf "${TMPDIR}"/test distutils_install_for_testing cd tests || die - "${PYTHON}" run-tests.py --verbose \ - --tmpdir="${TMPDIR}"/test \ - --with-hg="${TEST_DIR}"/scripts/hg \ + "${PYTHON}" run-tests.py \ + --jobs $(makeopts_jobs) \ + --timeout 0 \ || die "Tests fail with ${EPYTHON}" }