Subject: pkg/35286: Distribution patches (?) break (at least) ruby's Digest::SHA1
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <bzimage@gmx.net>
List: pkgsrc-bugs
Date: 12/20/2006 02:50:01
>Number: 35286
>Category: pkg
>Synopsis: Distribution patches (?) break (at least) ruby's Digest::SHA1
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 20 02:50:00 +0000 2006
>Originator: Andreas Wiese
>Release: NetBSD 4.99.6
>Organization:
BSD-Crew Dresden
>Environment:
System: NetBSD schroeder.lan.instandbesetzt.net 4.99.6 NetBSD 4.99.6 (SCHROEDER) #4: Mon Dec 18 18:42:18 CET 2006 root@schroeder.lan.instandbesetzt.net:/sys/arch/i386/conf/SCHROEDER i386
>Description:
It seems the last update of ruby18-base seriously damaged something:
#v+
aw@rerun:~> pkg_info | grep ruby18-base
ruby18-base-1.8.5nb3 Ruby 1.8 based release minimum package
aw@rerun:~> irb
irb(main):001:0> require 'digest/sha1'
=> true
irb(main):002:0> Digest::SHA1.new
=> da39a3ee5e6b5b0d3255bfef95601890afd80709
irb(main):003:0> Digest::SHA1.new('foobar')
=> 8843d7f92416211de9ebb963ff4ce28125932878
irb(main):004:0> ^D
aw@rerun:~> uname -sr
NetBSD 4.99.3
aw@rerun:~>
#v-
whereas...
#v+
aw@schroeder:~> pkg_info | grep ruby18-base
ruby18-base-1.8.5.20061205 Ruby 1.8 based release minimum package
aw@schroeder:~> irb
irb(main):001:0> require 'digest/sha1'
=> true
irb(main):002:0> Digest::SHA1.new
=> #<Digest::SHA1: da39a3ee5e6b4b0d3255bfef95601890afd80709
irb(main):003:0> Digest::SHA1.new('foobar')
ArgumentError: wrong number of arguments (1 for 0)
from (irb):3:in `initialize'
from (irb):3:in `new'
from (irb):3
from :0
irb(main):004:0> ^D
aw@schroeder:~>
#v-
That's really annoying since it breaks up some not so dispensable applications.
>How-To-Repeat:
Install the actual ruby18-base package and play around with Digest::SHA1 or XMPP4R or something like that ;)
>Fix:
It don't know if that's the cause of the problem, but the last update of this package seems to change much in ruby-1.8.5/ext/digest/sha1. Perhaps this would be a good place to go...