omnibus 7.0.34 → 8.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c40c81af2fa93ca8c9e87d9e49a37cef3ea8145355700490d0ad5ce1a71cd169
4
- data.tar.gz: c31ffa9da067d89db43aaff9963408ed4f56150abeb295f4e0733787f001df13
3
+ metadata.gz: 2d82119c178b28f06df2bcd81c54b97ffbbe8b16b072021e3c86297e7ba76b9c
4
+ data.tar.gz: 0fd1477fe37432ec09256c115243b1a06eaa62911b741ba8a2dec730b9b8e42b
5
5
  SHA512:
6
- metadata.gz: 8d309f0c4d0cb1e0ecc57dcd5aac4c21e5be7b4b71781e5a0c134a723721963e248c673b969398c5b6dd733cc0eabf18bcbb965d122f3b4f5b788634f98d522a
7
- data.tar.gz: 5db4091ae7e877d04705089c14e8401816ca1ac8828c99e160b8161109892956c2f348dbf9cbca95f03414cd051e3240d58402867592892b2b20fcef464f20ab
6
+ metadata.gz: 534731ae9d91c9b9108cb63e6bacf731817ae8e01a80d22615e93787e50ba148c4e7919934879c2b7bdf1bda51586cbe488648dc3c6c31b9d3684f489602fd02
7
+ data.tar.gz: 37bbc008548ed0ab0a1d20f958a81a19de17c47da4176ca263587cf11bfb6bffc31c50691d76ea9304e2c22223becfa1afa79de6682e32f8fe9f07d63e8ddd6e
@@ -259,8 +259,11 @@ module Omnibus
259
259
  sync
260
260
  hdiutil unmount "#{@device}"
261
261
  # Give some time to the system so unmount dmg
262
- sleep 5
263
- hdiutil detach "#{@device}" && \
262
+ ATTEMPTS=0
263
+ until [ $ATTEMPTS -eq 5 ] || hdiutil detach "#{@device}"; do
264
+ sleep 10
265
+ echo Attempt number $(( ATTEMPTS++ ))
266
+ done
264
267
  hdiutil convert \\
265
268
  "#{writable_dmg}" \\
266
269
  -format UDZO \\
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2014-2018 Chef Software, Inc.
2
+ # Copyright 2014-2020, Chef Software Inc.
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -66,25 +66,16 @@ module Omnibus
66
66
  family = Ohai["platform_family"]
67
67
  version = Ohai["platform_version"]
68
68
 
69
- if family == "solaris2" && Chef::Sugar::Constraints::Version.new(version).satisfies?(">= 5.11")
69
+ if family == "solaris2" && ChefUtils::VersionString.new(version).satisfies?(">= 5.11")
70
70
  family = "ips"
71
- elsif family == "solaris2" && Chef::Sugar::Constraints::Version.new(version).satisfies?(">= 5.10")
71
+ elsif family == "solaris2" && ChefUtils::VersionString.new(version).satisfies?(">= 5.10")
72
72
  family = "solaris"
73
73
  end
74
74
  if klass = PLATFORM_PACKAGER_MAP[family]
75
- package_types = klass.is_a?(Array) ? klass : [ klass ]
76
-
77
- if package_types.include?(APPX) &&
78
- !Chef::Sugar::Constraints::Version.new(version).satisfies?(">= 6.2")
79
- log.warn(log_key) { "APPX generation is only supported on Windows versions 2012 and above" }
80
- package_types -= [APPX]
81
- end
82
-
83
- package_types
75
+ klass.is_a?(Array) ? klass : [ klass ]
84
76
  else
85
77
  log.warn(log_key) do
86
- "Could not determine packager for `#{family}', defaulting " \
87
- "to `makeself'!"
78
+ "Could not determine packager for `#{family}`, defaulting to `makeself`!"
88
79
  end
89
80
  [Makeself]
90
81
  end
@@ -424,7 +424,7 @@ module Omnibus
424
424
  is_binary = File.file?(bin) &&
425
425
  File.executable?(bin) &&
426
426
  !File.symlink?(bin)
