Skip to content

Commit

Permalink
Merge pull request #777 from tvpartytonight/PA-5929
Browse files Browse the repository at this point in the history
(PA-5929) Don't overwrite windows specific install blocks
  • Loading branch information
AriaXLi authored Dec 11, 2023
2 parents def617c + 2516e16 commit 59404ee
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions configs/components/rubygem-ffi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@

rb_major_minor_version = settings[:ruby_version].to_f

if rb_major_minor_version > 2.7
pkg.install do
"#{settings[:gem_install]} ffi-#{pkg.get_version}.gem -- --enable-system-ffi"
end
else
pkg.install do
"#{settings[:gem_install]} ffi-#{pkg.get_version}.gem -- --disable-system-ffi"
end
end

# Windows versions of the FFI gem have custom filenames, so we overwite the
# defaults that _base-rubygem provides here, just for Windows for Ruby < 3.2
if platform.is_windows? && rb_major_minor_version < 3.2
Expand Down Expand Up @@ -86,16 +96,6 @@
pkg.install_file "/opt/csw/lib/libffi.so.6", "#{settings[:libdir]}/libffi.so.6"
end

if rb_major_minor_version > 2.7
pkg.install do
"#{settings[:gem_install]} ffi-#{pkg.get_version}.gem -- --enable-system-ffi"
end
else
pkg.install do
"#{settings[:gem_install]} ffi-#{pkg.get_version}.gem -- --disable-system-ffi"
end
end

pkg.environment 'PKG_CONFIG_PATH', '/opt/puppetlabs/puppet/lib/pkgconfig:$(PKG_CONFIG_PATH)'
pkg.environment 'PATH', '/opt/freeware/bin:/opt/pl-build-tools/bin:$(PATH)' if platform.is_aix?

Expand Down

0 comments on commit 59404ee

Please sign in to comment.