Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 613680

Summary: dev-ruby/facter-3.6.2 : facter.rb does not find libfacter
Product: Gentoo Linux Reporter: Alan Hodgson <ahodgson>
Component: Current packagesAssignee: Matthew Thode ( prometheanfire ) <prometheanfire>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ruby, sysadmin
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alan Hodgson 2017-03-23 20:24:01 UTC
While updating my puppet infrastructure to 4.x, I ran into https://bugs.gentoo.org/show_bug.cgi?id=611018.

This actually appears to be a bug in facter (in both 3.6.1 and 3.6.2, at least).

Line 30 of facter.rb needs an additional ../ added to find the C library.

Before change:

irb(main):002:0> load '/usr/lib64/ruby/site_ruby/2.1.0/facter.rb'
LoadError: libfacter was not found. Please make sure it was installed to the expected location.
        from /usr/lib64/ruby/site_ruby/2.1.0/facter.rb:42:in `rescue in <module:Facter>'
        from /usr/lib64/ruby/site_ruby/2.1.0/facter.rb:29:in `<module:Facter>'
        from /usr/lib64/ruby/site_ruby/2.1.0/facter.rb:1:in `<top (required)>'
        from (irb):2:in `load'
        from (irb):2
        from /usr/bin/irb:11:in `<main>'
irb(main):003:0>

After change:

irb(main):001:0> load '/usr/lib64/ruby/site_ruby/2.1.0/facter.rb'
=> true
irb(main):002:0>
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-04-08 06:43:10 UTC
(it's unclear to me whether this is a dupe or ...)
Comment 2 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2017-04-08 18:10:27 UTC
This should be fixed in either 3.6.2-r1 or 3.6.3.

*** This bug has been marked as a duplicate of bug 611018 ***