427
- log.debug(log_key) { " removing from signing: #{bin}" } unless is_binary
427
+ log.debug(log_key) { " removing non-binary file from signing: #{bin}" } unless is_binary
428
428
  is_binary
429
429
  end
430
430
 
@@ -434,9 +434,9 @@ module Omnibus
434
434
  command = "file #{lib}"
435
435
 
436
436
  stdout = shellout!(command).stdout
437
- is_macho = stdout.match?(/Mach-O.*library/) || stdout.match?(/Mach-O.*bundle/)
437
+ is_macho = stdout.match?(/Mach-O.*(library|bundle)/)
438
438
  end
439
- log.debug(log_key) { " removing from signing: #{lib}" } unless is_macho
439
+ log.debug(log_key) { " removing non-Mach-O library file from signing: #{lib}" } unless is_macho
440
440
  is_macho
441
441
  end
442
442
  end
@@ -525,7 +525,7 @@ module Omnibus
525
525
  return if final_version.nil?
526
526
 
527
527
  begin
528
- Chef::Sugar::Constraints::Version.new(final_version)
528
+ ChefUtils::VersionString.new(final_version)
529
529
  rescue ArgumentError
530
530
  log.warn(log_key) do
531
531
  "Version #{final_version} for software #{name} was not parseable. " \
@@ -720,17 +720,6 @@ module Omnibus
720
720
  "LDFLAGS" => "-L#{install_dir}/embedded/lib",
721
721
  "CFLAGS" => "-I#{install_dir}/embedded/include -O2 -D_FORTIFY_SOURCE=2 -fstack-protector",
722
722
  }
723
- when "suse"
724
- suse_flags = {
725
- "LDFLAGS" => "-Wl,-rpath,#{install_dir}/embedded/lib -L#{install_dir}/embedded/lib",
726
- "CFLAGS" => "-I#{install_dir}/embedded/include -O2 -D_FORTIFY_SOURCE=2 -fstack-protector",
727
- }
728
- # Enable gcc version 4.8 if it is available
729
- if which("gcc-4.8") && platform_version.satisfies?("< 12")
730
- suse_flags["CC"] = "gcc-4.8"
731
- suse_flags["CXX"] = "g++-4.8"
732
- end
733
- suse_flags
734
723
  when "windows"
735
724
  arch_flag = windows_arch_i386? ? "-m32" : "-m64"
736
725
  opt_flag = windows_arch_i386? ? "-march=i686" : "-march=x86-64"
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2014-2018 Chef Software, Inc.
2
+ # Copyright 2014-2020, Chef Software Inc.
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -14,31 +14,22 @@
14
14
  # limitations under the License.
15
15
  #
16
16
 
17
- require "chef/sugar/architecture"
18
- require "chef/sugar/cloud"
19
- require "chef/sugar/constraints"
20
- require "chef/sugar/ip"
21
- require "chef/sugar/init"
22
- require "chef/sugar/platform"
23
- require "chef/sugar/platform_family"
24
- require "chef/sugar/ruby"
25
- require "chef/sugar/shell"
26
- require "chef/sugar/vagrant"
17
+ require "chef-utils" unless defined?(ChefUtils::CANARY)
27
18
 
28
19
  module Omnibus
29
20
  module Sugarable
30
21
  def self.extended(base)
31
- base.send(:extend, Chef::Sugar::DSL)
22
+ base.send(:extend, ChefUtils)
32
23
  base.send(:extend, Omnibus::Sugar)
33
24
  end
34
25
 
35
26
  def self.included(base)
36
- base.send(:include, Chef::Sugar::DSL)
27
+ base.send(:include, ChefUtils)
37
28
  base.send(:include, Omnibus::Sugar)
38
29
 
39
30
  if base < Cleanroom
40
31
  # Make all the "sugars" available in the cleanroom (DSL)
41
- Chef::Sugar::DSL.instance_methods.each do |instance_method|
32
+ ChefUtils.instance_methods.each do |instance_method|
42
33
  base.send(:expose, instance_method)
43
34
  end
44
35
 
@@ -15,5 +15,5 @@
15
15
  #
16
16
 
17
17
  module Omnibus
