Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(MODULES-1176) FFI module - allow to work on x86 / x64 #55

Merged
merged 5 commits into from
Aug 15, 2014

Conversation

Iristyle
Copy link
Contributor

No description provided.

 - When requiring Puppet from local source with file://c:/foo, gems
   necessary to run spec tests are missing.  This commit ensures that
   on both x86 and x64, dependent gems are installed.
@Iristyle Iristyle changed the title (MODULES-1176) x64 Compatibility (MODULES-1176) FFI module - allow to work on x86 / x64 Aug 13, 2014
@Iristyle
Copy link
Contributor Author

@ferventcoder @cyberious another PR to look over

@Iristyle
Copy link
Contributor Author

Making some changes to tests.. don't merge yet

@Iristyle
Copy link
Contributor Author

OK, this should be ready to acceptance test...

 - Define RegDeleteKeyEx and RegQueryValueEx with FFI instead of using
   Ruby's Win32API which doesn't work properly on x64 due to incorrect
   pointer length definitions.
 - Move FFI introduction into guarded methods inside of base provider to
   avoid loading code on non-Windows.
 - Add some basic additional provider tests for registry_value to validate
   that FFI code is working properly.
 - Add basic test around providers destroy method for registry_key to test
   FFI integration code.
- Given this module now requires FFI, it's important to verify in our
  MSI packages, which versions shipped with at least 1.9.x.  It appears
  that Puppet Open Source introduced a win32-dir upgrade to 0.4.3 for
  the release of 3.3.0.  Since win32-dir requires FFI, FFI will be
  present in MSIs released from this point in time:
  https://github.com/puppetlabs/puppet-win32-ruby/commits/1.9.3/ruby/lib/ruby/gems/1.9.1/gems/ffi-1.9.0-x86-mingw32/ext/ffi_c/ffi.c
- Note that the Gemfile wasn't updated until Puppet open source 3.3.2,
  but given it's rare to run Puppet from source on Windows, it's
  safe to ignore that particular discrepancy:
puppetlabs/puppet@11f7c51
cyberious added a commit that referenced this pull request Aug 15, 2014
(MODULES-1176) FFI module - allow to work on x86 / x64
@cyberious cyberious merged commit 066cecd into puppetlabs:1.0.x Aug 15, 2014
@Iristyle Iristyle deleted the ticket/MODULES-1176-x64-support branch August 15, 2014 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants