Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-3041

Invalid rubysitedir value if ruby is compiled without sitedir

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • FACT 4.2.0
    • 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

          Activity

            People

              gabriel.nagy Gabriel Nagy
              gabriel.nagy Gabriel Nagy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support