public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-ruby/bcrypt-ruby/files: bcrypt-ruby-3.0.1-undefined-symbols.patch
@ 2013-05-14 17:59 Hans de Graaff (graaff)
  0 siblings, 0 replies; 2+ messages in thread
From: Hans de Graaff (graaff) @ 2013-05-14 17:59 UTC (permalink / raw
  To: gentoo-commits

graaff      13/05/14 17:59:20

  Added:                bcrypt-ruby-3.0.1-undefined-symbols.patch
  Log:
  Remove unused code triggering unused symbols, bug 469690.
  
  (Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)

Revision  Changes    Path
1.1                  dev-ruby/bcrypt-ruby/files/bcrypt-ruby-3.0.1-undefined-symbols.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/bcrypt-ruby/files/bcrypt-ruby-3.0.1-undefined-symbols.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/bcrypt-ruby/files/bcrypt-ruby-3.0.1-undefined-symbols.patch?rev=1.1&content-type=text/plain

Index: bcrypt-ruby-3.0.1-undefined-symbols.patch
===================================================================
commit 94f8d0ae95ed773cb9e31a71e4046d3b97e11d70
Author: Aman Gupta <aman@tmm1.net>
Date:   Sat Mar 30 19:52:19 2013 -0700

    remove last of TBR code (fixes #46)

diff --git a/ext/mri/bcrypt_ext.c b/ext/mri/bcrypt_ext.c
index cce35df..13f5e4e 100644
--- a/ext/mri/bcrypt_ext.c
+++ b/ext/mri/bcrypt_ext.c
@@ -4,31 +4,6 @@
 static VALUE mBCrypt;
 static VALUE cBCryptEngine;
 
-#ifdef RUBY_VM
-#  define RUBY_1_9
-#endif
-
-#ifdef RUBY_1_9
-
-/* When on Ruby 1.9+, we will want to unlock the GIL while performing
- * expensive calculations, for greater concurrency. Do not do this for
- * cheap calculations because locking/unlocking the GIL incurs some overhead as well.
- */
-#define GIL_UNLOCK_COST_THRESHOLD 9
-
-typedef struct {
-    char       *output;
-    const char *key;
-    const char *salt;
-} BCryptArguments;
-
-static VALUE bcrypt_wrapper(void *_args) {
-    BCryptArguments *args = (BCryptArguments *)_args;
-    return (VALUE)ruby_bcrypt(args->output, args->key, args->salt);
-}
-
-#endif /* RUBY_1_9 */
-
 /* Given a logarithmic cost parameter, generates a salt for use with +bc_crypt+.
 */
 static VALUE bc_salt(VALUE self, VALUE prefix, VALUE count, VALUE input) {





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in dev-ruby/bcrypt-ruby/files: bcrypt-ruby-3.0.1-undefined-symbols.patch
@ 2014-03-19 14:01 Manuel Rueger (mrueg)
  0 siblings, 0 replies; 2+ messages in thread
From: Manuel Rueger (mrueg) @ 2014-03-19 14:01 UTC (permalink / raw
  To: gentoo-commits

mrueg       14/03/19 14:01:34

  Removed:              bcrypt-ruby-3.0.1-undefined-symbols.patch
  Log:
  Cleanup old.
  
  (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key )


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-03-19 14:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-14 17:59 [gentoo-commits] gentoo-x86 commit in dev-ruby/bcrypt-ruby/files: bcrypt-ruby-3.0.1-undefined-symbols.patch Hans de Graaff (graaff)
  -- strict thread matches above, loose matches on Subject: below --
2014-03-19 14:01 Manuel Rueger (mrueg)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox