diff options
Diffstat (limited to 'sysutils/puppetserver6/files/patch-ffi.rb')
| -rw-r--r-- | sysutils/puppetserver6/files/patch-ffi.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sysutils/puppetserver6/files/patch-ffi.rb b/sysutils/puppetserver6/files/patch-ffi.rb new file mode 100644 index 000000000000..927fe2523bf2 --- /dev/null +++ b/sysutils/puppetserver6/files/patch-ffi.rb @@ -0,0 +1,19 @@ +--- ffi.rb.orig 2019-09-22 21:04:46 UTC ++++ ffi.rb +@@ -125,7 +125,7 @@ module FFI + # Load all the platform dependent types/consts/struct members + class Config + CONFIG = Hash.new +- begin ++ if File.exist?(File.join(Platform::CONF_DIR, 'platform.conf')) + File.open(File.join(Platform::CONF_DIR, 'platform.conf'), "r") do |f| + typedef = "rbx.platform.typedef." + f.each_line { |line| +@@ -138,7 +138,6 @@ module FFI + end + } + end +- rescue Errno::ENOENT + end + end + end |
