Commit graph

349 commits

Author SHA1 Message Date
Julien Cigar
765d62c5d7 A lightweight version of Subversion is already installed on FreeBSD as svnlite (the only difference from normal Subversion use is that the command name is svnlite). 2015-10-30 16:31:13 +01:00
Mislav Marohnić
4ed3974732 ruby-build 20151028 2015-10-28 12:35:42 +01:00
Mislav Marohnić
4900827526 Ensure IFS is reset to original value every time 2015-10-28 12:17:43 +01:00
Mislav Marohnić
768b1d0086 ruby-build 20151024 2015-10-24 17:03:02 +02:00
Mislav Marohnić
f63382f12b ruby-build 20150928 2015-09-28 12:52:07 +02:00
Erik Michaels-Ober
326b038697 ruby-build 20150818 2015-08-18 18:14:15 +02:00
Erik Michaels-Ober
c032ba1c7c ruby-build 20150803
Closes https://github.com/sstephenson/ruby-build/issues/793.
2015-08-03 14:55:42 +02:00
Pavel Repin
3cee1b9e78 RUBY_BUILD_MIRROR_URL defaults to https://...
Because encryption and authenticity are now cool :)
2015-07-20 12:45:04 -07:00
Erik Michaels-Ober
d50a5bb81a ruby-build 20150719 2015-07-19 14:49:34 +02:00
Erik Michaels-Ober
27d02db62a Merge pull request #629 from sstephenson/dep-checks
Check that openssl, yaml, readline, zlib are all loadable
2015-07-19 12:08:44 +02:00
Erik Michaels-Ober
0a3f010bb9 Merge pull request #765 from sstephenson/detect-llvm35
Improve detecting LLVM 3.5 from Homebrew
2015-07-19 12:00:38 +02:00
Erik Michaels-Ober
56a9ea73d6 ruby-build 20150709 2015-07-09 18:24:10 +02:00
J. Brandt Buckley
5cb049e48a Update instructions to install LLVM 3.5 using Homebrew
Homebrew bumped the version of LLVM installed with `brew install llvm`
from 3.5.1 to 3.6.0. So now users will have to tap homebrew-versions and
run `brew install llvm35` in order to get the version necessary to
install recent versions of Rubinius. The 3.5-specific `llvm-config`
becomes `llvm-config-3.5` accordingly.

0196a069a0
2015-05-26 10:55:34 +02:00
Mislav Marohnić
e33751fbfc Improve detecting LLVM 3.5 from Homebrew
The main "llvm" Homebrew package is occasionally getting updated and is
not guaranteed to be version 3.5. Right now it's 3.6, but that depends
on the version of Homebrew that someone has installed.

This lists through all installed Homebrew packages named "llvm*" and
tests each `llvm-config --version` for "3.5*" until it finds one.
2015-05-26 10:55:20 +02:00
Mislav Marohnić
e932d47195 Merge branch 'openjdk' 2015-05-23 02:13:10 +02:00
Mislav Marohnić
89ce9ebe1f ruby-build 20150519 2015-05-19 19:23:37 +02:00
Erik Michaels-Ober
83beb8bcc2 ruby-build 20150506 2015-05-06 11:09:58 +02:00
Erik Michaels-Ober
2ca27156f8 ruby-build 20150502 2015-05-02 11:39:18 +02:00
Ben Browning
4c0df6afdb Properly detect OpenJDK versions in bin/ruby-build
OpenJDK reports its version slightly different than Oracle Java, and
this was causing the logic in bin/ruby-build to not detect Java 7 or
higher when OpenJDK was used.
2015-04-29 10:39:40 -04:00
SHIBATA Hiroshi
a5bc77ad77 fixed conflict with upstream 2015-04-19 18:26:39 +09:00
Sam Stephenson
b0d254f261 ruby-build 20150413 2015-04-13 15:22:57 -05:00
Erik Michaels-Ober
a55247a8c5 ruby-build 20150319zf
See https://github.com/sstephenson/ruby-build/pull/733 to get the joke.
2015-03-19 18:30:41 -07:00
Erik Michaels-Ober
7f3cc017ac ruby-build 20150303 2015-03-03 09:08:59 +01:00
Erik Michaels-Ober
3851f4d7e3 ruby-build 20150226 2015-02-26 10:29:47 +01:00
Erik Michaels-Ober
0e1ceb4ef7 ruby-build 20150130 2015-01-30 11:31:22 -08:00
Mislav Marohnić
4c1f8842e6 Avoid double shebangs when fixing Rubinius gem binstubs
This is to fix the error when installing new gems that have executables
which match existing binstubs in the Rubinius bin directory:

    "bundle" from bundler conflicts with PREFIX/gems/bin/bundle

RubyGems is supposed to override the binstub if it detects that the
previous one was also generated by RubyGems for the gem of the same
name, but its detection mechanism gets thrown off by having a double
shebang as a result of our binstubs fixing process.

https://github.com/rubygems/rubygems/blob/v2.2.2/lib/rubygems/installer.rb#L149-L154

