summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2015-08-31 19:27:35 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2015-08-31 19:27:35 +0100
commitbaad1564153376068bc6dbe9c3289c912640b172 (patch)
tree7299390208b2d3242bedf987796e240d253ae1e0 /dev-haskell/asn1-encoding/asn1-encoding-0.9.0.ebuild
parentapp-crypt/libsecret: drop old revision (diff)
downloadgentoo-baad1564153376068bc6dbe9c3289c912640b172.tar.gz
gentoo-baad1564153376068bc6dbe9c3289c912640b172.tar.bz2
gentoo-baad1564153376068bc6dbe9c3289c912640b172.zip
dev-haskell/asn1-encoding: workaround test failures on 32-bit systems
On 32-bit systems Hourglass silently breaks dates out of range '1970 +- 68' years due to use of 'time_t' and 'gmtime_r' from installed libc. Workaround test failures by not testing times out of this range. Github-bug: https://github.com/vincenthz/hs-hourglass/issues/21 Github-bug: https://github.com/vincenthz/hs-asn1/issues/12 Package-Manager: portage-2.2.20
Diffstat (limited to 'dev-haskell/asn1-encoding/asn1-encoding-0.9.0.ebuild')
-rw-r--r--dev-haskell/asn1-encoding/asn1-encoding-0.9.0.ebuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/dev-haskell/asn1-encoding/asn1-encoding-0.9.0.ebuild b/dev-haskell/asn1-encoding/asn1-encoding-0.9.0.ebuild
index 48aeaf7f46fd..cc2e59c1c5c3 100644
--- a/dev-haskell/asn1-encoding/asn1-encoding-0.9.0.ebuild
+++ b/dev-haskell/asn1-encoding/asn1-encoding-0.9.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -29,3 +29,7 @@ DEPEND="${RDEPEND}
dev-haskell/tasty-quickcheck
dev-haskell/text )
"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-32bit-tests.patch
+}