Comment 11 for bug 1979128

Revision history for this message
Mitsuya Shibata (cosmos-door) wrote :

I have tried fixed bsfilter package with ruby-sdbm in jammy-updates pocket. Its result is ok.

Would anyone like to sponsor comment 8's patch?

https://bugs.launchpad.net/ubuntu/+source/ruby-sdbm/+bug/1979128/comments/8

# apt install ./bsfilter_1.0.19-2.1ubuntu1_all.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'bsfilter' instead of './bsfilter_1.0.19-2.1ubuntu1_all.deb'
The following additional packages will be installed:
  ruby-sdbm
Suggested packages:
  ruby-mecab ruby-qdbm
The following NEW packages will be installed:
  bsfilter ruby-sdbm
0 upgraded, 2 newly installed, 0 to remove and 3 not upgraded.
Need to get 16.5 kB/82.3 kB of archives.
After this operation, 285 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 /root/bsfilter_1.0.19-2.1ubuntu1_all.deb bsfilter all 1:1.0.19-2.1ubuntu1 [65.9 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 ruby-sdbm amd64 1.0.0-2~ubuntu0.22.04.1 [16.5 kB]
Fetched 16.5 kB in 1s (22.6 kB/s)
Selecting previously unselected package ruby-sdbm.
(Reading database ... 37125 files and directories currently installed.)
Preparing to unpack .../ruby-sdbm_1.0.0-2~ubuntu0.22.04.1_amd64.deb ...
Unpacking ruby-sdbm (1.0.0-2~ubuntu0.22.04.1) ...
Selecting previously unselected package bsfilter.
Preparing to unpack .../bsfilter_1.0.19-2.1ubuntu1_all.deb ...
Unpacking bsfilter (1:1.0.19-2.1ubuntu1) ...
Setting up ruby-sdbm (1.0.0-2~ubuntu0.22.04.1) ...
Setting up bsfilter (1:1.0.19-2.1ubuntu1) ...
Processing triggers for man-db (2.10.2-1) ...

# bsfilter --sub-clean --add-spam --insert-flag --insert-probability --update foo
/usr/bin/bsfilter:326:in `open_ro': foo is not file (RuntimeError)
        from /usr/bin/bsfilter:2311:in `block in update_token_dbs'
        from /usr/bin/bsfilter:2310:in `each'
        from /usr/bin/bsfilter:2310:in `update_token_dbs'
        from /usr/bin/bsfilter:3336:in `run'
        from /usr/bin/bsfilter:3414:in `<main>'