[DRE-maint] Bug#906688: ruby-netrc: FTBFS in buster/sid (test_missing_environment fails)

Santiago Vila sanvila at debian.org
Sun Aug 19 19:23:15 BST 2018


Package: src:ruby-netrc
Version: 0.11.0-1
Severity: serious
Tags: ftbfs

Dear maintainer:

I tried to build this package in buster but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --buildsystem=ruby --with ruby
   dh_update_autotools_config -i -O--buildsystem=ruby
   dh_auto_configure -i -O--buildsystem=ruby
	dh_ruby --configure
   dh_auto_build -i -O--buildsystem=ruby
	dh_ruby --build
   dh_ruby --build
   dh_auto_test -i -O--buildsystem=ruby
	dh_ruby --test
 fakeroot debian/rules binary-indep
dh binary-indep --buildsystem=ruby --with ruby
   dh_testroot -i -O--buildsystem=ruby
   dh_prep -i -O--buildsystem=ruby

[... snipped ...]

TestNetrc#test_multi_without_default = 0.00 s = .
TestNetrc#test_set = 0.00 s = .
TestNetrc#test_missing_environment = 0.00 s = F
TestNetrc#test_permission_error = 0.00 s = .
TestNetrc#test_save = 0.00 s = .
TestNetrc#test_entry_splat = 0.00 s = .
TestNetrc#test_get_missing = DEPRECATED: Use assert_nil if expecting nil from /<<PKGBUILDDIR>>/test/test_netrc.rb:169. This will fail in Minitest 6.
0.00 s = .
TestNetrc#test_netrc_environment_variable = 0.00 s = .
TestNetrc#test_add_get = 0.00 s = .
TestNetrc#test_add_newlineless = 0.00 s = .
TestNetrc#test_permission_error_windows = 0.00 s = .
TestNetrc#test_multi_with_default = 0.00 s = .
TestNetrc#test_allow_permissive_netrc_file_option = 0.00 s = .
TestNetrc#test_write_entry = 0.00 s = .
TestNetrc#test_parse_file = 0.00 s = .
TestNetrc#test_with_default = 0.00 s = .
TestNetrc#test_entry_implicit_splat = 0.00 s = .
TestNetrc#test_missing_file = 0.00 s = .
TestNetrc#test_parse_empty = 0.00 s = .
TestNetrc#test_set_get = 0.00 s = .
TestNetrc#test_password_file = 0.00 s = .
TestNetrc#test_add = 0.00 s = .
TestNetrc#test_login_file = 0.00 s = .

Finished in 0.022940s, 1787.2391 runs/s, 2571.8807 assertions/s.

  1) Failure:
TestNetrc#test_missing_environment [/<<PKGBUILDDIR>>/test/test_netrc.rb:203]:
--- expected
+++ actual
@@ -1,2 +1 @@
-# encoding: ASCII-8BIT
-"/<<PKGBUILDDIR>>/.netrc"
+"/build/.netrc"


41 runs, 59 assertions, 1 failures, 0 errors, 0 skips
rake aborted!
Command failed with status (1): [ruby -w  "/usr/lib/ruby/vendor_ruby/rake/rake_test_loader.rb" "test/test_lex.rb" "test/test_netrc.rb" "test/test_parse.rb" -v]

Tasks: TOP => default
(See full trace by running task with --trace)
ERROR: Test "ruby2.5" failed. Exiting.
dh_auto_install: dh_ruby --install /<<PKGBUILDDIR>>/debian/ruby-netrc returned exit code 1
make: *** [debian/rules:6: binary-indep] Error 1
dpkg-buildpackage: error: fakeroot debian/rules binary-indep subprocess returned exit status 2
--------------------------------------------------------------------------------

The above build was made with sbuild and schroot, under a user called "buildd" having
/build as its home directory.

Note: This does not happen in reproducible builds, but I don't know why.
Apparently, this happens every time, in any way it's built (sbuild or by hand),
as far as the build directory is different than the HOME directory.

Thanks.



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