Commit graph

798 commits

Author SHA1 Message Date
Erik Michaels-Ober
498062cd0d ruby-build 20140918 2014-09-18 12:40:13 +02:00
SHIBATA Hiroshi
d646595b87 removed yaml from Ruby 2.2.0 preview1 2014-09-18 13:21:24 +09:00
Mislav Marohnić
de310f5028 Merge pull request #637 from cosmo0920/2.2.0-preview1
Add 2.2.0-preview1
2014-09-17 22:12:05 -06:00
cosmo0920
997d14c714 released 2.2.0 preview1 2014-09-18 12:21:40 +09:00
Mislav Marohnić
4ef4ed4cd1 Merge pull request #633 from sstephenson/upgrade-instructions
Show specific upgrade instructions based on environment
2014-09-11 10:30:47 -07:00
Mislav Marohnić
5285456b71 Merge pull request #635 from sstephenson/add-checksums
Add missing checksums to Rubinius definitions
2014-09-09 23:28:24 -07:00
Mislav Marohnić
92d9cf849a Add missing checksums to Rubinius definitions 2014-09-09 23:24:14 -07:00
Mislav Marohnić
b14f8c0536 Fill in TRAVIS_COMMIT_RANGE if missing
Workaround for travis-ci/travis-ci#1719
2014-09-09 23:24:14 -07:00
Mislav Marohnić
e754d67e14 Fix test to compensate for different ls output on Fedora/Centos 2014-09-09 00:03:18 -07:00
Mislav Marohnić
32a825c515 Merge branch 'os-release' 2014-09-08 23:02:45 -07:00
Mislav Marohnić
406d745f50 Peruse /etc/os-release among others when detecting system info
On Fedora, this results in a nice "Fedora 19" identifier and doesn't
show the codename "Schrödinger’s Cat" which is otherwise contained in
`/etc/fedora-release`.

On Arch, this shows "Arch Linux" where previously we had no info for it
(for some reason, `/etc/arch-release` is empty).

http://www.freedesktop.org/software/systemd/man/os-release.html
2014-09-08 22:58:05 -07:00
Mislav Marohnić
aa4a237f79 Show specific upgrade instructions based on environment
Because ruby-build is both a Homebrew formula and an rbenv plugin, some
people end up with both installed. In these cases, executing
`rbenv install` vs. `ruby-build` might not use the same install. Users
end up being unsure where `rbenv install` is coming from and upgrading
it from the wrong location.

