already initialized constant DEF_KEY_ATTRIBUTES
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libxml-simple-ruby (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: libxml-simple-ruby
Hi,
when running e.g. ruby on rails I get heaps of warnings:
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
which is obviously caused because that package contains xmlsimple.rb twice,
/usr/lib/
I guess this is needed because applications expect xmlsimple at different paths. In rails there are require statements for
require 'xmlsimple' and
require 'lib/xmlsimple'
and interestingly the comment
# Debian maintainers put their xmlsimple in a different location :(
so it is a debian mess. However, requiring the same file from different paths is something the ruby interpreter cannot prevent. That's why warnings are printed.
Please fix that (and maybe put files just where they belong).
Even if that cannot be fixed easily for whatever reason, do *NOT* use symlinks to have a file at different places. Just write a file with a single line 'require ...' to the other location. Thus the interpreter can detect that it reads the same file again.
regards