bsfilter on jammy needs ruby-sdbm

Bug #1972040 reported by haruyama
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bsfilter (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

# Problem

% bsfilter ~/Mail/fcc/1
<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- sdbm (LoadError)
Did you mean? dbm
 from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in `require'
 from /usr/bin/bsfilter:3106:in `get_options'
 from /usr/bin/bsfilter:3262:in `setup'
 from /usr/bin/bsfilter:3413:in `<main>'

# Workaround

Download and use ruby-sdbm_1.0.0-2_amd64.deb

% wget http://mirrors.kernel.org/ubuntu/pool/universe/r/ruby-sdbm/ruby-sdbm_1.0.0-2_amd64.deb
...
% sudo dpkg -i ruby-sdbm_1.0.0-2_amd64.deb
...
% bsfilter ~/Mail/fcc/1
combined probability /home/haruyama/Mail/fcc/1 1 0.500001

# Environment

% lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy

% dpkg -l bsfilter ruby
...
ii bsfilter 1:1.0.19-2.1 all Bayesian spam filter
ii ruby 1:3.0~exp1 amd64 Interpreter of object-oriented scripting language Ruby (default version)

% apt-cache policy bsfilter
bsfilter:
  インストールされているバージョン: 1:1.0.19-2.1
  候補: 1:1.0.19-2.1
  バージョンテーブル:
 *** 1:1.0.19-2.1 500
        500 http://jp.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        500 http://jp.archive.ubuntu.com/ubuntu jammy/universe i386 Packages
        100 /var/lib/dpkg/status

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

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

Changed in bsfilter (Ubuntu):
status: New → Confirmed
Revision history for this message
Mitsuya Shibata (cosmos-door) wrote :

I requested SRU: LP #1979128

If it is accepted, then we needs add ruby-sdbm to Depends field.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

As the SRU is adding the missing depends, and that is being tracked in bug #1979128, I'll close this one as a duplicate.

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.