{"action":"closed","issue":{"url":"https://api.github.com/repos/chef/omnibus/issues/730","repository_url":"https://api.github.com/repos/chef/omnibus","labels_url":"https://api.github.com/repos/chef/omnibus/issues/730/labels{/name}","comments_url":"https://api.github.com/repos/chef/omnibus/issues/730/comments","events_url":"https://api.github.com/repos/chef/omnibus/issues/730/events","html_url":"https://github.com/chef/omnibus/issues/730","id":185502723,"number":730,"title":"OpenSSL patch error when trying to package a Gem project","user":{"login":"petems","id":1064715,"avatar_url":"https://avatars.githubusercontent.com/u/1064715?v=3","gravatar_id":"","url":"https://api.github.com/users/petems","html_url":"https://github.com/petems","followers_url":"https://api.github.com/users/petems/followers","following_url":"https://api.github.com/users/petems/following{/other_user}","gists_url":"https://api.github.com/users/petems/gists{/gist_id}","starred_url":"https://api.github.com/users/petems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petems/subscriptions","organizations_url":"https://api.github.com/users/petems/orgs","repos_url":"https://api.github.com/users/petems/repos","events_url":"https://api.github.com/users/petems/events{/privacy}","received_events_url":"https://api.github.com/users/petems/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-26T20:34:10Z","updated_at":"2016-10-26T20:53:36Z","closed_at":"2016-10-26T20:53:36Z","body":"### Description\r\n\r\nWhen trying to run an omnibus run on a gem based project with Ruby, it fails at the openssl step, saying it cant find the patch file.\r\n\r\n### Omnibus Version\r\n\r\n```\r\n./bin/omnibus --version\r\nOmnibus v5.4.0\r\n```\r\n\r\n```ruby\r\nsource 'https://rubygems.org'\r\n\r\n# Use Berkshelf for resolving cookbook dependencies\r\ngem 'berkshelf', '~> 4.0'\r\n\r\n# Install omnibus software\r\n#gem 'omnibus', '~> 3.2'\r\ngem 'omnibus', github: 'opscode/omnibus'\r\n\r\n# Use Chef's software definitions. It is recommended that you write your own\r\n# software definitions, but you can clone/fork Chef's to get you started.\r\ngem 'omnibus-software', github: 'opscode/omnibus-software'\r\n\r\n# Use Test Kitchen with Vagrant for converging the build environment\r\ngem 'test-kitchen',    '~> 1.2'\r\ngem 'kitchen-vagrant', '~> 0.14'\r\ngem 'facter', '~> 2.2'\r\n```\r\n\r\n### Platform Version\r\n\r\n```\r\n$ arch\r\nx86_64\r\n$  uname -r -v -p\r\n3.10.0-327.36.3.el7.x86_64 #1 SMP Mon Oct 24 16:09:20 UTC 2016 x86_64\r\n$ cat /etc/redhat-release\r\nCentOS Linux release 7.2.1511 (Core)\r\n$ ruby --version\r\nruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]\r\n```\r\n\r\n\r\n### Replication Case\r\n\r\n\r\n```\r\ngit clone https://github.com/Misenko/omnibus-oneacct-export\r\ncd omnibus-oneacct-export\r\nbundle install --binstubs\r\nbin/omnibus build oneacct-export\r\n```\r\n\r\n\r\n### Build Output\r\n\r\n\r\n```\r\nbin/omnibus build oneacct-export\r\n                    [CLI] I | 2016-10-26T20:33:20+00:00 | Using config from 'omnibus.rb'\r\n [Software: config_guess] W | 2016-10-26T20:33:20+00:00 | Version master for software config_guess was not parseable. Comparison methods such as #satisfies? will not be available for this version.\r\nBuilding oneacct-export 0.4.2+20161026203320...\r\n  [Software: preparation] I | 2016-10-26T20:33:20+00:00 | Resolving manifest entry for preparation\r\n[NullFetcher: preparation] I | 2016-10-26T20:33:20+00:00 | Fetching `preparation' (nothing to fetch)\r\n         [Software: zlib] I | 2016-10-26T20:33:20+00:00 | Resolving manifest entry for zlib\r\n      [Software: cacerts] I | 2016-10-26T20:33:20+00:00 | Resolving manifest entry for cacerts\r\n       [Software: xproto] I | 2016-10-26T20:33:20+00:00 | Resolving manifest entry for xproto\r\n  [Software: util-macros] I | 2016-10-26T20:33:20+00:00 | Resolving manifest entry for util-macros\r\n [Software: config_guess] I | 2016-10-26T20:33:20+00:00 | Resolving manifest entry for config_guess\r\n [Software: config_guess] W | 2016-10-26T20:33:20+00:00 | Version master for software config_guess was not parseable. Comparison methods such as #satisfies? will not be available for this version.\r\n [Software: config_guess] W | 2016-10-26T20:33:20+00:00 | Version master for software config_guess was not parseable. Comparison methods such as #satisfies? will not be available for this version.\r\n[Software: pkg-config-lite] I | 2016-10-26T20:33:20+00:00 | Resolving manifest entry for pkg-config-lite\r\n   [Software: makedepend] I | 2016-10-26T20:33:20+00:00 | Resolving manifest entry for makedepend\r\n      [Software: openssl] I | 2016-10-26T20:33:20+00:00 | Resolving manifest entry for openssl\r\n      [Software: libtool] I | 2016-10-26T20:33:20+00:00 | Resolving manifest entry for libtool\r\n       [Software: libffi] I | 2016-10-26T20:33:20+00:00 | Resolving manifest entry for libffi\r\n      [Software: libyaml] I | 2016-10-26T20:33:20+00:00 | Resolving manifest entry for libyaml\r\n     [Software: libiconv] I | 2016-10-26T20:33:20+00:00 | Resolving manifest entry for libiconv\r\n         [Software: ruby] I | 2016-10-26T20:33:20+00:00 | Resolving manifest entry for ruby\r\n     [Software: rubygems] I | 2016-10-26T20:33:20+00:00 | Resolving manifest entry for rubygems\r\n      [Software: liblzma] I | 2016-10-26T20:33:20+00:00 | Resolving manifest entry for liblzma\r\n[Software: oneacct-export] I | 2016-10-26T20:33:20+00:00 | Resolving manifest entry for oneacct-export\r\n[NullFetcher: oneacct-export] I | 2016-10-26T20:33:20+00:00 | Fetching `oneacct-export' (nothing to fetch)\r\n[Software: version-manifest] I | 2016-10-26T20:33:20+00:00 | Resolving manifest entry for version-manifest\r\n[NullFetcher: version-manifest] I | 2016-10-26T20:33:20+00:00 | Fetching `version-manifest' (nothing to fetch)\r\n  [Software: preparation] I | 2016-10-26T20:33:21+00:00 | Restored from cache\r\n         [Software: zlib] I | 2016-10-26T20:33:21+00:00 | Restored from cache\r\n      [Software: cacerts] I | 2016-10-26T20:33:21+00:00 | Restored from cache\r\n       [Software: xproto] I | 2016-10-26T20:33:21+00:00 | Restored from cache\r\n  [Software: util-macros] I | 2016-10-26T20:33:21+00:00 | Restored from cache\r\n [Software: config_guess] W | 2016-10-26T20:33:21+00:00 | Version master for software config_guess was not parseable. Comparison methods such as #satisfies? will not be available for this version.\r\n [Software: config_guess] W | 2016-10-26T20:33:21+00:00 | Version master for software config_guess was not parseable. Comparison methods such as #satisfies? will not be available for this version.\r\n [Software: config_guess] I | 2016-10-26T20:33:21+00:00 | Restored from cache\r\n[Software: pkg-config-lite] I | 2016-10-26T20:33:21+00:00 | Restored from cache\r\n   [Software: makedepend] I | 2016-10-26T20:33:21+00:00 | Restored from cache\r\n      [Software: openssl] I | 2016-10-26T20:33:21+00:00 | Could not restore from cache\r\n    [NetFetcher: openssl] I | 2016-10-26T20:33:21+00:00 | Cleaning project directory `/var/cache/omnibus/src/openssl'\r\n    [NetFetcher: openssl] I | 2016-10-26T20:33:21+00:00 | Extracting `/var/cache/omnibus/cache/openssl-1.0.1s.tar.gz' to `/var/cache/omnibus/src/openssl'\r\n       [Builder: openssl] I | 2016-10-26T20:33:21+00:00 | Starting build\r\n       [Builder: openssl] I | 2016-10-26T20:33:21+00:00 | Environment:\r\n       [Builder: openssl] I | 2016-10-26T20:33:21+00:00 |   CFLAGS=\"-I/opt/oneacct-export/embedded/include -O2\"\r\n       [Builder: openssl] I | 2016-10-26T20:33:21+00:00 |   CPPFLAGS=\"-I/opt/oneacct-export/embedded/include -O2\"\r\n       [Builder: openssl] I | 2016-10-26T20:33:21+00:00 |   CXXFLAGS=\"-I/opt/oneacct-export/embedded/include -O2\"\r\n       [Builder: openssl] I | 2016-10-26T20:33:21+00:00 |   LDFLAGS=\"-Wl,-rpath,/opt/oneacct-export/embedded/lib -L/opt/oneacct-export/embedded/lib\"\r\n       [Builder: openssl] I | 2016-10-26T20:33:21+00:00 |   LD_RUN_PATH=\"/opt/oneacct-export/embedded/lib\"\r\n       [Builder: openssl] I | 2016-10-26T20:33:21+00:00 |   PATH=\"/opt/oneacct-export/bin:/opt/oneacct-export/embedded/bin:/usr/lib64/ruby/gems/2.3.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/.local/bin:/root/bin\"\r\n       [Builder: openssl] I | 2016-10-26T20:33:21+00:00 |   PKG_CONFIG_PATH=\"/opt/oneacct-export/embedded/lib/pkgconfig\"\r\n       [Builder: openssl] I | 2016-10-26T20:33:21+00:00 | $ patch -p1 -i /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-software-02b070d484a1/config/patches/openssl/openssl-1.0.1f-do-not-build-docs.patch\r\n       [Builder: openssl] I | 2016-10-26T20:33:21+00:00 | Apply patch `openssl-1.0.1f-do-not-build-docs.patch': 0.0067s\r\n       [Builder: openssl] I | 2016-10-26T20:33:21+00:00 | Build openssl: 0.0074s\r\n/usr/lib64/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.6/lib/mixlib/shellout/unix.rb:338:in `exec': No such file or directory - patch (Errno::ENOENT)\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.6/lib/mixlib/shellout/unix.rb:338:in `block in fork_subprocess'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.6/lib/mixlib/shellout/unix.rb:316:in `fork'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.6/lib/mixlib/shellout/unix.rb:316:in `fork_subprocess'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.6/lib/mixlib/shellout/unix.rb:93:in `run_command'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.6/lib/mixlib/shellout.rb:259:in `run_command'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/util.rb:81:in `shellout'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/util.rb:97:in `shellout!'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/builder.rb:825:in `shellout!'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/builder.rb:240:in `block in patch'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/builder.rb:1012:in `instance_eval'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/builder.rb:1012:in `run'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/builder.rb:843:in `block (3 levels) in execute'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/builder.rb:865:in `with_retries'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/builder.rb:842:in `block (2 levels) in execute'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/instrumentation.rb:23:in `measure'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/builder.rb:841:in `block in execute'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/builder.rb:915:in `with_clean_env'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/builder.rb:840:in `execute'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/builder.rb:704:in `block (2 levels) in build'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/builder.rb:703:in `each'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/builder.rb:703:in `block in build'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/instrumentation.rb:23:in `measure'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/builder.rb:702:in `build'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/software.rb:1161:in `execute_build'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/software.rb:1029:in `build_me'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/project.rb:1077:in `block in build'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/project.rb:1076:in `each'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/project.rb:1076:in `build'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/cli.rb:84:in `build'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/cli/base.rb:33:in `dispatch'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/lib/omnibus/cli.rb:42:in `execute!'\r\n\tfrom /usr/lib64/ruby/gems/2.3.0/bundler/gems/omnibus-e2b6cfa81327/bin/omnibus:16:in `<top (required)>'\r\n\tfrom bin/omnibus:17:in `load'\r\n\tfrom bin/omnibus:17:in `<main>'\r\n```\r\n\r\n--------------------------------------------------\r\n/cc @chef/omnibus-maintainers <- This ensures the Omnibus Maintainers team are notified to review this PR.\r\n\r\n"}}
{"actor":{"display_login":"petems"}}