Commit graph

2,176 commits

Author SHA1 Message Date
Mislav Marohnić
73fd499a2e Fix Rubinius build when libyaml is present in Homebrew
Rubinius never supported the `--with-libyaml-dir` configure option, so
we can never use `--if needs_yaml` since it's incompatible and might
break the build if libyaml was auto-discovered from Homebrew.

Starting from 2.2.0, Rubinius doesn't even need libyaml anymore since it
stopped building psych. Instead it requires users to install psych as a
gem which vendors its own libyaml anyway.
2014-10-28 15:41:09 +01:00
Mislav Marohnić
b396ad7cd1 Try openssl from Homebrew when calculating SHA-256 checksums
This makes checksums possible on Leopard where `shasum` is unavailable
and system openssl doesn't support `dgst -sha256`.

Fixes #656
2014-10-28 15:28:48 +01:00
Mislav Marohnić
6e39eb52a8 Use CC=clang by default on Yosemite to avoid gcc-4.2
Newer MRIs will pick up gcc-4.2 from PATH and use that instead of
`/usr/bin/gcc`. While this worked up till now, it will not work in
Yosemite anymore since Homebrew's apple-gcc42 is generally not
compatible with 10.10.

So when CC has not explicitly been set, set it to `clang` to avoid
searching the PATH for any other gcc versions. This fixes MRI builds on
systems where apple-gcc42 is installed.
2014-10-28 15:28:07 +01:00
Mislav Marohnić
dafba300b1 Silence warnings when testing gccs
This silences the warning that gcc-4.2 produces on Yosemite:

    couldn't understand kern.osversion `14.0.0'
2014-10-28 10:59:01 +01:00
Mislav Marohnić
10fd04909d Fix Yosemite builds that use gcc-4.2 through require_gcc
The definitions that use `require_gcc` are not compatible with Apple's
clang-powered `gcc` and need gcc-4.2 from Homebrew. However, builds
using gcc-4.2 fail on Yosemite with a warning:

    couldn't understand kern.osversion `14.0.0'

Although the warning is non-fatal, the build goes to shit from there. It
seems that setting the magical value `MACOSX_DEPLOYMENT_TARGET=10.9`
makes the build work and doesn't seem to have negative consequences.
2014-10-28 10:58:38 +01:00
SHIBATA Hiroshi
e7810a61eb Merge branch 'cve-2014-8080' v20141027 2014-10-27 21:55:31 +09:00
SHIBATA Hiroshi
7db9b2ad19 added definitions for CVE-2014-8080 2014-10-27 21:35:03 +09:00
Mislav Marohnić
9bb5895941 Merge pull request #655 from wilson/master
Use HTTPS URLs to fetch JRuby distfiles.
2014-10-26 17:30:51 +01:00
Wilson Bilkovich
abae45bd38 Use HTTPS URLs to fetch JRuby distfiles.
See https://twitter.com/jruby/status/525726366533443584 which expresses
the desire to see this change.
2014-10-24 12:38:52 -07:00
Mislav Marohnić
c2b2e1524f Merge pull request #653 from singlethink/bug-fix-noexec-check
Fix TMPDIR noexec check to explicitly exit with a zero exit status on success
2014-10-17 22:38:18 +02:00
Matthew Van Gundy
aaf8a852ff Fix TMPDIR noexec check to explicitly exit with a zero exit status on success
The TMPDIR check implemented in a4556a73 incorrectly reports that
TMPDIR cannot hold executables on 4.3.11(1) on Ubuntu 14.04.1 LTS.
This is because a script containing no commands returns a non-zero
exit code.  Contrast the following:

  bash 3.2.53(1) on OS X 10.9.5:

    $ bash -c '' && echo SUCCESS
    SUCCESS

  bash 4.3.11(1) on Ubuntu 14.04.1 LTS:

    $ bash -c '' || echo FAIL
    FAIL

This patch modifies the test script to explicitly call `exit 0` to
ensure that a successful exit code is returned if the script executes
successfully.
2014-10-17 11:15:42 -04:00
Erik Michaels-Ober
a330ab1c38 Merge pull request #652 from sstephenson/openssl-1.0.1j
Upgrade to openssl-1.0.1j
2014-10-16 08:57:28 +01:00
SHIBATA Hiroshi
5d738abbc9 upgrade openssl-1.0.1j 2014-10-16 09:48:04 +09:00
SHIBATA Hiroshi
803a49a831 Merge pull request #593 from azet/patch-1
Disable insecure SSL protocols
2014-10-16 08:39:56 +08:00
Erik Michaels-Ober
e1811b9fa3 ruby-build 20140926 v20140926 2014-09-26 06:07:57 +04:00
SHIBATA Hiroshi
68c0cf6b10 Merge pull request #645 from makotosasaki/03
add jruby-1.7.16
2014-09-26 08:50:35 +08:00
Makoto Sasaki
5ecced491d add jruby-1.7.16 2014-09-26 09:18:40 +09:00
SHIBATA Hiroshi
4cf6dc582d Merge pull request #644 from meineerde/feature/upgrade_openssl_to_1.0.1i
Upgrade OpenSSL library to 1.0.1i
2014-09-24 21:36:40 +09:00
Holger Just
e90cb88c41 Upgrade OpenSSL library to 1.0.1i
Previous versions of the library contain several vulnerabilities:
https://www.openssl.org/news/secadv_20140806.txt
2014-09-24 14:23:06 +02:00
Mislav Marohnić
04fe8ab73c Merge pull request #516 from docwhat/better-openssl-check
OS X: Fixes check for OpenSSL version

Fixes #606
2014-09-20 00:35:57 -06:00
Mislav Marohnić
a8b23fac56 ruby-build 20140919 v20140919 2014-09-19 09:04:50 -06:00
SHIBATA Hiroshi
7a9937daa7 Merge pull request #638 from hsbt/ruby-213-and-ruby200p576
Added definition of new rubies
2014-09-19 19:45:19 +09:00
SHIBATA Hiroshi
0a411f33a8 added definition of new rubies 2014-09-19 17:51:48 +09:00
Erik Michaels-Ober
498062cd0d ruby-build 20140918 v20140918 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 v20140908 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ć
025e7c6952 Check that openssl, yaml, readline, zlib are all loadable
If not, suggest that you should install necessary dependencies if a
package manager `apt-get` or `yum` is detected on the system.
2014-09-08 09:23:35 -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