summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2015-04-09 20:01:50 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2015-04-09 20:01:50 +0000
commit52b784095cf5e9855a6e3cf28632e2897eefdce2 (patch)
treed419e99fa13383401429b2450eac2cb33e3e6b51 /dev-haskell
parentSecurity bump (bug #545968). Fixed slot dependency on openssl (diff)
downloadgentoo-2-52b784095cf5e9855a6e3cf28632e2897eefdce2.tar.gz
gentoo-2-52b784095cf5e9855a6e3cf28632e2897eefdce2.tar.bz2
gentoo-2-52b784095cf5e9855a6e3cf28632e2897eefdce2.zip
Enable AES-NI only when both AES-NI and sSSE3 are present. Bug #545926 and fix by Luke-Jr.
(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)
Diffstat (limited to 'dev-haskell')
-rw-r--r--dev-haskell/cipher-aes/ChangeLog7
-rw-r--r--dev-haskell/cipher-aes/cipher-aes-0.2.10.ebuild12
2 files changed, 15 insertions, 4 deletions
diff --git a/dev-haskell/cipher-aes/ChangeLog b/dev-haskell/cipher-aes/ChangeLog
index a0901891875c..a2f8418c6b30 100644
--- a/dev-haskell/cipher-aes/ChangeLog
+++ b/dev-haskell/cipher-aes/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-haskell/cipher-aes
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-haskell/cipher-aes/ChangeLog,v 1.13 2015/04/09 07:55:45 slyfox Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/cipher-aes/ChangeLog,v 1.14 2015/04/09 20:01:50 slyfox Exp $
+
+ 09 Apr 2015; Sergei Trofimovich <slyfox@gentoo.org> cipher-aes-0.2.10.ebuild,
+ metadata.xml:
+ Enable AES-NI only when both AES-NI and sSSE3 are present. Bug #545926 and fix
+ by Luke-Jr.
09 Apr 2015; Sergei Trofimovich <slyfox@gentoo.org> cipher-aes-0.2.10.ebuild,
metadata.xml:
diff --git a/dev-haskell/cipher-aes/cipher-aes-0.2.10.ebuild b/dev-haskell/cipher-aes/cipher-aes-0.2.10.ebuild
index 071642860ae7..e2156b8a6628 100644
--- a/dev-haskell/cipher-aes/cipher-aes-0.2.10.ebuild
+++ b/dev-haskell/cipher-aes/cipher-aes-0.2.10.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-haskell/cipher-aes/cipher-aes-0.2.10.ebuild,v 1.2 2015/04/09 07:55:45 slyfox Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/cipher-aes/cipher-aes-0.2.10.ebuild,v 1.3 2015/04/09 20:01:50 slyfox Exp $
EAPI=5
@@ -17,7 +17,7 @@ SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86"
-IUSE="cpu_flags_x86_aes"
+IUSE="cpu_flags_x86_aes cpu_flags_x86_ssse3"
RDEPEND="dev-haskell/byteable:=[profile?]
>=dev-haskell/crypto-cipher-types-0.0.6:=[profile?] <dev-haskell/crypto-cipher-types-0.1:=[profile?]
@@ -33,6 +33,12 @@ DEPEND="${RDEPEND}
"
src_configure() {
+ local want_aes="-"
+
+ use cpu_flags_x86_aes && \
+ use cpu_flags_x86_ssse3 && \
+ want_aes=""
+
haskell-cabal_src_configure \
- $(cabal_flag cpu_flags_x86_aes support_aesni)
+ --flag=${want_aes}support_aesni
}