Commit graph

560 commits

Author SHA1 Message Date
SHIBATA Hiroshi
02b75a33d9 Added definition of 2.1.0-preview2 2013-11-23 07:31:36 +09:00
Mislav Marohnić
dc6239175a Merge branch 'rbx-ruby-18' 2013-11-22 15:01:32 +01:00
Mislav Marohnić
2fa587bcfe Fix installing Rubinius 2.0 with Ruby 1.8
Fixes #429, references rubinius/rubinius#2693
2013-11-22 14:23:44 +01:00
Jeremy Kemper
9b44aa9a16 Merge pull request #455 from knightq/master
Adds ruby 1.9.3-p484 and ruby 2.0.0-p353 definitions
2013-11-21 23:33:16 -08:00
Andrea Salicetti
4e0be855fc Adds definition for ruby-2.0.0-p353 2013-11-22 08:25:08 +01:00
Andrea Salicetti
949cc1070d Adds ruby 1.9.3-p484 definition 2013-11-22 08:17:07 +01:00
SHIBATA Hiroshi
cac12e49ea fix old links 2013-11-22 14:10:31 +09:00
SHIBATA Hiroshi
1f86c0504c added definition for 1.9.3-p484 and 2.0.0-p353 2013-11-22 14:04:45 +09:00
Erik Michaels-Ober
a97cc91650 Merge pull request #452 from johnbellone/master
Add rbx 2.2.0 and 2.2.1 definitions.
2013-11-18 01:30:45 -08:00
John Bellone
54ca76ea37 Add rbx 2.2.0 and 2.2.1 definitions. 2013-11-17 22:02:10 -05:00
Erik Michaels-Ober
49c1070495 ruby-build 20131115 2013-11-15 16:05:55 +02:00
Erik Michaels-Ober
5b263ef553 Merge pull request #450 from ketan/jruby-1.7.8
Add definition for jruby-1.7.8
2013-11-14 22:59:50 -08:00
Ketan Padegaonkar
75d34ddad8 Create jruby-1.7.8 2013-11-15 09:39:46 +05:30
Mislav Marohnić
bfe862d761 Merge pull request #449 from deepj/master
Add a definition for JRuby 1.7.7
2013-11-14 15:43:53 -08:00
deepj
c82f6b2b07 Add a definition for JRuby 1.7.7 2013-11-14 22:45:21 +01:00
Kelley Reynolds
35f9c62d1d Handle the case when there is no processor info in /proc/cpuinfo
`grep -c` would correctly output "0", which is handled specially later
on, but would also exit with a nonzero status which would abort the
script. Piping the output to `wc` to do the counting makes the exit
status of grep irrelevant.

Fixes #447
2013-11-13 16:30:11 +01:00
Mislav Marohnić
bc9adfdd5d Demonstrate that one can use RUBY_CONFIGURE to apply a patch
References #443
2013-10-30 13:05:49 +01:00
Mislav Marohnić
cb33dc8f6a ruby-build 20131030 2013-10-30 02:45:06 +01:00
Mislav Marohnić
7c8d92f708 Update CHANGELOG 2013-10-30 02:44:21 +01:00
Mislav Marohnić
638f28b52b Merge branch 'rbx-build' 2013-10-30 01:24:47 +01:00
Mislav Marohnić
8b6616b8a7 Install the Rubinius bundle in isolation
Makes sure that installing Rubinius won't touch other gems outside the
build directory.
2013-10-29 14:13:34 +01:00
Mislav Marohnić
c0dc8908e1 Fix false "BUILD FAILED" message when installing Rubinius
Installing Rubinius would print "BUILD FAILED" at the `bundle` step but
the installation would proceed nevertheless and finish successfully.

It turns out that the `command ...` expression will trigger the ERR trap
on failure even when it's a part of `||` list or a condition inside an
`if` statement. This defies how the ERR trap is supposed to work, so the
workaround is to execute it in a subshell which doesn't inherit the ERR
trap of its parent.
2013-10-29 14:03:26 +01:00
Mislav Marohnić
8e16aab892 Fix installing REE on OS X 10.8+ with no XQuartz
This is a regression introduced by
d13ae0ad52

References #267
2013-10-29 01:39:28 +01:00
Mislav Marohnić
4ed38ba4bc Run mirror update on CI even if tests failed
If a commit introduced a new Ruby definition, we want it mirrored even
if there might have been an accidental failure on CI.
2013-10-28 02:25:08 +01:00
Mislav Marohnić
e8a3cc82e3 Avoid processing duplicate URLs in mirror script 2013-10-28 02:24:18 +01:00
Mislav Marohnić
64726421f9 ruby-build 20131028 2013-10-28 01:17:20 +01:00
Mislav Marohnić
7c12833fef Update CHANGELOG 2013-10-28 01:17:08 +01:00
Mislav Marohnić
8270aaa383 Merge branch 'tmpdir-noexec' 2013-10-28 00:59:48 +01:00
Mislav Marohnić
00fcf8b504 Bash here-document doesn't work with non-executable TMPDIR
Fixes https://travis-ci.org/sstephenson/ruby-build/builds/13131225
2013-10-28 00:55:35 +01:00
Mislav Marohnić
d9cd8a1ae3 Abort early if TMPDIR is non-writable or non-executable
Fixes #148
2013-10-28 00:44:15 +01:00
Mislav Marohnić
1173e8c095 Merge branch 'auto-tcltk' 2013-10-28 00:27:02 +01:00
Mislav Marohnić
d13ae0ad52 Enable compiling Ruby 1.8 on OS X 10.8+ without extra flags
Because OS X Mountain Lion removed X Windows, compiling Ruby 1.8 would
fail unless the user installed XQuartz manually and passed:

    CPPFLAGS=-I/opt/X11/include rbenv install 1.8.7-p374

