public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michael Orlitzky" <mjo@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-haskell/hashable/
Date: Thu,  9 Feb 2023 16:17:43 +0000 (UTC)	[thread overview]
Message-ID: <1675959412.c41d621d80478575b66c8615f2f66af5a718c1be.mjo@gentoo> (raw)

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>haskell@gentoo.org</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	other threads:[~2023-02-09 16:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-09 16:17 Michael Orlitzky [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-03-25 14:39 [gentoo-commits] repo/gentoo:master commit in: dev-haskell/hashable/ Sam James
2019-12-14 21:27 Sergei Trofimovich
2019-05-29  6:59 Michael Haubenwallner
2016-07-20 20:17 Sergei Trofimovich
2016-02-06 18:28 Sergei Trofimovich
2016-02-06 18:28 Sergei Trofimovich

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=1675959412.c41d621d80478575b66c8615f2f66af5a718c1be.mjo@gentoo \
    --to=mjo@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