Skip to content

Commit

Permalink
Merge pull request #776 from tvpartytonight/PA-5929
Browse files Browse the repository at this point in the history
(PA-5929) specify system-ffi based on ruby version
  • Loading branch information
joshcooper authored Dec 8, 2023
2 parents 3485ced + 6658a00 commit 3a8b36f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions configs/components/rubygem-ffi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,16 @@
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 3a8b36f

Please sign in to comment.