commit:     c41d621d80478575b66c8615f2f66af5a718c1be
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Thu Feb  9 15:44:57 2023 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Thu Feb  9 16:16:52 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c41d621d

dev-haskell/hashable: bring back USE=random-initial-seed (off by default).

This can break some legitimate use cases (e.g. Hakyll), so I've brought
back the USE flag and left it disabled by default.

Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 .../{hashable-1.4.0.2.ebuild => hashable-1.4.0.2-r1.ebuild}        | 5 +++--
 dev-haskell/hashable/metadata.xml                                  | 7 +++++++
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/dev-haskell/hashable/hashable-1.4.0.2.ebuild 
b/dev-haskell/hashable/hashable-1.4.0.2-r1.ebuild
similarity index 90%
rename from dev-haskell/hashable/hashable-1.4.0.2.ebuild
rename to dev-haskell/hashable/hashable-1.4.0.2-r1.ebuild
index a0740a70433d..0129b281b8c9 100644
--- a/dev-haskell/hashable/hashable-1.4.0.2.ebuild
+++ b/dev-haskell/hashable/hashable-1.4.0.2-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -18,6 +18,7 @@ SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz";
 LICENSE="BSD"
 SLOT="0/${PV}"
 KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="random-initial-seed"
 
 RDEPEND=">=dev-haskell/base-orphans-0.8.6:=[profile?]
        >=dev-lang/ghc-8.4.3:=
@@ -34,5 +35,5 @@ DEPEND="${RDEPEND}
 src_configure() {
        haskell-cabal_src_configure \
                --flag=integer-gmp \
-               --flag=random-initial-seed
+               $(cabal_flag random-initial-seed random-initial-seed)
 }

diff --git a/dev-haskell/hashable/metadata.xml 
b/dev-haskell/hashable/metadata.xml
index 56c3b878bc95..5be219a30b88 100644
--- a/dev-haskell/hashable/metadata.xml
+++ b/dev-haskell/hashable/metadata.xml
@@ -5,6 +5,13 @@
                <email>[email protected]</email>
                <name>Gentoo Haskell</name>
        </maintainer>
+       <use>
+               <flag name="random-initial-seed">
+               Randomly initialize the seed on every executable invocation. 
This
+               is not a security feature and is intended only for testing (it
+               can affect legitimate use cases).
+               </flag>
+       </use>
        <longdescription>
                This package defines a class, 'Hashable', for types that
                can be converted to a hash value.  This class

Reply via email to