{"action":"created","issue":{"url":"https://api.github.com/repos/oneclick/rubyinstaller/issues/275","labels_url":"https://api.github.com/repos/oneclick/rubyinstaller/issues/275/labels{/name}","comments_url":"https://api.github.com/repos/oneclick/rubyinstaller/issues/275/comments","events_url":"https://api.github.com/repos/oneclick/rubyinstaller/issues/275/events","html_url":"https://github.com/oneclick/rubyinstaller/issues/275","id":90197347,"number":275,"title":"Building Ruby with my own custom version of openssl?","user":{"login":"ldanielw1","id":1388215,"avatar_url":"https://avatars.githubusercontent.com/u/1388215?v=3","gravatar_id":"","url":"https://api.github.com/users/ldanielw1","html_url":"https://github.com/ldanielw1","followers_url":"https://api.github.com/users/ldanielw1/followers","following_url":"https://api.github.com/users/ldanielw1/following{/other_user}","gists_url":"https://api.github.com/users/ldanielw1/gists{/gist_id}","starred_url":"https://api.github.com/users/ldanielw1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldanielw1/subscriptions","organizations_url":"https://api.github.com/users/ldanielw1/orgs","repos_url":"https://api.github.com/users/ldanielw1/repos","events_url":"https://api.github.com/users/ldanielw1/events{/privacy}","received_events_url":"https://api.github.com/users/ldanielw1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-22T20:04:40Z","updated_at":"2015-06-22T21:32:37Z","closed_at":null,"body":"I previously submitted a post about building ruby with the latest versions of openssl, but since then, I have created my own custom version of openssl with my own changes. I have gotten it to build, but I don't know how to get rubyinstaller to pull that in properly. Can somebody point me in the right direction with how to do that? I saw a post by @jonforums in another thread about creating an override/openssl.rb file, but that seems to still point at OpenKnapsack.\r\n\r\nIs there any way for me to copy in certain files during the build process for ruby to pick up my own version of openssl?"},"comment":{"url":"https://api.github.com/repos/oneclick/rubyinstaller/issues/comments/114269273","html_url":"https://github.com/oneclick/rubyinstaller/issues/275#issuecomment-114269273","issue_url":"https://api.github.com/repos/oneclick/rubyinstaller/issues/275","id":114269273,"user":{"login":"jonforums","id":100322,"avatar_url":"https://avatars.githubusercontent.com/u/100322?v=3","gravatar_id":"","url":"https://api.github.com/users/jonforums","html_url":"https://github.com/jonforums","followers_url":"https://api.github.com/users/jonforums/followers","following_url":"https://api.github.com/users/jonforums/following{/other_user}","gists_url":"https://api.github.com/users/jonforums/gists{/gist_id}","starred_url":"https://api.github.com/users/jonforums/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonforums/subscriptions","organizations_url":"https://api.github.com/users/jonforums/orgs","repos_url":"https://api.github.com/users/jonforums/repos","events_url":"https://api.github.com/users/jonforums/events{/privacy}","received_events_url":"https://api.github.com/users/jonforums/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T21:32:37Z","updated_at":"2015-06-22T21:32:37Z","body":"I have a `override/openssl.rb` file containing\r\n\r\n~~~ ruby\r\nif ENV['OPENSSL']\r\n  ssl_version = ENV['OPENSSL']\r\n  puts \"---> Using OpenSSL #{ssl_version}\"\r\n\r\n  RubyInstaller::KNAPSACK_PACKAGES['openssl'].version = ssl_version\r\n  RubyInstaller::KNAPSACK_PACKAGES['openssl'].files = [ \"openssl-#{ssl_version}-x86-windows-bin.7z\" ]\r\nend\r\n~~~\r\n\r\nAfter I place my custom built `openssl-1.0.2c-x86-windows-bin.7z` lib archive in `downloads`, I build ruby similar to the following. The build process picks up the new version of OpenSSL and build/tests OK for me on Win8.1 x64 doing 32-bit builds (I don't use ruby for any 64-bit dev).\r\n\r\n~~~ shell\r\nrake ruby21 local=C:\\Users\\Jon\\Documents\\RubyDev\\ruby-git openssl=1.0.2c dkver=mingw64-32-4.9.2\r\n~~~\r\n\r\nSpelunk files in the `config` dir if you want to try using newer versions of libs."}}