public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyopenssl/
Date: Mon, 12 Apr 2021 14:08:05 +0000 (UTC)	[thread overview]
Message-ID: <1618236460.b162e302e7d24fc8c858398efc074f8c1372d56b.mgorny@gentoo> (raw)

commit:     b162e302e7d24fc8c858398efc074f8c1372d56b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 12 14:07:40 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Apr 12 14:07:40 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b162e302

dev-python/pyopenssl: Skip broken test with 32-bit time_t

Closes: https://bugs.gentoo.org/771636
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pyopenssl/pyopenssl-20.0.1.ebuild | 29 +++++++++++++++++++++-------
 1 file changed, 22 insertions(+), 7 deletions(-)

diff --git a/dev-python/pyopenssl/pyopenssl-20.0.1.ebuild b/dev-python/pyopenssl/pyopenssl-20.0.1.ebuild
index 311b787c176..84950bbdcc0 100644
--- a/dev-python/pyopenssl/pyopenssl-20.0.1.ebuild
+++ b/dev-python/pyopenssl/pyopenssl-20.0.1.ebuild
@@ -6,7 +6,7 @@ EAPI=7
 PYTHON_COMPAT=( python3_{7..9} pypy3 )
 PYTHON_REQ_USE="threads(+)"
 
-inherit distutils-r1 flag-o-matic
+inherit distutils-r1 flag-o-matic toolchain-funcs
 
 MY_PN=pyOpenSSL
 MY_P=${MY_PN}-${PV}
@@ -39,13 +39,28 @@ distutils_enable_sphinx doc \
 	dev-python/sphinx_rtd_theme
 distutils_enable_tests pytest
 
