G'day.
Y'all recently fixed this bug by providing a stub to allow "require
xmlsimple" to work as expected.
This causes these warnings with puppet:
/usr/lib/ruby/1.8/xmlsimple.rb:275: warning: already initialized constant
KNOWN_OPTIONS
/usr/lib/ruby/1.8/xmlsimple.rb:280: warning: already initialized constant
DEF_KEY_ATTRIBUTES
/usr/lib/ruby/1.8/xmlsimple.rb:281: warning: already initialized constant
DEF_ROOT_NAME
/usr/lib/ruby/1.8/xmlsimple.rb:282: warning: already initialized constant
DEF_CONTENT_KEY
/usr/lib/ruby/1.8/xmlsimple.rb:283: warning: already initialized constant
DEF_XML_DECLARATION
/usr/lib/ruby/1.8/xmlsimple.rb:284: warning: already initialized constant
DEF_ANONYMOUS_TAG
/usr/lib/ruby/1.8/xmlsimple.rb:285: warning: already initialized constant
DEF_FORCE_ARRAY
/usr/lib/ruby/1.8/xmlsimple.rb:286: warning: already initialized constant
DEF_INDENTATION
/usr/lib/ruby/1.8/xmlsimple.rb:287: warning: already initialized constant
DEF_KEY_TO_SYMBOL
The root cause of that is the rails package, which contains the
following code:
begin
require 'xmlsimple'
rescue LoadError
# Debian maintainers put their xmlsimple in a different location :(
require 'lib/xmlsimple'
end
As you can see, that is working around the different location of the
package, and looks like an upstream patch.
Unfortunately, not all the loading is done the same way:
/usr/share/rails/activesupport/lib/active_support/vendor.rb:14: require
'lib/xmlsimple'
/usr/share/rails/activesupport/lib/active_support/vendor.rb:34: require
'lib/xmlsimple'
Those, presumably, reflect the original location of the code and are
part of the package building process or something.
Anyway, that means that ruby, via rails, now gets both:
require 'xmlsimple'
require 'lib/xmlsimple'
Being as how Ruby is pretty grotty, it doesn't realize that those two
different paths actually refer to the same library, so it loads them
both up and emits the warnings.
I have filed this against your package rather than rails or ruby
because, I think, that this is something you will need to address with
any package that has incorporated a work-around for your changes.
Feel free to create a new report or reassign this as you see fit if it
really isn't something that you should be fixing internally...
Regards,
Daniel
gold:/usr/lib/ruby/1.8# dpkg -l rails libxml-simple-ruby puppet
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=================-=================-==================================================
ii libxml-simple-rub 1.0.11-2 Simple Ruby API for reading and writing
XML
ii puppet 0.24.5-3 centralised configuration management
for networks
ii rails 2.1.0-6 MVC ruby based framework geared for web
applicatio
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]