From: "Hans de Graaff" <graaff@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/x25519/
Date: Sun, 21 Jun 2020 07:48:35 +0000 (UTC) [thread overview]
Message-ID: <1592725686.eea031d253fac214034a2b18e2ee16d4c3295a14.graaff@gentoo> (raw)
commit: eea031d253fac214034a2b18e2ee16d4c3295a14
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 21 07:47:55 2020 +0000
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Jun 21 07:48:06 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eea031d2
dev-ruby/x25519: precomputed impl only works on amd64
The precomputed implementation only works on amd64, so avoid it
on other arches and let them fall back to the unoptimized reference
implementation.
Closes: https://bugs.gentoo.org/728420
Closes: https://bugs.gentoo.org/728888
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
dev-ruby/x25519/x25519-1.0.8.ebuild | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/dev-ruby/x25519/x25519-1.0.8.ebuild b/dev-ruby/x25519/x25519-1.0.8.ebuild
index 36e65576f66..cd2b4a702e7 100644
--- a/dev-ruby/x25519/x25519-1.0.8.ebuild
+++ b/dev-ruby/x25519/x25519-1.0.8.ebuild
@@ -26,16 +26,27 @@ all_ruby_prepare() {
sed -i -e '/bundler/ s:^:#: ; /coverall/I s:^:#:' spec/spec_helper.rb || die
sed -i -e 's/git ls-files -z/find . -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ # The precomputed implementation only works on amd64
+ if ! use amd64 ; then
+ sed -i -e '/\(x25519_precomputed\|X25519::Provider::Precomputed\)/ s:^:#:' lib/x25519.rb || die
+ fi
}
each_ruby_configure() {
- ${RUBY} -Cext/x25519_precomputed extconf.rb || die
+ if use amd64 ; then
+ ${RUBY} -Cext/x25519_precomputed extconf.rb || die
+ fi
+
${RUBY} -Cext/x25519_ref10 extconf.rb || die
}
each_ruby_compile() {
- emake V=1 -Cext/x25519_precomputed
- cp ext/x25519_precomputed/x25519_precomputed.so lib/ || die
+ if use amd64 ; then
+ emake V=1 -Cext/x25519_precomputed
+ cp ext/x25519_precomputed/x25519_precomputed.so lib/ || die
+ fi
+
emake V=1 -Cext/x25519_ref10
cp ext/x25519_ref10/x25519_ref10.so lib/ || die
}
next reply other threads:[~2020-06-21 7:48 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-21 7:48 Hans de Graaff [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-12-31 8:05 [gentoo-commits] repo/gentoo:master commit in: dev-ruby/x25519/ Hans de Graaff
2023-03-28 19:24 Sam James
2023-03-28 19:15 Sam James
2023-03-28 19:15 Sam James
2023-03-28 19:05 Sam James
2023-03-10 20:29 Hans de Graaff
2022-10-08 6:26 Hans de Graaff
2022-08-17 15:39 Sam James
2022-04-16 7:08 Hans de Graaff
2022-04-02 8:03 Agostino Sarubbo
2022-03-31 9:04 Agostino Sarubbo
2022-03-31 9:01 Agostino Sarubbo
2022-03-31 5:39 Hans de Graaff
2022-03-30 11:09 Jakov Smolić
2021-11-21 8:31 Hans de Graaff
2021-10-14 6:44 Hans de Graaff
2020-07-21 9:33 Agostino Sarubbo
2020-07-21 9:31 Agostino Sarubbo
2020-07-21 9:29 Agostino Sarubbo
2020-07-21 8:48 Agostino Sarubbo
2020-07-20 2:23 Sam James
2020-07-11 17:43 Sam James
2020-07-11 15:28 Sam James
2020-07-11 3:39 Sam James
2020-07-05 6:39 Hans de Graaff
2020-01-19 6:52 Hans de Graaff
2019-09-18 16:01 Hans de Graaff
2019-09-17 5:38 Hans de Graaff
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=1592725686.eea031d253fac214034a2b18e2ee16d4c3295a14.graaff@gentoo \
--to=graaff@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