Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-2521

Remove windows-pr gem as a Windows dependency

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PUP 3.7.0
    • None
    • 4
    • Week 2014-6-25 to 2014-7-9, 2014-07-23

    Description

      The scope of this is unknown at this point, but it appears to be rather large.

      We currently use native Windows API calls defined in the windows-pr gem. Unfortunately, an FFI version of windows-pr was never released, and therefore the calls we directly make use of are not FFI'd. As such they will need replacement in preparation for x64.

      A more exhaustive scan needs to be performed, but for certain, we make direct use of:

      GetFileAttributes
      GetVolumeInformation
      GetExitCodeProcess
      GetAce
      LocalFree

      Furthermore, there are a number of other gems that rely on `windows-pr`, including

      win32-eventlog (currently using 0.5.3)
      win32-process (currently using 0.6.5)
      win32-security (currently using 0.1.4)
      win32-service (currently using 0.7.2)
      facter

      It's possible that newer versions of these gems can be used that no longer rely on the old version of `windows-pr`, but some more work will need to be done to verify.

      Fortunately, the windows-pr dependency has been removed from the following gems in the versions mentioned below, so upgrading to these versions and verifying against our tests should take care of the dependencies.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ethan Ethan Brown
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support