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

Invalid rubysitedir value if ruby is compiled without sitedir

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: FACT 4.2.0
    • Component/s: None
    • Labels:
    • Template:
    • Team:
      Night's Watch
    • Story Points:
      1
    • Sprint:
      NW - 2021-06-02
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Fix an issue where Facter would report an invalid value for the ruby.sitedir fact if Ruby is compiled without the sitedir option.
    • QA Risk Assessment:
      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

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

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support