Bug#680227: webgen0.5: webgen does not work with default YAML implementation of ruby1.9

2012-07-04 Thread Marc Dequènes (Duck)

severity 680227 serious
tags 680227 + patch pending
thanks


Coin,

Quoting Sebastian Reichel :


require 'syck'

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


Unfortunately, this doesn't work for rake tasks, only when calling  
webgen directly, but moving it into  
/usr/lib/ruby/vendor_ruby/webgen/website.rb is a success :-).


Thanks for your help, I'm preparing an upload.

Regards.

--
Marc Dequènes (Duck)


pgpWOtxMJm8RZ.pgp
Description: PGP Digital Signature


Bug#680227: webgen0.5: webgen does not work with default YAML implementation of ruby1.9

2012-07-04 Thread Sebastian Reichel
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': (): 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 `'

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  
ii  ruby-rmagick2.13.1-6

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

-- no debconf information

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



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org