This detect whether ruby-build is contained in Homebrew or git and shows
upgrade instructions accordingly. Example:

    See all available versions with \`rbenv install --list'.

    If the version you need is missing, try upgrading ruby-build:

      brew update && brew upgrade ruby-build
2014-09-08 22:23:23 -07:00
Mislav Marohnić
b275e87cb7 Merge pull request #632 from sstephenson/definitions-completion
`rbenv install` completion includes definitions from plugins
2014-09-08 20:19:51 -07:00
Mislav Marohnić
56c8f296ce rbenv install completion includes definitions from plugins
Before, `ruby-build --definitions` was invoked sooner than
RUBY_BUILD_DEFINITIONS was built up with paths from rbenv plugins.
2014-09-08 20:14:33 -07:00
Mislav Marohnić
aaf50ec655 Fix brew-publish script that's part of release process
[ci skip]
2014-09-08 15:49:25 -07:00
Mislav Marohnić
512910a675 ruby-build 20140908 2014-09-08 13:49:41 -07:00
Mislav Marohnić
0170728de9 Merge pull request #630 from sstephenson/freebsd-make
On FreeBSD 10, stop defaulting to MAKE=gmake
2014-09-08 13:38:01 -07:00
Mislav Marohnić
c2eb5e2a2a Merge pull request #631 from sstephenson/sort-versions
Sort Ruby versions when listing available definitions
2014-09-08 13:36:34 -07:00
Mislav Marohnić
323c2b778b Sort Ruby versions when listing available definitions
Stable releases should now be sorted as a higher version than preview
releases or RCs. For instance:

- 1.9.3-preview < 1.9.3-rc1 < 1.9.3-p0
- 2.1.0-dev < 2.1.0-rc1 < 2.1.0
- jruby-1.7.0-preview1 < jruby-1.7.0-rc1 < jruby-1.7.0
2014-09-08 13:06:48 -07:00
Mislav Marohnić
274838bae1 Merge branch 'tmp-noexec'
Fixes #604
2014-09-08 10:57:18 -07:00
Mislav Marohnić
a4556a7346 Verify that TMPDIR can hold executables before installing
This detects when `/tmp` has been mounted with "noexec" mode and avoids
the cryptic error:

  ./configure: Permission denied

Hopefully the information provided will be enough for the user to know
that they have to change TMPDIR to another location.
2014-09-08 10:43:57 -07:00
Mislav Marohnić
60a5abeb3d Fix stripping away non-digits from OS release number 2014-09-08 10:05:17 -07:00
Mislav Marohnić
0e58079d66 On FreeBSD, stop defaulting to MAKE=gmake
It appears that regular `make` that ships on FreeBSD 10 is compatible
enough to build Rubies. This enables ruby-build on fresh FreeBSD
installs (which don't have `gmake` by default) without having to
explicitly set `MAKE=make`.
2014-09-08 09:52:15 -07:00
Mislav Marohnić
29f1a19154 Merge branch 'pr-checksum' 2014-09-08 09:22:33 -07:00
Mislav Marohnić
66fd3ec2f3 Merge branch 'freebsd-cpu'
Closes #610
2014-09-08 09:17:40 -07:00
Mislav Marohnić
95b32accd6 Improve script/mirror argument handling
Now supports `-h|--help`.
2014-09-08 09:15:52 -07:00
Mislav Marohnić
3add5c4637 Verify checksums for pull requests from other people
This has the CI step verify the checksums for URLs that might have been
added or edited to build definitions in a pull request.
2014-09-08 09:14:43 -07:00
Mislav Marohnić
f4c2fe67e3 Fix detecting of CPU cores on FreeBSD
On FreeBSD, use the same approach as OS X with `sysctl`.
2014-09-08 09:11:39 -07:00
Mislav Marohnić
bff583b247 Merge pull request #626 from sstephenson/build-output
Make build output and log more useful
2014-09-07 23:00:46 -07:00
Mislav Marohnić
b998838d42 Merge pull request #627 from sstephenson/list-custom-definitions
Fix `rbenv install --list` for definitions auto-discovery
2014-09-06 03:04:53 -07:00
Mislav Marohnić
311d96f779 Fix rbenv install --list for definitions auto-discovery
The build definitions auto-discovered from rbenv plugins would
previously not appear in `--list` results due to discovery process
taking place too late.
2014-09-06 02:57:19 -07:00
Mislav Marohnić
f8015da306 Fix output assertion
`assert_success` doesn't accept an argument via stdin
2014-09-06 02:56:39 -07:00
Mislav Marohnić
4463320e81 Print OS information on build failure
This is useful info for when someone is pasting build output to our
issue tracker seeking support.
2014-09-06 02:20:39 -07:00
Mislav Marohnić
95964b17f1 Highlight output that mentions path to full build log
People often miss that and think that the last 10 lines of build output
is the only information they got.
2014-09-06 02:17:11 -07:00
Mislav Marohnić
17cb1ed6af Prevent "BUILD FAILED" appearing twice on ./configure error
Since `./configure` executes in a bash subshell, it failing would
execute the ERR trap twice: once in a subshell and once in the main
process. An explicit `return 1` skips one of these ERR traps and fixes
double output.

I hope.

[image of I Have No Idea What I'm Doing dog]
2014-09-06 01:29:28 -07:00
Mislav Marohnić
0bdd502ba8 Indicate ruby-build version number on build failures
This might save us from having to ask people which version they have
installed when they paste us build output from the console.
2014-09-06 01:23:17 -07:00
Mislav Marohnić
2f51dee3f0 Print configure options when openssl ext failed to compile
This helps to debug whether `--with-openssl-dir` was used properly.
2014-09-05 16:56:48 -07:00
Mislav Marohnić
1fa109ceb1 Don't log files as they're extracted from tarball
The `-v` option for tar has been here since the beginning of ruby-build,
but it's not really informative to see a list of files in the log as the
list of files is guaranteed to be the same across machines since we do
checksums.
2014-09-05 16:56:48 -07:00
Erik Michaels-Ober
7a17175fc9 ruby-build 20140905 2014-09-05 15:31:01 +02:00
SHIBATA Hiroshi
736b229d8d Merge pull request #624 from chulkilee/jruby-1.7.15
add jruby-1.7.15
2014-09-05 16:34:28 +09:00
Chulki Lee
75573f0b82 add jruby-1.7.15 2014-09-04 22:57:36 -07:00
SHIBATA Hiroshi
85369d2ae2 Merge pull request #620 from patricknavarromahoney/master
add jruby 1.7.14 build
2014-08-28 11:12:04 +09:00
Patrick Mahoney
ee41f9006c add jruby 1.7.14 build 2014-08-27 21:20:51 -04:00
Mislav Marohnić
3190b36fdb Merge pull request #612 from sstephenson/git-revision
Read ruby-build revision from git if available
2014-08-25 18:00:55 -07:00
Mislav Marohnić
daee88248c Faster clone of Bats in CI
Avoid cloning the whole project's history which we'll never need
2014-08-25 17:55:03 -07:00
Mislav Marohnić
e8e77e6028 Read ruby-build revision from git if available
But don't assume that RUBY_BUILD_ROOT is where ruby-build's own files
reside, since RUBY_BUILD_ROOT can be overriden with alternate definition
files location.
2014-08-25 17:54:33 -07:00
Mislav Marohnić
3545e2595d Merge pull request #614 from sstephenson/rbenv-plugin-definitions
Auto-discovery of build definitions from rbenv plugins
2014-08-19 10:27:54 -07:00
Erik Michaels-Ober
e567eabc64 Merge pull request #615 from hone/ruby-1.9.2-p330
add ruby-1.9.2-p330
2014-08-19 18:46:11 +02:00
Terence Lee
6eec23d3aa add ruby-1.9.2-p330 2014-08-19 11:44:21 -05:00
Mislav Marohnić
78bc84660b Auto-discovery of build definitions from rbenv plugins
The `share/ruby-build/` directory from each rbenv plugin, if it exists,
is added to RUBY_BUILD_DEFINITIONS automatically during `rbenv install`.
2014-08-18 16:08:06 -07:00