2022-06-19 05:25:15 |
Mitsuya Shibata |
bug |
|
|
added bug |
2022-06-19 06:06:48 |
Mitsuya Shibata |
attachment added |
|
Build log ruby-sbdm on jammy by pbuilder-dist https://bugs.launchpad.net/ubuntu/+source/ruby-sdbm/+bug/1979128/+attachment/5598208/+files/ruby-sdbm_1.0.0-2_amd64.build |
|
2022-06-19 06:07:08 |
Mitsuya Shibata |
bug |
|
|
added subscriber Ubuntu Sponsors Team |
2022-11-23 19:05:00 |
Lucas Kanashiro |
tags |
|
server-todo |
|
2022-11-23 19:05:11 |
Lucas Kanashiro |
bug |
|
|
added subscriber Ubuntu Server |
2022-11-23 19:05:12 |
Lucas Kanashiro |
ruby-sdbm (Ubuntu): assignee |
|
Lucas Kanashiro (lucaskanashiro) |
|
2022-11-29 19:30:04 |
Lucas Kanashiro |
bug task added |
|
bsfilter (Ubuntu) |
|
2022-11-29 19:30:17 |
Lucas Kanashiro |
nominated for series |
|
Ubuntu Jammy |
|
2022-11-29 19:30:17 |
Lucas Kanashiro |
bug task added |
|
bsfilter (Ubuntu Jammy) |
|
2022-11-29 19:30:17 |
Lucas Kanashiro |
bug task added |
|
ruby-sdbm (Ubuntu Jammy) |
|
2022-11-29 19:30:26 |
Lucas Kanashiro |
ruby-sdbm (Ubuntu Jammy): assignee |
|
Lucas Kanashiro (lucaskanashiro) |
|
2022-11-29 19:30:29 |
Lucas Kanashiro |
ruby-sdbm (Ubuntu): assignee |
Lucas Kanashiro (lucaskanashiro) |
|
|
2022-11-29 19:30:43 |
Lucas Kanashiro |
ruby-sdbm (Ubuntu): status |
New |
Fix Released |
|
2022-11-29 19:31:59 |
Lucas Kanashiro |
description |
[Impact]
In Ruby 3.0, sdbm has been removed from the standard library[1]. However, some packages, such as the bsfilter package, will fail at startup without the sdbm library, LP: #1972040 .
The ruby-sdbm package does not exist in Jammy, only in Kinetic. Therefore, backporting ruby-sdbm from kinetic to jammy and relying on ruby-sdbm on the bsfilter side seems to solve the problem.
[1] https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/
[Test Plan]
How to reproduce the bug.
$ sudo apt install bsfilter
$ bsfilter
<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>'
[Where problems could occur]
The ruby-sdbm package does not exist in Jammy, I do not believe that any regression will occur. |
[Impact]
In Ruby 3.0, sdbm has been removed from the standard library[1]. However, some packages, such as the bsfilter package, will fail at startup without the sdbm library, LP: #1972040 .
The ruby-sdbm package does not exist in Jammy, only in Kinetic. Therefore, backporting ruby-sdbm from kinetic to jammy and relying on ruby-sdbm on the bsfilter side seems to solve the problem.
[1] https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/
[Test Plan]
$ lxc launch ubuntu-daily:jammy ruby-sdbm-test
$ lxc shell ruby-sdbm-test
# apt install -y ruby-sdbm
# ruby -e "require 'sdbm'; SDBM.open 'my_database' do |db| db.update('foo' => 'bar') end"
The command above will create 2 files: my_database.dir and my_database.pag. No exception is expected.
[Where problems could occur]
The ruby-sdbm package does not exist in Jammy, I do not believe that any regression will occur. |
|
2022-11-29 19:32:04 |
Lucas Kanashiro |
ruby-sdbm (Ubuntu Jammy): status |
New |
In Progress |
|
2022-11-29 19:32:10 |
Lucas Kanashiro |
bsfilter (Ubuntu Jammy): status |
New |
Triaged |
|
2022-11-29 19:34:23 |
Lucas Kanashiro |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2022-11-29 19:37:50 |
Lucas Kanashiro |
bsfilter (Ubuntu): status |
New |
Fix Released |
|
2022-12-05 09:13:33 |
Łukasz Zemczak |
ruby-sdbm (Ubuntu Jammy): status |
In Progress |
Fix Committed |
|
2022-12-05 09:13:35 |
Łukasz Zemczak |
bug |
|
|
added subscriber SRU Verification |
2022-12-05 09:13:37 |
Łukasz Zemczak |
tags |
server-todo |
server-todo verification-needed verification-needed-jammy |
|
2022-12-05 09:13:47 |
Łukasz Zemczak |
removed subscriber Ubuntu Sponsors Team |
|
|
|
2022-12-05 11:44:11 |
Mitsuya Shibata |
tags |
server-todo verification-needed verification-needed-jammy |
server-todo verification-done verification-done-jammy |
|
2022-12-10 11:46:14 |
Mitsuya Shibata |
attachment added |
|
debdiff for bsfilter https://bugs.launchpad.net/ubuntu/+source/ruby-sdbm/+bug/1979128/+attachment/5635286/+files/debdiff.patch |
|
2022-12-10 11:46:33 |
Mitsuya Shibata |
bsfilter (Ubuntu Jammy): status |
Triaged |
In Progress |
|
2022-12-10 11:46:38 |
Mitsuya Shibata |
bsfilter (Ubuntu Jammy): assignee |
|
Mitsuya Shibata (cosmos-door) |
|
2022-12-13 00:38:18 |
Launchpad Janitor |
ruby-sdbm (Ubuntu Jammy): status |
Fix Committed |
Fix Released |
|
2022-12-13 00:38:23 |
Brian Murray |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2022-12-15 14:39:26 |
Mitsuya Shibata |
bug |
|
|
added subscriber Ubuntu Sponsors Team |
2022-12-15 15:49:42 |
Mitsuya Shibata |
attachment added |
|
debdiff.patch https://bugs.launchpad.net/ubuntu/+source/ruby-sdbm/+bug/1979128/+attachment/5635753/+files/debdiff.patch |
|
2022-12-25 09:22:58 |
Mitsuya Shibata |
attachment added |
|
debdiff.patch https://bugs.launchpad.net/ubuntu/+source/bsfilter/+bug/1979128/+attachment/5637579/+files/debdiff.patch |
|
2022-12-25 09:45:26 |
Mitsuya Shibata |
description |
[Impact]
In Ruby 3.0, sdbm has been removed from the standard library[1]. However, some packages, such as the bsfilter package, will fail at startup without the sdbm library, LP: #1972040 .
The ruby-sdbm package does not exist in Jammy, only in Kinetic. Therefore, backporting ruby-sdbm from kinetic to jammy and relying on ruby-sdbm on the bsfilter side seems to solve the problem.
[1] https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/
[Test Plan]
$ lxc launch ubuntu-daily:jammy ruby-sdbm-test
$ lxc shell ruby-sdbm-test
# apt install -y ruby-sdbm
# ruby -e "require 'sdbm'; SDBM.open 'my_database' do |db| db.update('foo' => 'bar') end"
The command above will create 2 files: my_database.dir and my_database.pag. No exception is expected.
[Where problems could occur]
The ruby-sdbm package does not exist in Jammy, I do not believe that any regression will occur. |
[Impact]
In jammy, the bsfilter package assumes that ruby has the sdbm library built in. However, the sdbm library was removed in Ruby 3.0 and became a separate package. Therefore, the learning function of bsfilter does not work anymore.
Therefore, we will add the ruby-sdbm package to bsfilter's Depends field.
[Test Plan]
$ lxc launch ubuntu-daily:jammy bsfilter-test
$ lxc shell bsfilter-test
# apt install -y bsfilter
# touch foo
# bsfilter --sub-clean --add-spam --insert-flag --insert-probability --update foo
# echo $?
0
no display load error for "require" instruction, and bsfilter command should succeed.
[Where problems could occur]
The bsfilter command always fails if ruby-sdbm is not installed, because it tries to load the sdbm library by default if the DB option is unspecified. Therefore, I consider that there is no risk of regression.
---
Following for SRU of ruby-sdbm
[Impact]
In Ruby 3.0, sdbm has been removed from the standard library[1]. However, some packages, such as the bsfilter package, will fail at startup without the sdbm library, LP: #1972040 .
The ruby-sdbm package does not exist in Jammy, only in Kinetic. Therefore, backporting ruby-sdbm from kinetic to jammy and relying on ruby-sdbm on the bsfilter side seems to solve the problem.
[1] https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/
[Test Plan]
$ lxc launch ubuntu-daily:jammy ruby-sdbm-test
$ lxc shell ruby-sdbm-test
# apt install -y ruby-sdbm
# ruby -e "require 'sdbm'; SDBM.open 'my_database' do |db| db.update('foo' => 'bar') end"
The command above will create 2 files: my_database.dir and my_database.pag. No exception is expected.
[Where problems could occur]
The ruby-sdbm package does not exist in Jammy, I do not believe that any regression will occur. |
|
2023-01-03 20:29:53 |
Lucas Kanashiro |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2023-01-04 16:18:19 |
Lucas Kanashiro |
tags |
server-todo verification-done verification-done-jammy |
verification-done verification-done-jammy |
|
2023-01-05 19:34:40 |
Andreas Hasenack |
bsfilter (Ubuntu Jammy): status |
In Progress |
Fix Committed |
|
2023-01-05 19:34:46 |
Andreas Hasenack |
tags |
verification-done verification-done-jammy |
verification-needed verification-needed-jammy |
|
2023-01-06 14:16:34 |
Mitsuya Shibata |
tags |
verification-needed verification-needed-jammy |
verification-done verification-done-jammy |
|
2023-01-23 10:49:38 |
Launchpad Janitor |
bsfilter (Ubuntu Jammy): status |
Fix Committed |
Fix Released |
|