[DRE-maint] Bug#939645: Please use YAML.load_stream() instead of YAML.load_documents(), which was removed in ruby 2.5

Stig Sandbeck Mathisen ssm at debian.org
Sat Sep 7 10:11:33 BST 2019


Package: serverspec-runner
Version: 1.2.2-1
Severity: grave
Tags: patch upstream
Justification: renders package unusable

Dear Maintainer,

The package uses the YAML.load_documents() method, which is no longer present
in the Ruby version that ships with Debian.

The method is replaced with YAML.load_stream(), which is compatible.

The error message, when run, is:

    /tmp/tmp.o0z1Ka0UgW$ serverspec-runner
    Traceback (most recent call last):
    	7: from /usr/bin/serverspec-runner:61:in `<main>'
    	6: from /usr/bin/serverspec-runner:61:in `load'
    	5: from /usr/share/serverspec-runner/Rakefile:14:in `<top (required)>'
    	4: from /usr/lib/ruby/vendor_ruby/rake/dsl_definition.rb:141:in `namespace'
    	3: from /usr/lib/ruby/vendor_ruby/rake/task_manager.rb:224:in `in_namespace'
    	2: from /usr/share/serverspec-runner/Rakefile:167:in `block in <top (required)>'
    	1: from /usr/share/serverspec-runner/Rakefile:167:in `open'
    /usr/share/serverspec-runner/Rakefile:168:in `block (2 levels) in <top (required)>': undefined method `load_documents' for Psych:Module (NoMethodError)
    Did you mean?  load_stream


A patch is available in the upstream repo, at
https://github.com/hiracy/serverspec-runner/pull/47/commits/c459787defe1b08bbe46a5acf0ea07039fe44f61
this is also included in upstream version 1.3.8

-- System Information:
Debian Release: 10.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-5-amd64 (SMP w/24 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages serverspec-runner depends on:
ii  ruby             1:2.5.1
ii  ruby-net-ssh     1:5.1.0-1
ii  ruby-serverspec  2.41.3-3

serverspec-runner recommends no packages.

serverspec-runner suggests no packages.

-- no debconf information



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