[DRE-maint] Bug#1019610: ruby-ahoy-email: FTBFS with ruby3.1: ERROR: Test "ruby3.1" failed: cannot load such file -- net/smtp (LoadError)

Antonio Terceiro terceiro at debian.org
Fri Oct 7 18:16:35 BST 2022


Hi,

On Fri, Oct 07, 2022 at 01:50:56AM +0300, Adrian Bunk wrote:
> On Mon, Sep 12, 2022 at 08:24:43PM -0300, Antonio Terceiro wrote:
> > Source: ruby-ahoy-email
> > Version: 1.1.1-2
> > Severity: serious
> > Justification: FTBFS
> > Tags: bookworm sid ftbfs
> > User: debian-ruby at lists.debian.org
> > Usertags: ruby3.1
> > 
> > Hi,
> > 
> > We are about to start the ruby3.1 transition in unstable. While trying to
> > rebuild ruby-ahoy-email with ruby3.1 enabled, the build failed.
> > 
> > Relevant part of the build log (hopefully):
> > > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `require': cannot load such file -- net/smtp (LoadError)
> 
> Do you have any ides where this dependency is required and why it isn't found?

$ dpkg -S net/smtp.rb
libruby3.0:amd64: /usr/lib/ruby/3.0.0/net/smtp.rb
libruby3.1:amd64: /usr/lib/ruby/gems/3.1.0/gems/net-smtp-0.3.1/lib/net/smtp.rb

In ruby3.0, net/smtp was part of the standard library, and in ruby3.1,
it's now a "default gem", which is more or less a third-party library
that happens to be shipped together with the standard library.

And it seems that the test suite for this package loads bundler. bundler
prevents any library that is not part of the standard library and is not
explicitly declared the Gemfile from being loaded, therefore it looks
like the library is not installed.

But nothing in ruby-ahoy-email codebase uses net/smtp explicitly, so
this is a bit weird. Our version is also quite outated wrt upstream, so
my first attempt would be to just update the latest upstream (there are
no reverse dependencies in the archive).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20221007/2e6fb209/attachment-0001.sig>


More information about the Pkg-ruby-extras-maintainers mailing list