-python_prepare_all() {
-	# Requires network access
-	sed -i -e 's/test_set_default_verify_paths/_&/' tests/test_ssl.py || die
-	distutils-r1_python_prepare_all
+src_configure() {
+	# test for 32-bit time_t
+	"$(tc-getCC)" ${CFLAGS} ${CPPFLAGS} -c -x c - -o /dev/null <<-EOF &>/dev/null
+		#include <sys/types.h>
+		int test[sizeof(time_t) >= 8 ? 1 : -1];
+	EOF
+	if [[ ${?} -eq 0 ]]; then
+		PYOPENSSL_SKIP_LARGE_TIME=
+		einfo "time_t is at least 64-bit long"
+	else
+		PYOPENSSL_SKIP_LARGE_TIME=1
+		einfo "time_t is smaller than 64 bits, will skip broken tests"
+	fi
 }
 
-src_test() {
+python_test() {
 	local -x TZ=UTC
-	distutils-r1_src_test
+	local deselect=(
+		tests/test_ssl.py::TestContext::test_set_default_verify_paths
+	)
+	[[ ${PYOPENSSL_SKIP_LARGE_TIME} ]] && deselect+=(
+		tests/test_crypto.py::TestX509StoreContext::test_verify_with_time
+	)
+	epytest ${deselect[@]/#/--deselect }
 }


             reply	other threads:[~2021-04-12 14:08 UTC|newest]

Thread overview: 200+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-12 14:08 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-12 18:53 [gentoo-commits] repo/gentoo:master commit in: dev-python/pyopenssl/ Michał Górny
2024-08-12 17:18 Arthur Zamarin
2024-08-10 15:41 Michał Górny
2024-08-10  8:35 Michał Górny
2024-08-10  8:17 Michał Górny
2024-08-10  7:25 Michał Górny
2024-08-10  6:43 Michał Górny
2024-08-10  6:26 Michał Górny
2024-07-21 18:28 Michał Górny
2024-05-11  6:54 Michał Górny
2024-05-02  1:37 Michał Górny
2024-05-01 23:18 Ionen Wolkens
2024-05-01 23:18 Ionen Wolkens
2024-05-01 23:18 Ionen Wolkens
2024-05-01 23:18 Ionen Wolkens
2024-04-20  9:18 Michał Górny
2024-04-17  6:54 Sam James
2024-03-30 14:53 Michał Górny
2024-03-10  3:35 Michał Górny
2024-02-24  8:49 Michał Górny
2024-02-24  2:44 Ionen Wolkens
2024-02-08 17:10 Arthur Zamarin
2024-02-08 15:28 Michał Górny
2024-02-08 15:28 Michał Górny
2024-02-08 14:43 Michał Górny
2024-02-08 14:43 Michał Górny
2024-01-23  4:39 Michał Górny
2023-12-16 16:59 Michał Górny
2023-12-15 15:50 Arthur Zamarin
2023-12-15 12:41 Arthur Zamarin
2023-12-15 11:36 Arthur Zamarin
2023-12-15 11:30 Arthur Zamarin
2023-12-15 11:02 Arthur Zamarin
2023-12-15 10:50 Arthur Zamarin
2023-10-26 12:19 Michał Górny
2023-08-25  8:46 Michał Górny
2023-08-25  4:52 Arthur Zamarin
2023-08-02 17:11 Arthur Zamarin
2023-07-20 10:16 WANG Xuerui
2023-07-09 19:36 Arthur Zamarin
2023-07-09 18:30 Arthur Zamarin
2023-07-09 17:08 Arthur Zamarin
2023-07-09 16:51 Arthur Zamarin
2023-07-09 16:51 Arthur Zamarin
2023-06-08  8:51 Michał Górny
2023-05-27 13:21 Michał Górny
2023-04-25 15:00 Michał Górny
2023-04-25 11:36 Arthur Zamarin
2023-04-25  0:31 Sam James
2023-04-25  0:31 Sam James
2023-04-25  0:31 Sam James
2023-04-25  0:31 Sam James
2023-04-25  0:31 Sam James
2023-04-24 23:20 Sam James
2023-03-28  5:19 Michał Górny
2023-03-25 17:19 Michał Górny
2023-03-24 19:06 Arthur Zamarin
2023-02-07  9:26 Michał Górny
2023-02-07  2:53 Sam James
2023-02-03 16:56 Arthur Zamarin
2023-02-03 16:56 Sam James
2023-02-03 16:56 Sam James
2023-02-03 16:56 Sam James
2023-02-03 16:55 Sam James
2023-02-03 16:55 Sam James
2023-01-02 14:54 Michał Górny
2022-11-04  8:38 Michał Górny
2022-11-04  8:16 Agostino Sarubbo
2022-11-03 21:06 Arthur Zamarin
2022-11-03 21:06 Arthur Zamarin
2022-11-03 21:01 Arthur Zamarin
2022-11-03 19:47 Arthur Zamarin
2022-11-03 19:35 Arthur Zamarin
2022-11-03 19:28 Sam James
2022-09-26 11:21 Michał Górny
2022-07-29 13:39 Michał Górny
2022-07-29 10:37 Arthur Zamarin
2022-07-04  6:57 Michał Górny
2022-07-02 12:21 Arthur Zamarin
2022-06-30 18:16 Arthur Zamarin
2022-06-01  8:12 Agostino Sarubbo
2022-06-01  8:11 Agostino Sarubbo
2022-06-01  8:10 Agostino Sarubbo
2022-06-01  8:09 Agostino Sarubbo
2022-05-31 22:08 Sam James
2022-05-31 22:08 Sam James
2022-05-27 19:55 Michał Górny
2022-05-27 11:02 Jakov Smolić
2022-05-27  9:49 Jakov Smolić
2022-05-27  9:25 Jakov Smolić
2022-05-27  9:21 Jakov Smolić
2022-05-27  9:18 Jakov Smolić
2022-05-27  9:18 Jakov Smolić
2022-05-27  9:12 Jakov Smolić
2022-05-27  9:07 Jakov Smolić
2022-05-12 16:17 Michał Górny
2022-05-12 16:17 Michał Górny
2022-04-27 11:44 Arthur Zamarin
2022-04-27 11:44 Arthur Zamarin
2022-04-27 11:44 Arthur Zamarin
2022-04-27 11:44 Arthur Zamarin
2022-04-22 17:31 Arthur Zamarin
2022-04-22  8:46 Jakov Smolić
2022-04-21 19:56 Michał Górny
2022-04-15  6:43 Sam James
2022-02-07  9:35 Sam James
2021-11-28 14:42 Michał Górny
2021-05-20 20:11 Michał Górny
2021-05-15 21:36 Michał Górny
2021-05-15 19:07 Sam James
2021-05-10  6:58 Agostino Sarubbo
2021-05-02 22:09 Sergei Trofimovich
2021-04-30 23:43 Sam James
2021-01-21 21:09 Sam James
2021-01-19  7:04 Sergei Trofimovich
2021-01-19  2:20 Sam James
2021-01-19  2:20 Sam James
2021-01-18 16:52 Sam James
2021-01-11 17:34 Sergei Trofimovich
2021-01-10 14:30 Sam James
2021-01-08 12:20 Sam James
2021-01-05 21:03 Sam James
2020-12-16 10:09 Michał Górny
2020-11-28  8:43 Michał Górny
2020-09-20 13:11 Michał Górny
2020-05-25 19:48 Michał Górny
2020-04-22  8:15 Michał Górny
2020-04-11 11:21 Mart Raudsepp
2020-04-05 19:01 Sergei Trofimovich
2020-03-18 11:13 Agostino Sarubbo
2020-03-18 11:11 Agostino Sarubbo
2020-03-18 11:04 Agostino Sarubbo
2020-03-18 11:00 Agostino Sarubbo
2020-03-18  9:56 Agostino Sarubbo
2020-03-18  9:51 Agostino Sarubbo
2020-03-18  9:49 Agostino Sarubbo
2020-03-18  9:46 Agostino Sarubbo
2020-03-18  7:27 Michał Górny
2019-11-25 12:35 Michał Górny
2019-11-21 13:03 Michał Górny
2019-11-19  7:02 Michał Górny
2019-11-19  7:02 Michał Górny
2019-06-12 17:08 Michael Haubenwallner
2019-05-11 19:06 Matthew Thode
2019-02-22 19:40 Craig Andrews
2018-12-30  9:22 Tim Harder
2018-11-19 21:15 Fabian Groffen
2018-06-27  8:19 Fabian Groffen
2018-06-26 18:26 Fabian Groffen
2018-06-21 12:11 Fabian Groffen
2018-05-30 19:52 Mike Frysinger
2018-05-15  1:47 Aaron Bauman
2018-04-22 20:19 Matt Turner
2018-04-16 21:06 Sergei Trofimovich
2018-04-15  9:20 Sergei Trofimovich
2018-04-15  5:37 Matt Turner
2018-04-14 16:53 Sergei Trofimovich
2018-03-31 18:58 Matt Thode
2018-03-31  5:02 Matt Turner
2018-03-31  2:41 Matt Thode
2018-03-14 21:45 Sergei Trofimovich
2018-02-22  6:22 Michał Górny
2018-02-19  0:54 Matt Thode
2018-01-23 20:18 Michał Górny
2017-11-27 17:53 Mike Gilbert
2017-11-26 18:15 Tim Harder
2017-10-08 16:53 Tim Harder
2017-09-30  1:03 Matt Thode
2017-09-22  7:34 Sergei Trofimovich
2017-09-10 11:49 Sergei Trofimovich
2017-08-01 20:06 Michał Górny
2017-08-01 18:52 Brian Dolbec
2017-05-19 13:37 Michael Weber
2017-05-15  9:47 Lars Wendler
2017-05-03 11:02 Michał Górny
2017-02-19 17:46 Mike Gilbert
2017-01-23  6:24 Jeroen Roovers
2017-01-15 20:22 Markus Meier
2017-01-08  9:52 Aaron Bauman
2017-01-06 14:33 Tobias Klausmann
2016-11-30 18:05 Michał Górny
2016-11-30 18:05 Michał Górny
2016-10-25 20:27 Lars Wendler
2016-10-24 11:30 Lars Wendler
2016-10-24 11:30 Lars Wendler
2016-09-05 21:50 Manuel Rüger
2016-06-21  2:47 Mike Frysinger
2016-05-13  1:15 Mike Frysinger
2016-03-20 10:19 Dirkjan Ochtman
2016-03-19 11:35 Agostino Sarubbo
2016-02-03 20:53 Markus Meier
2016-02-02 16:46 Tobias Klausmann
2016-01-24 17:35 Agostino Sarubbo
2016-01-24  8:23 Jeroen Roovers
2016-01-24  8:16 Jeroen Roovers
2015-11-11 17:27 Justin Lecher
2015-10-18 16:48 Mikle Kolyada
2015-10-11  7:05 Justin Lecher
2015-08-26 14:47 Manuel Rüger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1618236460.b162e302e7d24fc8c858398efc074f8c1372d56b.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox