diff options
| author | Sam James <sam@gentoo.org> | 2020-07-24 16:32:17 +0000 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2020-07-24 17:09:07 +0000 |
| commit | c6013fbfc0e43ab9a79cf9e7854fb8779f367291 (patch) | |
| tree | 50540b913fc4cd8eae3b0b784205ebbcc32c92e8 /dev-python/ndg-httpsclient/ndg-httpsclient-0.5.1.ebuild | |
| parent | d4e4792527ec62f064c94e1c98852412b7e932bc (diff) | |
| download | gentoo-c6013fbfc0e43ab9a79cf9e7854fb8779f367291.tar.gz gentoo-c6013fbfc0e43ab9a79cf9e7854fb8779f367291.tar.bz2 gentoo-c6013fbfc0e43ab9a79cf9e7854fb8779f367291.zip | |
dev-python/ndg-httpsclient: fix tests with upstream patch
This isn't an ideal fix. The problem was that upstream's
bundled certs had expired. Now we have a newer set provided and
the necessary keys.
We may want to use the keys to generate our own certificates
if upstream are inactive in future.
Note that we drop the libfaketime dependency because:
1) it's no longer necessary;
2) it was causing segfaults in Portage's sandbox sometimes.
Closes: https://bugs.gentoo.org/720804
Package-Manager: Portage-3.0.0, Repoman-2.3.23
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/ndg-httpsclient/ndg-httpsclient-0.5.1.ebuild')
| -rw-r--r-- | dev-python/ndg-httpsclient/ndg-httpsclient-0.5.1.ebuild | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/dev-python/ndg-httpsclient/ndg-httpsclient-0.5.1.ebuild b/dev-python/ndg-httpsclient/ndg-httpsclient-0.5.1.ebuild index ad71ec5355d3..decab37558b2 100644 --- a/dev-python/ndg-httpsclient/ndg-httpsclient-0.5.1.ebuild +++ b/dev-python/ndg-httpsclient/ndg-httpsclient-0.5.1.ebuild @@ -28,16 +28,15 @@ DEPEND="${RDEPEND} test? ( !!<dev-python/ndg-httpsclient-0.4.2-r1 dev-libs/openssl:0 - sys-libs/libfaketime )" +PATCHES=( + "${FILESDIR}/${P}-expiration-test-fix.patch" +) + distutils_enable_tests unittest src_test() { - # bundled certificates expired, so we need a time machine - local -x FAKETIME="@2019-12-01 12:00:00" - local -x LD_PRELOAD="libfaketime.so:${LD_PRELOAD}" - # we need to start a fake https server for tests to connect to ( cd ndg/httpsclient/test && sh ./scripts/openssl_https_server.sh ) & local server_pid=${!} |
