summaryrefslogtreecommitdiff
path: root/omnibus
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2018-03-24 08:32:14 +0000
committerThom May <thom@chef.io>2018-03-24 08:55:31 +0000
commit8b40f2984d478c00a6e7d8dc7a991c7b3cad181a (patch)
tree1d262df33ed5fd8843302677b2bf68ed3174cce4 /omnibus
parent5242eef602dd9f00d030a51fbb2bee116b650113 (diff)
downloadchef-8b40f2984d478c00a6e7d8dc7a991c7b3cad181a.tar.gz
Ship InSpec 2
Signed-off-by: Thom May <thom@chef.io>
Diffstat (limited to 'omnibus')
-rw-r--r--omnibus/config/projects/chef.rb6
-rw-r--r--omnibus/config/software/unf_ext.rb23
2 files changed, 29 insertions, 0 deletions
diff --git a/omnibus/config/projects/chef.rb b/omnibus/config/projects/chef.rb
index f758893cbb..10032b44a4 100644
--- a/omnibus/config/projects/chef.rb
+++ b/omnibus/config/projects/chef.rb
@@ -46,6 +46,12 @@ overrides_path = File.expand_path("../../../../omnibus_overrides.rb", current_fi
instance_eval(IO.read(overrides_path), overrides_path)
dependency "preparation"
+
+# InSpec 2 depends on unf_ext, which doesn't currently build on solaris on aix. There exists a fork
+# of unf_ext which fixes this, so let's use that in Chef for now.
+# FIXME: must remove this ASAP.
+dependency "unf_ext"
+
dependency "chef"
#
diff --git a/omnibus/config/software/unf_ext.rb b/omnibus/config/software/unf_ext.rb
new file mode 100644
index 0000000000..269fa933b7
--- /dev/null
+++ b/omnibus/config/software/unf_ext.rb
@@ -0,0 +1,23 @@
+# encoding: utf-8
+# override for unf_ext until
+# https://github.com/knu/ruby-unf_ext/pull/39
+# is merged and released
+
+name "unf_ext"
+
+dependency "ruby"
+dependency "rubygems"
+dependency "bundler"
+dependency "appbundler"
+
+license :project_license
+default_version "c0b3bd922214a172976f6f368c0b4e4fbf91ed78"
+source git: "https://github.com/jquick/ruby-unf_ext.git"
+skip_transitive_dependency_licensing true
+
+build do
+ env = with_standard_compiler_flags(with_embedded_path)
+ delete "#{name}-*.gem"
+ gem "build #{name}.gemspec", env: env
+ gem "install #{name}-*.gem --no-document", env: env
+end