Bug#1019610: ruby-ahoy-email: FTBFS with ruby3.1: ERROR: Test "ruby3.1" failed: cannot load such file -- net/smtp (LoadError)
Control: reassign -1 ruby-actionmailer 2:6.1.7+dfsg-2 Control: affects -1 src:ruby-ahoy-email On Sun, Nov 06, 2022 at 08:31:39PM +0200, Adrian Bunk wrote: > On Fri, Oct 07, 2022 at 02:16:35PM -0300, Antonio Terceiro wrote: > >... > > But nothing in ruby-ahoy-email codebase uses net/smtp explicitly, so > > this is a bit weird. > >... > > $ cat > /usr/share/rubygems-integration/all/gems/actionmailer-6.1.7/lib/action_mailer/mail_with_error_handling.rb > # frozen_string_literal: true > > begin > require "mail" > rescue LoadError => error > if error.message.match?(/net\/smtp/) > $stderr.puts "You don't have net-smtp installed in your application. > Please add it to your Gemfile and run bundle install" > raise > end > end > $ > > > There is also something that might be related in > https://sources.debian.org/src/rails/2%3A6.1.7%2Bdfsg-2/Gemfile/#L140 > > Is there a bug in rails? >... I am reassigning this to rails since it is likely that the problem is there. cu Adrian
Bug#1019610: ruby-ahoy-email: FTBFS with ruby3.1: ERROR: Test "ruby3.1" failed: cannot load such file -- net/smtp (LoadError)
On Sun, 6 Nov 2022 20:31:39 +0200 Adrian Bunk wrote: > Is there a bug in rails? https://github.com/rails/rails/pull/44083 seems relevant. Kind Regards
Bug#1019610: ruby-ahoy-email: FTBFS with ruby3.1: ERROR: Test "ruby3.1" failed: cannot load such file -- net/smtp (LoadError)
On Fri, Oct 07, 2022 at 02:16:35PM -0300, Antonio Terceiro wrote: >... > But nothing in ruby-ahoy-email codebase uses net/smtp explicitly, so > this is a bit weird. >... $ cat /usr/share/rubygems-integration/all/gems/actionmailer-6.1.7/lib/action_mailer/mail_with_error_handling.rb # frozen_string_literal: true begin require "mail" rescue LoadError => error if error.message.match?(/net\/smtp/) $stderr.puts "You don't have net-smtp installed in your application. Please add it to your Gemfile and run bundle install" raise end end $ There is also something that might be related in https://sources.debian.org/src/rails/2%3A6.1.7%2Bdfsg-2/Gemfile/#L140 Is there a bug in rails? cu Adrian
Bug#1019610: ruby-ahoy-email: FTBFS with ruby3.1: ERROR: Test "ruby3.1" failed: cannot load such file -- net/smtp (LoadError)
On Fri, Oct 07, 2022 at 02:16:35PM -0300, Antonio Terceiro wrote: >... > 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). That was also my first attempt, and I would have NMUed if it had worked instead of asking you. Unfortunately it doesn't get very far: /usr/share/rubygems-integration/all/gems/bundler-2.3.15/lib/bundler/resolver.rb:271:in `block in verify_gemfile_dependencies_are_found!': Could not find gem 'actionmailer (~> 7.0.0)' in locally installed gems. (Bundler::GemNotFound) cu Adrian
Bug#1019610: ruby-ahoy-email: FTBFS with ruby3.1: ERROR: Test "ruby3.1" failed: cannot load such file -- net/smtp (LoadError)
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-r...@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). signature.asc Description: PGP signature
Bug#1019610: ruby-ahoy-email: FTBFS with ruby3.1: ERROR: Test "ruby3.1" failed: cannot load such file -- net/smtp (LoadError)
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-r...@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? > > from > > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in > > `block in require' > > from > > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:299:in > > `load_dependency' > > from > > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in > > `require' > > from /usr/lib/ruby/vendor_ruby/mail.rb:9:in `' > > from /usr/lib/ruby/vendor_ruby/mail.rb:3:in `' > > from > > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in > > `require' > > from > > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in > > `block in require' > > from > > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:299:in > > `load_dependency' > > from > > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in > > `require' > > from > > /usr/share/rubygems-integration/all/gems/actionmailer-6.1.6.1/lib/action_mailer/mail_with_error_handling.rb:4:in > > `' > > from > > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in > > `require' > > from > > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in > > `block in require' > > from > > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:299:in > > `load_dependency' > > from > > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in > > `require' > > from > > /usr/share/rubygems-integration/all/gems/actionmailer-6.1.6.1/lib/action_mailer/base.rb:3:in > > `' > > from > > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in > > `require' > > from > > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in > > `block in require' > > from > > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:299:in > > `load_dependency' > > from > > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in > > `require' > > from /<>/test/test_helper.rb:21:in `' > > from /<>/test/click_test.rb:1:in `require_relative' > > from /<>/test/click_test.rb:1:in `' > > from > > :85:in > > `require' > > from > > :85:in > > `require' > > from > > /usr/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb:21:in > > `block in ' > > from > > /usr/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb:6:in > > `select' > > from > > /usr/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb:6:in > > `' > > rake aborted! > > Command failed with status (1) > > > > Tasks: TOP => default => test > > (See full trace by running task with --trace) > > mv ./.gem2deb.Gemfile.lock Gemfile.lock > > ERROR: Test "ruby3.1" failed: > > > The full build log is available from: > https://people.debian.org/~terceiro/ruby3.1/17/ruby-ahoy-email/ruby-ahoy-email_1.1.1-2+rebuild1663007340_amd64-2022-09-12T18:29:01Z.build >... cu Adrian
Bug#1019610: ruby-ahoy-email: FTBFS with ruby3.1: ERROR: Test "ruby3.1" failed: cannot load such file -- net/smtp (LoadError)
Source: ruby-ahoy-email Version: 1.1.1-2 Severity: serious Justification: FTBFS Tags: bookworm sid ftbfs User: debian-r...@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) > from > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in > `block in require' > from > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:299:in > `load_dependency' > from > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in > `require' > from /usr/lib/ruby/vendor_ruby/mail.rb:9:in `' > from /usr/lib/ruby/vendor_ruby/mail.rb:3:in `' > from > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in > `require' > from > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in > `block in require' > from > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:299:in > `load_dependency' > from > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in > `require' > from > /usr/share/rubygems-integration/all/gems/actionmailer-6.1.6.1/lib/action_mailer/mail_with_error_handling.rb:4:in > `' > from > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in > `require' > from > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in > `block in require' > from > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:299:in > `load_dependency' > from > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in > `require' > from > /usr/share/rubygems-integration/all/gems/actionmailer-6.1.6.1/lib/action_mailer/base.rb:3:in > `' > from > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in > `require' > from > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in > `block in require' > from > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:299:in > `load_dependency' > from > /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in > `require' > from /<>/test/test_helper.rb:21:in `' > from /<>/test/click_test.rb:1:in `require_relative' > from /<>/test/click_test.rb:1:in `' > from > :85:in > `require' > from > :85:in > `require' > from > /usr/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb:21:in > `block in ' > from > /usr/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb:6:in > `select' > from > /usr/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb:6:in > `' > rake aborted! > Command failed with status (1) > > Tasks: TOP => default => test > (See full trace by running task with --trace) > mv ./.gem2deb.Gemfile.lock Gemfile.lock > ERROR: Test "ruby3.1" failed: The full build log is available from: https://people.debian.org/~terceiro/ruby3.1/17/ruby-ahoy-email/ruby-ahoy-email_1.1.1-2+rebuild1663007340_amd64-2022-09-12T18:29:01Z.build To reproduce this, you need ruby-all-dev >= 1:3.0+2. Depending on when you read this, this might mean installing ruby-all-dev from experimental, or ir the transition has alraedy started in unstable, a normal build on unstable should do it. If you fail to reproduce, please provide a build log and diff it with mine so that we can identify if something relevant changed in the meantime. A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute! If you reassign this bug to another package, please marking it as 'affects'-ing this package. See https://www.debian.org/Bugs/server-control#affects signature.asc Description: PGP signature