18
- VERSION = "7.0.34".freeze
18
+ VERSION = "8.0.9".freeze
19
19
  end
@@ -21,7 +21,7 @@ Gem::Specification.new do |gem|
21
21
  gem.require_paths = ["lib"]
22
22
 
23
23
  gem.add_dependency "aws-sdk-s3", "~> 1"
24
- gem.add_dependency "chef-sugar", ">= 3.3"
24
+ gem.add_dependency "chef-utils", ">= 15.4"
25
25
  gem.add_dependency "chef-cleanroom", "~> 1.0"
26
26
  gem.add_dependency "ffi-yajl", "~> 2.2"
27
27
  gem.add_dependency "mixlib-shellout", ">= 2.0", "< 4.0"
@@ -35,8 +35,8 @@ Gem::Specification.new do |gem|
35
35
 
36
36
  gem.add_development_dependency "artifactory", "~> 3.0"
37
37
  gem.add_development_dependency "aruba", "~> 0.5"
38
- gem.add_development_dependency "chefstyle", "= 1.5.0"
39
- gem.add_development_dependency "fauxhai", ">= 5.2"
38
+ gem.add_development_dependency "chefstyle", "= 1.5.2"
39
+ gem.add_development_dependency "fauxhai-ng", ">= 7.5"
40
40
  gem.add_development_dependency "rspec", "~> 3.0"
41
41
  gem.add_development_dependency "rspec-json_expectations"
42
42
  gem.add_development_dependency "rspec-its"
@@ -21,20 +21,12 @@
21
21
  <Media Id="1" Cabinet="Project.cab" EmbedCab="yes" CompressionLevel="high" />
22
22
 
23
23
  <!--
24
- Take advantage of Windows Installer 5.0 feature (if available) to disable
25
- checkpointing and other costings that take significant amounts of time
24
+ Take advantage of Windows Installer 5.0 feature (if available) to disable
25
+ checkpointing and other costings that take significant amounts of time
26
26
  ref: https://msdn.microsoft.com/en-us/library/windows/desktop/dd408005(v=vs.85).aspx
27
27
  -->
28
28
  <Property Id="MSIFASTINSTALL" Value="7" />
29
29
 
30
- <!--
31
- Uncomment launch condition below to check for minimum OS
32
- 601 = Windows 7/Server 2008R2.
33
- -->
34
- <!-- Condition Message="!(loc.MinimumOSVersionMessage)">
35
- <![CDATA[Installed OR VersionNT >= 601]]>
36
- </Condition -->
37
-
38
30
  <!-- We always do Major upgrades -->
39
31
  <MajorUpgrade DowngradeErrorMessage="!(loc.DowngradeErrorMessage)" />
40
32
 
@@ -4,7 +4,7 @@ module Omnibus
4
4
  describe Compressor do
5
5
  describe ".for_current_system" do
6
6
  context "on Mac OS X" do
7
- before { stub_ohai(platform: "mac_os_x", version: "10.12") }
7
+ before { stub_ohai(platform: "mac_os_x", version: "10.15") }
8
8
 
9
9
  context "when :dmg is activated" do
10
10
  it "prefers dmg" do
@@ -219,8 +219,11 @@ module Omnibus
219
219
  sync
220
220
  hdiutil unmount "#{device}"
221
221
  # Give some time to the system so unmount dmg
222
- sleep 5
223
- hdiutil detach "#{device}" &&\
222
+ ATTEMPTS=0
223
+ until [ $ATTEMPTS -eq 5 ] || hdiutil detach "/dev/sda1"; do
224
+ sleep 10
225
+ echo Attempt number $(( ATTEMPTS++ ))
226
+ done
224
227
  hdiutil convert \\
225
228
  "#{staging_dir}/project-writable.dmg" \\
226
229
  -format UDZO \\
@@ -177,17 +177,17 @@ module Omnibus
177
177
 
178
178
  describe ".platform_shortname" do
179
179
  it "returns el on rhel" do
180
- stub_ohai(platform: "redhat", version: "6.9")
180
+ stub_ohai(platform: "redhat", version: "6")
181
181
  expect(described_class.platform_shortname).to eq("el")
182
182
  end
