[DRE-maint] Bug#680227: webgen0.5: webgen does not work with default YAML implementation of ruby1.9

Sebastian Reichel sre at debian.org
Wed Jul 4 14:11:19 UTC 2012


Package: webgen0.5
Version: 0.5.14+dfsg1-2
Severity: important

Hi,

in ruby1.9.2 the default YAML parser has been changed from syck to
psych. The new parser does not work correctly with webgen:

/usr/lib/ruby/1.9.1/psych.rb:203:in `parse': (<unknown>): did not find expected
alphabetic or numeric character while scanning an alias at line 8 column 11
(Psych::SyntaxError)
	from /usr/lib/ruby/1.9.1/psych.rb:203:in `parse_stream'
	from /usr/lib/ruby/1.9.1/psych.rb:151:in `parse'
	from /usr/lib/ruby/1.9.1/psych.rb:127:in `load'
	from /usr/lib/ruby/vendor_ruby/webgen/website.rb:358:in `read_config_file'
	from /usr/lib/ruby/vendor_ruby/webgen/website.rb:258:in `block in init'
	from /usr/lib/ruby/vendor_ruby/webgen/website.rb:316:in `execute_in_env'
	from /usr/lib/ruby/vendor_ruby/webgen/website.rb:252:in `init'
	from /usr/lib/ruby/vendor_ruby/webgen/website.rb:271:in `block in render'
	from /usr/lib/ruby/vendor_ruby/webgen/website.rb:316:in `execute_in_env'
	from /usr/lib/ruby/vendor_ruby/webgen/website.rb:270:in `render'
	from /usr/lib/ruby/vendor_ruby/webgen/cli/run_command.rb:17:in `execute'
	from /usr/lib/ruby/vendor_ruby/cmdparse2.rb:464:in `parse'
	from /usr/lib/ruby/vendor_ruby/webgen/cli.rb:124:in `parse'
	from /usr/bin/webgen:7:in `<main>'

Since the default ruby implementation has been changed from ruby1.8 to
ruby1.9.1 in wheezy, webgen is broken by default. The solution is to
switch back to the old implementation [0]. This can be done by adding

require 'syck'

as first code line of /usr/bin/webgen0.5

[0] http://rubyforge.org/pipermail/webgen-users/2012-February/000818.html

-- Sebastian

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (100, 'unstable'), (50, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.3.0-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages webgen0.5 depends on:
ii  ruby                          4.9
ii  ruby-cmdparse                 2.0.5-1
ii  ruby-maruku                   0.6.0-2
ii  ruby1.8 [ruby-interpreter]    1.8.7.358-4
ii  ruby1.9.1 [ruby-interpreter]  1.9.3.194-1

Versions of packages webgen0.5 recommends:
ii  ruby-kramdown                   0.13.7-1
pn  ruby-redcloth | ruby-bluecloth  <none>
ii  ruby-rmagick                    2.13.1-6

Versions of packages webgen0.5 suggests:
pn  liberubis-ruby1.8 | liberubis-ruby1.9.1  <none>
pn  libexif-ruby1.8 | libexif-ruby1.9.1      <none>
pn  libhaml-ruby1.8                          <none>
pn  rake                                     <none>
pn  ruby-builder                             <none>
pn  webgen0.5-doc                            <none>

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/bin/webgen0.5 (from webgen0.5 package)






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