Commit graph

367 commits

Author SHA1 Message Date
Jason Karns
8738d1935c Replace associative array w/ variable indirection
Bash 3 doesn't have associative arrays. Use variable indirection to
save various checksum algorithm support results. `printf -v` can save
the output to a variable, whose name is itself stored in a variable
2016-01-19 08:24:28 -05:00
Jason Karns
14750a0b93 Extract has_checksum_support predicate function
- Remove unnecessary HAS_X_SUPPORT variables
- Merge conditional for unsetting mirror-url
- Memoize has_checksum_support function
2016-01-18 23:27:01 -05:00
Jason Karns
a187b07dab Move empty-checksum handling into case stmt 2016-01-18 23:27:01 -05:00
Jason Karns
26af69a9d3 Unknown checksum algorithms (based on length) are errors 2016-01-18 23:27:01 -05:00
Jason Karns
abc69bd630 SHA2 support shouldn't be a pre-req for MD5 checksum verification 2016-01-18 23:27:00 -05:00
Jason Karns
018357fefb Convert checksum algorithm chooser to switch case 2016-01-18 23:27:00 -05:00
Jason Karns
c534656f7a Include --version in usage documentation 2016-01-18 12:12:09 -05:00
Jason Karns
67fc7e2a1d Clean up usage documentation 2016-01-18 12:12:05 -05:00
Mislav Marohnić
288261985c ruby-build 20160111 2016-01-11 17:07:12 +01:00
Jim Nanney
6f08ad4c20 Add warning when package is bz2 format without bzip2 in path
On CentOS 7 and RHEL 7 bzip2 is not installed by default. This
causes a confusing error from tar when attempting to untar the
package. While this does not solve the problem, it at least gives
the user a more helpful error. More details can be found in GitHub
issue #870
2016-01-07 19:24:49 -06:00
Mislav Marohnić
8f1a390482 ruby-build 20151230 2015-12-30 13:23:06 +01:00
Mislav Marohnić
f3942fd45f ruby-build 20151226 2015-12-26 23:15:42 +01:00
Mislav Marohnić
3e5c31f245 Support Rubinius linking against Homebrew openssl
Internally, ruby-build will want to set `--with-openssl-dir` if we try
to detect Homebrew's OpenSSL or build one for the OS X. However,
Rubinius doesn't support that configure flag. So, this translates
`--with-openssl-dir` to a combination of `--with-lib-dir` and
`--with-include-dir`.
2015-12-26 22:57:39 +01:00
Mislav Marohnić
c431c25ef9 Encapsulate OS X version checks 2015-12-26 22:29:56 +01:00
Mislav Marohnić
c93d0d3a11 ruby-build 20151225 2015-12-25 11:47:23 +01:00
Mislav Marohnić
768db5df4c ruby-build 20151216 2015-12-16 16:33:45 +01:00
Tatsuhiko Miyagawa
55ffea164a Skip mirror if the URL is cache.ruby-lang.org (Fastly) and there's no custom mirror set 2015-12-16 16:29:24 +01:00
Mislav Marohnić
bd222051df Allow space-separated LDFLAGS arguments
Fixes #829, closes #830
2015-11-16 11:07:18 +01:00
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