183
183
 
184
184
  it "returns sles on suse" do
185
- stub_ohai(platform: "suse", version: "12.2")
185
+ stub_ohai(platform: "suse", version: "12")
186
186
  expect(described_class.platform_shortname).to eq("sles")
187
187
  end
188
188
 
189
189
  it "returns .platform on all other systems" do
190
- stub_ohai(platform: "ubuntu", version: "16.04")
190
+ stub_ohai(platform: "ubuntu", version: "20.04")
191
191
  expect(described_class.platform_shortname).to eq("ubuntu")
192
192
  end
193
193
  end
@@ -196,7 +196,7 @@ module Omnibus
196
196
  shared_examples "a version manipulator" do |platform_shortname, version, expected|
197
197
  context "on #{platform_shortname}-#{version}" do
198
198
  it "returns the correct value" do
199
- stub_ohai(platform: "ubuntu", version: "16.04") do |data|
199
+ stub_ohai(platform: "ubuntu", version: "20.04") do |data|
200
200
  data["platform"] = platform_shortname
201
201
  data["platform_version"] = version
202
202
  end
@@ -245,7 +245,7 @@ module Omnibus
245
245
 
246
246
  context "given an unknown platform" do
247
247
  before do
248
- stub_ohai(platform: "ubuntu", version: "16.04") do |data|
248
+ stub_ohai(platform: "ubuntu", version: "20.04") do |data|
249
249
  data["platform"] = "bacon"
250
250
  data["platform_version"] = "1.crispy"
251
251
  end
@@ -259,7 +259,7 @@ module Omnibus
259
259
 
260
260
  context "given an unknown windows platform version" do
261
261
  before do
262
- stub_ohai(platform: "ubuntu", version: "16.04") do |data|
262
+ stub_ohai(platform: "ubuntu", version: "20.04") do |data|
263
263
  data["platform"] = "windows"
264
264
  data["platform_version"] = "1.2.3"
265
265
  end
@@ -4,26 +4,19 @@ module Omnibus
4
4
  describe Packager do
5
5
  describe ".for_current_system" do
6
6
  context "on Mac OS X" do
7
- before { stub_ohai(platform: "mac_os_x", version: "10.13") }
7
+ before { stub_ohai(platform: "mac_os_x", version: "10.15") }
8
8
  it "prefers PKG" do
9
9
  expect(described_class.for_current_system).to eq([Packager::PKG])
10
10
  end
11
11
  end
12
12
 
13
- context "on Windows 2012 R2" do
13
+ context "on Windows" do
14
14
  before { stub_ohai(platform: "windows", version: "2012R2") }
15
15
  it "prefers MSI and APPX" do
16
16
  expect(described_class.for_current_system).to eq([Packager::MSI, Packager::APPX])
17
17
  end
18
18
  end
19
19
 
20
- context "on Windows 2008 R2" do
21
- before { stub_ohai(platform: "windows", version: "2008R2") }
22
- it "prefers MSI only" do
23
- expect(described_class.for_current_system).to eq([Packager::MSI])
24
- end
25
- end
26
-
27
20
  context "on Solaris 11" do
28
21
  before { stub_ohai(platform: "solaris2", version: "5.11") }
29
22
  it "prefers IPS" do
@@ -32,14 +25,14 @@ module Omnibus
32
25
  end
33
26
 
34
27
  context "on AIX" do
35
- before { stub_ohai(platform: "aix", version: "7.1") }
28
+ before { stub_ohai(platform: "aix", version: "7") }
36
29
  it "prefers BFF" do
37
30
  expect(described_class.for_current_system).to eq([Packager::BFF])
38
31
  end
39
32
  end
40
33
 
41
34
  context "on Fedora" do
42
- before { stub_ohai(platform: "fedora", version: "28") }
35
+ before { stub_ohai(platform: "fedora", version: "31") }
43
36
  it "prefers RPM" do
44
37
  expect(described_class.for_current_system).to eq([Packager::RPM])
45
38
  end
@@ -53,14 +46,14 @@ module Omnibus
53
46
  end
54
47
 
55
48
  context "on Debian" do
