Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 613680 - dev-ruby/facter-3.6.2 : facter.rb does not find libfacter
Summary: dev-ruby/facter-3.6.2 : facter.rb does not find libfacter
Status: RESOLVED DUPLICATE of bug 611018
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-23 20:24 UTC by Alan Hodgson
Modified: 2017-04-08 18:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***