[SRU] Missing runtime dependency on ruby-webrick

Bug #1978152 reported by Lucas Kanashiro
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ruby-xmlrpc (Ubuntu)
Invalid
Undecided
Unassigned
Jammy
Fix Released
Undecided
Lucas Kanashiro

Bug Description

[Impact]

In Jammy, ruby-xmlrpc b-d on ruby-webrick but it is missing a runtime dependency on it. This bug has been filed in Debian and Kali:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1008524
https://bugs.kali.org/view.php?id=7644

The correct fix is to add ${ruby:Depends} to runtime dependencies list as was done in version 0.3.2-2:

https://salsa.debian.org/ruby-team/ruby-xmlrpc/-/commit/f472c7cf857eb581ece75ec537ca96ee18bbcf2d

[Test Plan]

$ lxc launch ubuntu-daily:jammy ruby-xmlrpc-sru
$ lxc shell ruby-xmlrpc-sru
root@ruby-xmlrpc-sru:~# apt update && apt upgrade -y && apt install ruby ruby-xmlrpc
root@ruby-xmlrpc-sru:~# irb
irb(main):001:0> require 'xmlrpc/server'
=> true
irb(main):002:0> XMLRPC::Server.new
<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- webrick/httpstatus (LoadError)
 from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in `require'
 from /usr/lib/ruby/vendor_ruby/xmlrpc/server.rb:636:in `initialize'
 from /usr/lib/ruby/vendor_ruby/xmlrpc/server.rb:576:in `initialize'
 from (irb):2:in `new'
 from (irb):2:in `<main>'
 from /usr/lib/ruby/gems/3.0.0/gems/irb-1.3.5/exe/irb:11:in `<top (required)>'
 from /usr/bin/irb:23:in `load'
 from /usr/bin/irb:23:in `<main>'
irb(main):003:0>

One should be allowed to create an instance of XMLRPC::Server.

[Where problems could occur]

The ${ruby:Depends} could pull in some unneeded deps which would cause some component mismatches. However, this will very unlikely happen because in kinetic we have the very same version and everthing went well as expected.

Related branches

summary: - Missing runtime dependency on ruby-webrick
+ [SRU] Missing runtime dependency on ruby-webrick
Changed in ruby-xmlrpc (Ubuntu):
status: New → Invalid
Changed in ruby-xmlrpc (Ubuntu Jammy):
assignee: nobody → Lucas Kanashiro (lucaskanashiro)
status: New → In Progress
tags: added: server-todo
Revision history for this message
Steve Langasek (vorlon) wrote : Please test proposed package

Hello Lucas, or anyone else affected,

Accepted ruby-xmlrpc into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ruby-xmlrpc/0.3.2-1ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in ruby-xmlrpc (Ubuntu Jammy):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-jammy
Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :
Download full text (4.3 KiB)

The package in jammy-proposed is working as expected:

root@ruby-xmlrpc-sru:~# dpkg -l | grep ruby-xmlrpc
ii ruby-xmlrpc 0.3.2-1ubuntu0.1 all XMLRPC library for Ruby
root@ruby-xmlrpc-sru:~# irb
irb(main):001:0> require 'xmlrpc/server'
=> true
irb(main):002:0> XMLRPC::Server.new
[2022-06-13 14:32:59] INFO WEBrick 1.7.0
[2022-06-13 14:32:59] INFO ruby 3.0.2 (2021-07-07) [x86_64-linux-gnu]
=>
#<XMLRPC::Server:0x00005560b60d5928
 @class_delim=".",
 @create=nil,
 @default_handler=nil,
 @handler=[],
 @parser=nil,
 @server=
  #<WEBrick::HTTPServer:0x00005560b6378e00
   @config=
    {:BindAddress=>"127.0.0.1",
     :Port=>8080,
     :MaxClients=>4,
     :ServerType=>nil,
     :Logger=>#<WEBrick::Log:0x00005560b6379058 @level=4, @log=#<IO:<STDOUT>>, @time_format="[%Y-%m-%d %H:%M:%S]">,
     :ServerSoftware=>"WEBrick/1.7.0 (Ruby/3.0.2/2021-07-07)",
     :TempDir=>"/tmp",
     :DoNotListen=>false,
     :StartCallback=>nil,
     :StopCallback=>nil,
     :AcceptCallback=>nil,
     :DoNotReverseLookup=>true,
     :ShutdownSocketWithoutClose=>false,
     :RequestTimeout=>30,
     :HTTPVersion=>#<WEBrick::HTTPVersion:0x00005560b635d1a0 @major=1, @minor=1>,
     :AccessLog=>[[#<IO:<STDERR>>, "%h %l %u %t \"%r\" %s %b"], [#<IO:<STDERR>>, "%{Referer}i -> %U"]],
     :MimeTypes=>
      {"ai"=>"application/postscript",
       "asc"=>"text/plain",
       "avi"=>"video/x-msvideo",
       "bin"=>"application/octet-stream",
       "bmp"=>"image/bmp",
       "class"=>"application/octet-stream",
       "cer"=>"application/pkix-cert",
       "crl"=>"application/pkix-crl",
       "crt"=>"application/x-x509-ca-cert",
       "css"=>"text/css",
       "dms"=>"application/octet-stream",
       "doc"=>"application/msword",
       "dvi"=>"application/x-dvi",
       "eps"=>"application/postscript",
       "etx"=>"text/x-setext",
       "exe"=>"application/octet-stream",
       "gif"=>"image/gif",
       "htm"=>"text/html",
       "html"=>"text/html",
       "jpe"=>"image/jpeg",
       "jpeg"=>"image/jpeg",
       "jpg"=>"image/jpeg",
       "js"=>"application/javascript",
       "json"=>"application/json",
       "lha"=>"application/octet-stream",
       "lzh"=>"application/octet-stream",
       "mjs"=>"application/javascript",
       "mov"=>"video/quicktime",
       "mpe"=>"video/mpeg",
       "mpeg"=>"video/mpeg",
       "mpg"=>"video/mpeg",
       "pbm"=>"image/x-portable-bitmap",
       "pdf"=>"application/pdf",
       "pgm"=>"image/x-portable-graymap",
       "png"=>"image/png",
       "pnm"=>"image/x-portable-anymap",
       "ppm"=>"image/x-portable-pixmap",
       "ppt"=>"application/vnd.ms-powerpoint",
       "ps"=>"application/postscript",
       "qt"=>"video/quicktime",
       "ras"=>"image/x-cmu-raster",
       "rb"=>"text/plain",
       "rd"=>"text/plain",
       "rtf"=>"application/rtf",
       "sgm"=>"text/sgml",
       "sgml"=>"text/sgml",
       "svg"=>"image/svg+xml",
       "tif"=>"image/tiff",
       "tiff"=>"image/tiff",
       "txt"=>"text/plain",
       "wasm"=>"application/wasm",
       "xbm"=>"image/x-xbitmap",
       "xhtml"=>"text/html",
       "xls"=>"application/vnd.ms-excel",
       "xml"=>"tex...

Read more...

tags: added: verification-done verification-done-jammy
removed: verification-needed verification-needed-jammy
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ruby-xmlrpc - 0.3.2-1ubuntu0.1

---------------
ruby-xmlrpc (0.3.2-1ubuntu0.1) jammy; urgency=medium

  * d/control: add ${ruby:Depends} as runtime dependency (LP: #1978152).
    This will pull in ruby-webrick which was added only as build dependency,
    and fix issues when webrick cannot be found.

 -- Lucas Kanashiro <email address hidden> Thu, 09 Jun 2022 16:06:45 -0300

Changed in ruby-xmlrpc (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for ruby-xmlrpc has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

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.