Jira (FACT-3041) Invalid rubysitedir value if ruby is compiled without sitedir

13 views
Skip to first unread message

Gabriel Nagy (Jira)

unread,
May 17, 2021, 7:59:04 AM5/17/21
to puppe...@googlegroups.com
Gabriel Nagy created an issue
 
Facter / Bug FACT-3041
Invalid rubysitedir value if ruby is compiled without sitedir
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2021/05/17 4:58 AM
Priority: Normal Normal
Reporter: Gabriel Nagy

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"
}

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Mihai Buzgau (Jira)

unread,
May 17, 2021, 10:50:04 AM5/17/21
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
May 19, 2021, 4:49:04 AM5/19/21
to puppe...@googlegroups.com

Gabriel Nagy (Jira)

unread,
May 19, 2021, 7:32:02 AM5/19/21
to puppe...@googlegroups.com

Gabriel Nagy (Jira)

unread,
May 19, 2021, 7:33:04 AM5/19/21
to puppe...@googlegroups.com

Gabriel Nagy (Jira)

unread,
May 19, 2021, 7:34:04 AM5/19/21
to puppe...@googlegroups.com

Claire Cadman (Jira)

unread,
May 20, 2021, 5:39:01 AM5/20/21
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages