Bug#892191: ruby-progressbar FTBFS with Ruby 2.5: Failure/Error: require 'mathn'

2018-03-26 Thread Juhani Numminen
Control: tags -1 fixed-upstream

On Tue, 06 Mar 2018 16:45:11 +0200 Adrian Bunk  wrote:
> Source: ruby-progressbar
> Version: 1.4.2-1
...
>   cannot load such file -- mathn

It seems that “require 'mathn'” was removed in 2014:

https://github.com/jfelchner/ruby-progressbar/commit/e799027#diff-93830fa29d616f7c87903d08b5b1b29aL1

Cheers,
Juhani



Bug#892191: ruby-progressbar FTBFS with Ruby 2.5: Failure/Error: require 'mathn'

2018-03-06 Thread Adrian Bunk
Source: ruby-progressbar
Version: 1.4.2-1
Severity: serious
Tags: buster sid

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/ruby-progressbar.html

...
┌──┐
│ Run tests for ruby2.5 from debian/ruby-tests.rake│
└──┘

RUBYLIB=/build/1st/ruby-progressbar-1.4.2/debian/ruby-progressbar/usr/lib/ruby/vendor_ruby:.
 
GEM_PATH=debian/ruby-progressbar/usr/share/rubygems-integration/all:/var/lib/gems/2.5.0:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.5.0:/usr/share/rubygems-integration/2.5.0:/usr/share/rubygems-integration/all
 ruby2.5 -S rake -f debian/ruby-tests.rake
/usr/bin/ruby2.5 /usr/bin/rspec --pattern ./spec/\*\*/\*_spec.rb

An error occurred while loading ./spec/lib/ruby-progressbar/base_spec.rb.
Failure/Error: require 'mathn'

LoadError:
  cannot load such file -- mathn
# ./spec/spec_helper.rb:1:in `'
# ./spec/lib/ruby-progressbar/base_spec.rb:1:in `'

An error occurred while loading 
./spec/lib/ruby-progressbar/components/bar_spec.rb.
Failure/Error: require 'mathn'

LoadError:
  cannot load such file -- mathn
# ./spec/spec_helper.rb:1:in `'
# ./spec/lib/ruby-progressbar/components/bar_spec.rb:1:in `'

An error occurred while loading 
./spec/lib/ruby-progressbar/components/elapsed_timer_spec.rb.
Failure/Error: require 'mathn'

LoadError:
  cannot load such file -- mathn
# ./spec/spec_helper.rb:1:in `'
# ./spec/lib/ruby-progressbar/components/elapsed_timer_spec.rb:1:in `'

An error occurred while loading 
./spec/lib/ruby-progressbar/components/estimated_timer_spec.rb.
Failure/Error: require 'mathn'

LoadError:
  cannot load such file -- mathn
# ./spec/spec_helper.rb:1:in `'
# ./spec/lib/ruby-progressbar/components/estimated_timer_spec.rb:1:in `'

An error occurred while loading 
./spec/lib/ruby-progressbar/components/progressable_spec.rb.
Failure/Error: require 'mathn'

LoadError:
  cannot load such file -- mathn
# ./spec/spec_helper.rb:1:in `'
# ./spec/lib/ruby-progressbar/components/progressable_spec.rb:1:in `'

An error occurred while loading 
./spec/lib/ruby-progressbar/components/throttle_spec.rb.
Failure/Error: require 'mathn'

LoadError:
  cannot load such file -- mathn
# ./spec/spec_helper.rb:1:in `'
# ./spec/lib/ruby-progressbar/components/throttle_spec.rb:1:in `'

An error occurred while loading 
./spec/lib/ruby-progressbar/format/molecule_spec.rb.
Failure/Error: require 'mathn'

LoadError:
  cannot load such file -- mathn
# ./spec/spec_helper.rb:1:in `'
# ./spec/lib/ruby-progressbar/format/molecule_spec.rb:1:in `'

An error occurred while loading 
./spec/lib/ruby-progressbar/running_average_calculator_spec.rb.
Failure/Error: require 'mathn'

LoadError:
  cannot load such file -- mathn
# ./spec/spec_helper.rb:1:in `'
# ./spec/lib/ruby-progressbar/running_average_calculator_spec.rb:1:in `'

An error occurred while loading ./spec/lib/ruby-progressbar/time_spec.rb.
Failure/Error: require 'mathn'

LoadError:
  cannot load such file -- mathn
# ./spec/spec_helper.rb:1:in `'
# ./spec/lib/ruby-progressbar/time_spec.rb:1:in `'
No examples found.


Finished in 0.00045 seconds (files took 0.54597 seconds to load)
0 examples, 0 failures, 9 errors occurred outside of examples

/usr/bin/ruby2.5 /usr/bin/rspec --pattern ./spec/\*\*/\*_spec.rb failed
ERROR: Test "ruby2.5" failed. Exiting.
dh_auto_install: dh_ruby --install 
/build/1st/ruby-progressbar-1.4.2/debian/ruby-progressbar returned exit code 1
make: *** [debian/rules:15: binary] Error 1