56
- before { stub_ohai(platform: "debian", version: "8.11") }
49
+ before { stub_ohai(platform: "debian", version: "10") }
57
50
  it "prefers RPM" do
58
51
  expect(described_class.for_current_system).to eq([Packager::DEB])
59
52
  end
60
53
  end
61
54
 
62
55
  context "on SLES" do
63
- before { stub_ohai(platform: "suse", version: "12.3") }
56
+ before { stub_ohai(platform: "suse", version: "15") }
64
57
  it "prefers RPM" do
65
58
  expect(described_class.for_current_system).to eq([Packager::RPM])
66
59
  end
@@ -35,7 +35,7 @@ module Omnibus
35
35
  create_directory("#{staging_dir}/SOURCES")
36
36
  create_directory("#{staging_dir}/SPECS")
37
37
 
38
- stub_ohai(platform: "redhat", version: "6.9") do |data|
38
+ stub_ohai(platform: "redhat", version: "6") do |data|
39
39
  data["kernel"]["machine"] = architecture
40
40
  end
41
41
  end
@@ -488,7 +488,7 @@ module Omnibus
488
488
 
489
489
  describe "#safe_architecture" do
490
490
  before do
491
- stub_ohai(platform: "redhat", version: "6.9") do |data|
491
+ stub_ohai(platform: "redhat", version: "6") do |data|
492
492
  data["kernel"]["machine"] = "i386"
493
493
  end
494
494
  end
@@ -499,7 +499,7 @@ module Omnibus
499
499
 
500
500
  context "when i686" do
501
501
  before do
502
- stub_ohai(platform: "redhat", version: "6.9") do |data|
502
+ stub_ohai(platform: "redhat", version: "6") do |data|
503
503
  data["kernel"]["machine"] = "i686"
504
504
  end
505
505
  end
@@ -512,9 +512,9 @@ module Omnibus
512
512
  context "on Pidora" do
513
513
  before do
514
514
  # There's no Pidora in Fauxhai :(
515
- stub_ohai(platform: "fedora", version: "27") do |data|
515
+ stub_ohai(platform: "fedora", version: "32") do |data|
516
516
  data["platform"] = "pidora"
517
- data["platform_version"] = "27"
517
+ data["platform_version"] = "32"
518
518
  data["kernel"]["machine"] = "armv6l"
519
519
  end
520
520
  end
@@ -207,28 +207,28 @@ module Omnibus
207
207
  before { stub_ohai(fauxhai_options) }
208
208
 
209
209
  context "when on RHEL" do
210
- let(:fauxhai_options) { { platform: "redhat", version: "6.9" } }
210
+ let(:fauxhai_options) { { platform: "redhat", version: "8" } }
211
211
  it "returns a RHEL iteration" do
212
212
  expect(subject.build_iteration).to eq(1)
213
213
  end
214
214
  end
215
215
 
216
216
  context "when on Debian" do
217
- let(:fauxhai_options) { { platform: "debian", version: "8.11" } }
217
+ let(:fauxhai_options) { { platform: "debian", version: "10" } }
218
218
  it "returns a Debian iteration" do
219
219
  expect(subject.build_iteration).to eq(1)
220
220
  end
221
221
  end
222
222
 
223
223
  context "when on FreeBSD" do
224
- let(:fauxhai_options) { { platform: "freebsd", version: "10.4" } }
224
+ let(:fauxhai_options) { { platform: "freebsd", version: "12" } }
225
225
  it "returns a FreeBSD iteration" do
226
226
  expect(subject.build_iteration).to eq(1)
227
227
  end
228
228
  end
229
229
 
230
230
  context "when on Windows" do
231
- before { stub_ohai(platform: "windows", version: "2008R2") }
231
+ before { stub_ohai(platform: "windows", version: "2019") }
232
232
  before { stub_const("File::ALT_SEPARATOR", '\\') }
233
233
  it "returns a Windows iteration" do
234
234
  expect(subject.build_iteration).to eq(1)
@@ -236,7 +236,7 @@ module Omnibus
236
236
  end
237
237
 
238
238
  context "when on OS X" do
