Public bug reported:

Package ruby-murmurhash3 could work in two ways: native and pure ruby.
In Focal works in pure ruby only, which is slower than native extension.

How to reproduce:
$ docker run -it ubuntu:focal
# apt-get update && apt-get install ruby-murmurhash3
# ruby -e 'require "murmurhash3"'
Attention: used pure ruby version of MurmurHash3

I've made some further investigations. I've installed this library as a gem 
(apt-get install build-essential ruby-dev && gem install murmurhash3) and I've 
saw that message about pure ruby version didn't appear. I've searched, where is 
located file native.so. I've found it in 3 places:
/var/lib/gems/2.7.0/gems/murmurhash3-0.1.6/lib/native.so
/var/lib/gems/2.7.0/gems/murmurhash3-0.1.6/ext/murmurhash3/native.so
/var/lib/gems/2.7.0/extensions/x86_64-linux/2.7.0/murmurhash3-0.1.6/native.so

After restarting docker container, and installing ruby-murmurhash3 again, I 
copied file 
/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/extensions/x86_64-linux/2.7.0/murmurhash3-0.1.6/native.so
 to 
/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/gems/murmurhash3-0.1.6/ext/murmurhash3/
and the problem was solved.

Please, fix the package this way.

Current package version:
ruby-murmurhash3 0.1.6-2build1 amd64

** Affects: ruby-murmurhash3 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1915857

Title:
  native extension doesn't work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ruby-murmurhash3/+bug/1915857/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to