This auto-detects if `/opt/X11/include` is present on the system and
configures CPPFLAGS accordingly. However if XQuartz was never installed,
we simply configure Ruby using `--without-tk`.

Fixes #193 #207

References 353246926c
2013-10-28 00:25:02 +01:00
Mislav Marohnić
805051fbdc Merge branch 'num-cpu-cores' 2013-10-27 22:36:24 +01:00
Mislav Marohnić
6c08c56d3a Detect number of CPU cores used for make
Alt. implementation of #401, #434
2013-10-27 22:24:12 +01:00
Mislav Marohnić
50bf60f9c2 Really fix installing Ruby 2.1.0 from trunk
The problem wasn't in quoting as per 0b5206172, but in the fact that
Ruby trunk added a LDFLAGS checker that aborts if any of the paths
listed in it are missing:
3636f8c0f5

This is probably a bug in Ruby, but for now a simple workaround is to
iterate through paths in LDFLAGS and ensure they exist.

References #441
2013-10-27 21:32:18 +01:00
SHIBATA Hiroshi
0b52061728 Fix installing Ruby 2.1.0 from trunk
Stop quoting in LDFLAGS and CPPFLAGS. Ruby trunk chokes on it:
3636f8c0f5

Closes #441
2013-10-27 20:42:50 +01:00
Mislav Marohnić
de409790d2 Merge branch 'provide-bundle-rake' 2013-10-26 18:35:10 +02:00
Mislav Marohnić
9a2c45bab6 Add ability to debug stub calls in testing
Example:

        export RAKE_STUB_DEBUG=2
2013-10-26 18:29:36 +02:00
Mislav Marohnić
51000d5e56 Add test for automatic fetching of rake gem 2013-10-26 18:28:53 +02:00
Mislav Marohnić
a6847fdd62 Reduce boilerplate in tests 2013-10-26 17:49:43 +02:00
Mislav Marohnić
c1f506dfd6 Fix unstub cleanup process for failed stubs 2013-10-26 17:43:54 +02:00
Mislav Marohnić
9aab127f75 Install Rake and Bundler in isolation when missing
Some Rubies need Rake or Bundler for the installation process. However,
since the host Ruby version might not have those gems installed, install
them in a temporary GEM_HOME and add their executables to PATH.

Fixes #426
2013-10-26 17:39:55 +02:00
Mislav Marohnić
730a8164d5 Use rake from the current bundle for Rubinius
Rake might not be available on the system, but if there is a Gemfile,
assume that it bundles rake.
2013-10-26 15:48:25 +02:00
Mislav Marohnić
eaa187b4b7 Fix installer script changing into current directory
Fixes #440
2013-10-26 14:45:02 +02:00
Mislav Marohnić
5930aa29c0 Merge branch 'copy-recursive' 2013-10-26 08:47:38 +02:00
Mislav Marohnić
f27c561388 Recursive copying fixes and tests
Use the `cp -f` flag to force unlinking non-writable files.

Closes #384
2013-10-26 08:20:44 +02:00
Jeremy Stephens
273bc17fe7 Force copying files for mruby
When installing mruby-dev, the cp command doesn't use the force flag.
This causes an issue when using a custom build configuration (via
MRUBY_CONFIG environment variable) and installing mrbgems from Github,
as the pack files in the git repositories are read-only.
2013-10-26 08:05:06 +02:00
Mislav Marohnić
c1bd4134a9 Merge branch 'failed-download' 2013-10-26 06:45:34 +02:00
Mislav Marohnić
51d8e5125c Prefer control flow to chaining grouped expressions
Helps avoid the pitfall where ERR trap has no effect.
See 262eb1658c
2013-10-26 06:43:54 +02:00
Mislav Marohnić
262eb1658c Clearer error message when HTTP download fails
Previously, if `http get` failed, the `download_tarball` function would
still continue since the ERR trap had no effect at that point.

Given a script in the form of `{ ... } || return 1`, the expressions
that are the part of the first group are not subject to ERR trap since
they are non-last in a chain of expressions.

However, since we still can't count on the ERR trap taking effect in
this phase, better just rewrite the function to manually abort.

Fixes #394
2013-10-26 06:32:03 +02:00