239
- let(:fauxhai_options) { { platform: "mac_os_x", version: "10.13" } }
239
+ let(:fauxhai_options) { { platform: "mac_os_x", version: "10.15" } }
240
240
  it "returns a generic iteration" do
241
241
  expect(subject.build_iteration).to eq(1)
242
242
  end
@@ -207,12 +207,7 @@ module Omnibus
207
207
  end
208
208
 
209
209
  context "on aix" do
210
- before do
211
- # There's no AIX in Fauxhai :(
212
- stub_ohai(platform: "solaris2", version: "5.11") do |data|
213
- data["platform"] = "aix"
214
- end
215
- end
210
+ before { stub_ohai(platform: "aix") }
216
211
 
217
212
  it "sets the defaults" do
218
213
  expect(subject.with_standard_compiler_flags).to eq(
@@ -232,9 +227,9 @@ module Omnibus
232
227
  end
233
228
  end
234
229
 
235
- context "on freebsd 10" do
230
+ context "on freebsd" do
236
231
  before do
237
- stub_ohai(platform: "freebsd", version: "10.4")
232
+ stub_ohai(platform: "freebsd", version: "12.1")
238
233
  end
239
234
 
240
235
  it "sets the defaults" do
@@ -250,95 +245,9 @@ module Omnibus
250
245
  "OMNIBUS_INSTALL_DIR" => "/opt/project"
251
246
  )
252
247
  end
253
-
254
- context "with gcc 4.9 installed" do
255
- before do
256
- allow(subject).to receive(:which).and_return("/usr/local/bin/gcc49")
257
- end
258
- end
259
- end
260
-
261
- context "on freebsd 10" do
262
- before do
263
- stub_ohai(platform: "freebsd", version: "10.4")
264
- end
265
-
266
- it "Clang as the default compiler" do
267
- expect(subject.with_standard_compiler_flags).to eq(
268
- "CC" => "clang",
269
- "CXX" => "clang++",
270
- "CFLAGS" => "-I/opt/project/embedded/include -O2 -D_FORTIFY_SOURCE=2 -fstack-protector",
271
- "CXXFLAGS" => "-I/opt/project/embedded/include -O2 -D_FORTIFY_SOURCE=2 -fstack-protector",
272
- "CPPFLAGS" => "-I/opt/project/embedded/include -O2 -D_FORTIFY_SOURCE=2 -fstack-protector",
273
- "LDFLAGS" => "-L/opt/project/embedded/lib",
274
- "LD_RUN_PATH" => "/opt/project/embedded/lib",
275
- "PKG_CONFIG_PATH" => "/opt/project/embedded/lib/pkgconfig",
276
- "OMNIBUS_INSTALL_DIR" => "/opt/project"
277
- )
278
- end
279
- end
280
-
281
- context "on sles 11" do
282
- before do
283
- # sles identifies as suse
284
- stub_ohai(platform: "suse", version: "11.4")
285
- allow(subject).to receive(:which).with("gcc-4.8").and_return(false)
286
- end
287
- it "sets the defaults" do
288
- expect(subject.with_standard_compiler_flags).to eq(
289
- "LDFLAGS" => "-Wl,-rpath,/opt/project/embedded/lib -L/opt/project/embedded/lib",
290
- "CFLAGS" => "-I/opt/project/embedded/include -O2 -D_FORTIFY_SOURCE=2 -fstack-protector",
291
- "CXXFLAGS" => "-I/opt/project/embedded/include -O2 -D_FORTIFY_SOURCE=2 -fstack-protector",
292
- "CPPFLAGS" => "-I/opt/project/embedded/include -O2 -D_FORTIFY_SOURCE=2 -fstack-protector",
293
- "LD_RUN_PATH" => "/opt/project/embedded/lib",
294
- "PKG_CONFIG_PATH" => "/opt/project/embedded/lib/pkgconfig",
295
- "OMNIBUS_INSTALL_DIR" => "/opt/project"
296
- )
297
- end
298
-
299
- context "with gcc 4.8 installed" do
300
-
301
- before do
302
- allow(subject).to receive(:which).and_return("/usr/bin/gcc-4.8")
303
- end
304
-
305
- it "sets the compiler args" do
306
- expect(subject.with_standard_compiler_flags).to eq(
307
- "CC" => "gcc-4.8",
308
- "CXX" => "g++-4.8",
309
- "LDFLAGS" => "-Wl,-rpath,/opt/project/embedded/lib -L/opt/project/embedded/lib",
310
- "CFLAGS" => "-I/opt/project/embedded/include -O2 -D_FORTIFY_SOURCE=2 -fstack-protector",
311
- "CXXFLAGS" => "-I/opt/project/embedded/include -O2 -D_FORTIFY_SOURCE=2 -fstack-protector",
312
- "CPPFLAGS" => "-I/opt/project/embedded/include -O2 -D_FORTIFY_SOURCE=2 -fstack-protector",
313
- "LD_RUN_PATH" => "/opt/project/embedded/lib",
314
- "PKG_CONFIG_PATH" => "/opt/project/embedded/lib/pkgconfig",
315
- "OMNIBUS_INSTALL_DIR" => "/opt/project"
316
- )
317
- end
318
- end
319
248
  end