This avoids generating binstubs with a double shebang.
2015-01-29 01:36:04 -08:00
Mislav Marohnić
95373b462c Avoid ERR trap activating if there's no brew command
When generating SHA2 checksums with `openssl`, we want to give
preference to the newer OpenSSL that might have been installed with
Homebrew. However if there's no `brew` command the ERR trap will kick in
and display the "BUILD FAILED" notice although the build would proceed
to run.

Related: c0dc8908e1

Fixes #713
2015-01-26 15:07:55 -08:00
Mislav Marohnić
7f1d8df3fe Read Java version number even if it's not on the 1st line
Handles output like:

    Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
    java version "1.8.0_31"

Fixes #710
2015-01-21 16:51:29 -08:00
Erik Michaels-Ober
e12b960233 ruby-build 20150116 2015-01-16 15:24:18 +01:00
Erik Michaels-Ober
10c15673fc ruby-build 20150112 2015-01-12 12:47:24 +01:00
Mislav Marohnić
3b6f96df34 Lookup LLVM 3.5 from Homebrew on require_llvm on OS X
Prior to this we tried to use pre-built LLVM binaries since Yosemite,
but starting with Rubinius 2.3.0 this is no longer a feature of its
build system. Instead, look for "llvm" Homebrew package and suggest
installing it if it's missing.
2015-01-02 12:14:37 -08:00
Erik Michaels-Ober
be7d096d23 ruby-build 20141225
Closes https://github.com/sstephenson/ruby-build/issues/689.
2014-12-25 09:45:37 -06:00
Erik Michaels-Ober
dd1ab1dded ruby-build 20141222 2014-12-22 07:25:34 -05:00
Erik Michaels-Ober
b79e713655 ruby-build 20141210 2014-12-10 15:52:53 +01:00
Erik Michaels-Ober
3ac8e7d022 ruby-build 20141208 2014-12-08 21:48:54 +01:00
SHIBATA Hiroshi
545692836e ruby-build 20141128 2014-11-28 23:35:09 +09:00
Mislav Marohnić
3ae43a44e2 Capitalize "Usage:" header for consistency with rbenv help system 2014-11-26 20:46:44 -08:00
Mislav Marohnić
960e183d4c Extract ruby-build usage from comments like we do in rbenv 2014-11-26 20:46:44 -08:00
Mislav Marohnić
4a6b9280bb Provide CLI usage help on stout/stderr appropriately
When requested via `-h|--help`, usage text should be displayed on stdout
and the exit status should be 0.

When usage text is shown due to invalid arguments, it should be
printed to stderr and exit status should be 1.
2014-11-26 20:46:44 -08:00
Mislav Marohnić
22c73bf3f5 Perform CLI argument validation as early as possible 2014-11-26 20:46:44 -08:00
Ivan Kuchin
fa38b660e2 Abort with usage help on wrong number of CLI arguments
- rbenv-install accepts 0 or 1 argument
- rbenv-uninstall accepts 1 argument
- ruby-build accepts 2 arguments
2014-11-26 20:45:53 -08:00
Dimitrios Zorbas
e32e087d3b Change Error message for missing subversion
The current error message for missing subversion is "error: please install \`svn\` and try again", leading the user to try to find and install a package named "svn" (eg. `aptitude install svn for # debian / ubuntu). Changing it to "subversion" can help users unaware that svn is a binary installed by the subversion package, get through the error.
2014-11-17 00:37:56 +02:00
SHIBATA Hiroshi
ae0f2b9f22 ruby-build 20141113 2014-11-13 23:56:24 +09:00
Mislav Marohnić
fc6e0ae69d Fix comparing OS X version when it has 3 components 2014-10-31 04:08:00 +01:00
Mislav Marohnić
81807c6314 ruby-build 20141028 2014-10-28 20:33:20 +01:00
David Bayendor
54301c16bf Don't display duplicate definitions
This fixes `rbenv install -l` displaying each version twice due to
RUBY_BUILD_DEFINITIONS path containing ruby-build's own definitions path
twice: both as an rbenv plugin and by appending its own internal path.
2014-10-28 19:27:26 +01:00
Mislav Marohnić
194e007e62 Merge branch 'yosemite'
Fixes #651, fixes #648
2014-10-28 18:52:50 +01:00
Mislav Marohnić
b3512f494e Avoid endless recursion when rbx is installed over existing one
When installing rbx over an existing location, the `gems/bin` directory
will already be a symlink to `bin/` and an attempt to recreate this will
end up in recursion that keeps growing a binstub file until the disk is full.
2014-10-28 15:41:09 +01:00
Mislav Marohnić
985200d4da Enable Rubinius builds to re-use cached LLVM dependencies between builds
If RUBY_BUILD_CACHE_PATH is set (typically "`rbenv root`/cache" if it
exists), have Rubinius `./configure` script download prebuilt LLVM
versions into that directory and re-use them if already present.
2014-10-28 15:41:09 +01:00
Mislav Marohnić
f104098909 Fix rbx-1.2.4 setup phase
Rubinius back then didn't have a Gemfile, so don't try to invoke `bundle`.
Instead, rely on the host Ruby to already have rake installed.
2014-10-28 15:41:09 +01:00