chef-workstation icon indicating copy to clipboard operation
chef-workstation copied to clipboard

[macOS] Original build machine build dependencies leaking into embedded ruby prevent chef_gem from completing

Open skull-squadron opened this issue 1 year ago • 0 comments

Description

$ (cd /opt/chef-workstation/embedded/lib/ruby && rg -g '*.rb' -g '!ffi' /opt/homebrew)
3.1.0/arm64-darwin20/rbconfig.rb:  CONFIG["INSTALL"] = '/opt/homebrew/bin/ginstall -c' <-- none of these exist
3.1.0/arm64-darwin20/rbconfig.rb:  CONFIG["MAKEDIRS"] = "/opt/homebrew/bin/gmkdir -p"
3.1.0/arm64-darwin20/rbconfig.rb:  CONFIG["MKDIR_P"] = "/opt/homebrew/bin/gmkdir -p"

From another Ruby on the same system

# ruby/3.2.2/lib/ruby/3.2.0/arm64-darwin22/rbconfig.rb
  CONFIG["INSTALL"] = '/usr/bin/install -c'
...
  CONFIG["MKDIR_P"] = "mkdir -p"
...
  CONFIG["MAKEDIRS"] = "mkdir -p"

Chef Workstation Version

23.4.1032 stable (latest for current also)

Platform Version

macOS 13.3.1 arm64

skull-squadron avatar Apr 16 '23 11:04 skull-squadron