320
249
 
321
- context "on sles 12" do
322
- before do
323
- # sles identifies as suse
324
- stub_ohai(platform: "suse", version: "12.2")
325
- allow(subject).to receive(:which).with("gcc-4.8").and_return(true)
326
- end
327
-
328
- it "sets the defaults" do
329
- expect(subject.with_standard_compiler_flags).to eq(
330
- "LDFLAGS" => "-Wl,-rpath,/opt/project/embedded/lib -L/opt/project/embedded/lib",
331
- "CFLAGS" => "-I/opt/project/embedded/include -O2 -D_FORTIFY_SOURCE=2 -fstack-protector",
332
- "CXXFLAGS" => "-I/opt/project/embedded/include -O2 -D_FORTIFY_SOURCE=2 -fstack-protector",
333
- "CPPFLAGS" => "-I/opt/project/embedded/include -O2 -D_FORTIFY_SOURCE=2 -fstack-protector",
334
- "LD_RUN_PATH" => "/opt/project/embedded/lib",
335
- "PKG_CONFIG_PATH" => "/opt/project/embedded/lib/pkgconfig",
336
- "OMNIBUS_INSTALL_DIR" => "/opt/project"
337
- )
338
- end
339
- end
340
-
341
- context "on Windows" do
250
+ context "on windows" do
342
251
  let(:win_arch_i386) { true }
343
252
 
344
253
  before do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omnibus
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.34
4
+ version: 8.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Software, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-05 00:00:00.000000000 Z
11
+ date: 2020-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3
@@ -25,19 +25,19 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1'
27
27
  - !ruby/object:Gem::Dependency
28
- name: chef-sugar
28
+ name: chef-utils
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '3.3'
33
+ version: '15.4'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '3.3'
40
+ version: '15.4'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: chef-cleanroom
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -210,28 +210,28 @@ dependencies:
210
210
  requirements:
211
211
  - - '='
212
212
  - !ruby/object:Gem::Version
213
- version: 1.5.0
213
+ version: 1.5.2
214
214
  type: :development
215
215
  prerelease: false
216
216
  version_requirements: !ruby/object:Gem::Requirement
217
217
  requirements:
218
218
  - - '='
219
219
  - !ruby/object:Gem::Version
220
- version: 1.5.0
220
+ version: 1.5.2
221
221
  - !ruby/object:Gem::Dependency
222
- name: fauxhai
222
+ name: fauxhai-ng
223
223
  requirement: !ruby/object:Gem::Requirement
224
224
  requirements:
225
225
  - - ">="
226
226
  - !ruby/object:Gem::Version
227
- version: '5.2'
227
+ version: '7.5'
228
228
  type: :development
229
229
  prerelease: false
230
230
  version_requirements: !ruby/object:Gem::Requirement
231
231
  requirements:
232
232
  - - ">="
233
233
  - !ruby/object:Gem::Version
234
- version: '5.2'
234
+ version: '7.5'
235
235
  - !ruby/object:Gem::Dependency
236
236
  name: rspec
237
237
  requirement: !ruby/object:Gem::Requirement