Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
-
Night's Watch
-
1
-
NW - 2021-06-02
-
Needs Assessment
-
Bug Fix
-
Fix an issue where Facter would report an invalid value for the ruby.sitedir fact if Ruby is compiled without the sitedir option.
-
Needs Assessment
Description
If ruby is compiled with --with-sitedir=no, RbConfig::CONFIG['sitelibdir'] will report something like $(sitedir)/2.7.0 which is an invalid value. The RbConfig value is used by Facter to fill the ruby.sitedir/rubysitedir fact. Facter should not report the fact at all in this case.
Actual output:
[root@heroic-bugle ~]# facter ruby
|
{
|
platform => "x86_64-linux",
|
sitedir => "$(sitedir)/2.7.0",
|
version => "2.7.3"
|
}
|
Expected output:
[root@heroic-bugle ~]# facter ruby
|
{
|
platform => "x86_64-linux",
|
version => "2.7.3"
|
}
|
Attachments
Issue Links
- relates to
-
PA-3744 Build ruby without site_ruby
-
- Closed
-