native extension doesn't work

Bug #1915857 reported by Alexey Temnikov
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ruby-murmurhash3 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

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

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ruby-murmurhash3 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.