Commit graph

151 commits

Author SHA1 Message Date
Jason Staten
b193b49c6b mruby-dev 2013-04-05 08:23:34 -06:00
Greg Price
9c3e1644e9 Better target the shorten-64-to-32 workaround (#325, #319)
The previous version of this logic was causing us to
pass the flag when
 * clang is on the PATH, and
 * $CC, or 'clang' if CC unset, accepts the flag.
But this is totally wrong if we have clang installed,
haven't set $CC, and are going to end up using gcc.
We end up passing the flag to gcc, which rejects it.

The real fix is to put this in the autoconf goo in MRI
upstream -- the only correct way to decide whether to pass
this flag is after we know exactly what compiler we're using
and can test if that compiler accepts the flag.  But we can
do better than before by approximating autoconf's choice of
compiler as $CC if set, 'cc' otherwise (which will typically
be a symlink to gcc or clang or another.)

Fixes: https://github.com/sstephenson/ruby-build/issues/319
  and #325, which is a dupe.
2013-04-01 19:21:17 -07:00
Erik Michaels-Ober
1fb955eead Merge pull request #326 from quark-zju/keep-downloaded-tarball
Keep downloaded tarball sometimes
2013-03-24 19:48:51 -07:00
Sam Stephenson
386b37613f rbenv install 1.9.3 lists matching definitions 2013-03-21 12:40:53 -05:00
WU Jun
3d2f1a7277 keep source tarball if '--keep' or 'tar xf' fails 2013-03-18 14:11:09 +08:00
WU Jun
d0912e4fb5 use --continue when downloading tarball 2013-03-12 16:40:13 +08:00
Erik Michaels-Ober
28bdf54ef4 ruby-build 20130227 2013-02-27 16:05:26 -08:00
Sam Stephenson
06d7994bcf Feature detection for -Wno-error=shorten-64-to-32 2013-02-27 12:45:26 -06:00
Sam Stephenson
e75dcd07fb Default Ruby CFLAGS to -Wno-error=shorten-64-to-32; don't set CC
Ref. #290, #311
2013-02-27 11:12:41 -06:00
Erik Michaels-Ober
84820db1c0 ruby-build 20130226 2013-02-26 08:40:13 -08:00
Jeremy Kemper
fee1e499fb Build a shared openssl to link to Ruby as a stopgap to fix build issues some people are having, pending understanding why static linking isn't working. 2013-02-25 12:45:08 -06:00
Erik Michaels-Ober
c59f4a7450 ruby-build 20130225 2013-02-25 02:04:04 -08:00
Jeremy Kemper
bdc7b4fbb6 Merge pull request #310 from znz/fix-exit-status-of-install-with-verbose
fix exit status of install with verbose
2013-02-24 20:42:27 -08:00
Jeremy Kemper
f6091b8b06 No need to rehash when using CAfile. Used for file-per-cert CApath hashing. 2013-02-24 20:24:19 -07:00
Jeremy Kemper
527e3e35ca Rename the CAfile to cert.pem since that's the hardcoded default.
$ strings ~/.rbenv/versions/2.0.0-rc2/openssl/lib/libcrypto.a |
  grep -B3 SSL_CERT_FILE
/Users/jeremy/.rbenv/versions/2.0.0-rc2/openssl/ssl/certs
/Users/jeremy/.rbenv/versions/2.0.0-rc2/openssl/ssl/cert.pem
SSL_CERT_DIR
SSL_CERT_FILE
2013-02-24 20:21:01 -07:00
Kazuhiro NISHIYAMA
f63cbf815a fix exit status of install with verbose 2013-02-25 11:43:36 +09:00
Erik Michaels-Ober
97fc5c55e5 ruby-build 20130224 2013-02-24 09:15:31 -08:00
Erik Michaels-Ober
1b196d79ec ruby-build 20130222 2013-02-22 10:44:38 -08:00
Alexander Staubo
77894a2802 Pass -q to curl to avoid loading user's potentially conflicting .curlrc. Related to #244. 2013-02-10 23:52:22 +01:00
Sam Stephenson
3c6fa3901c Allow building against a custom OpenSSL on OS X 2013-02-08 18:25:11 -06:00
Erik Michaels-Ober
5d36bc93bb ruby-build 20130208 2013-02-08 15:27:08 -08:00
Sam Stephenson
94add57f17 Include certs from /System/Library/Keychains/SystemRootCertificates.keychain 2013-02-08 17:20:25 -06:00
Sam Stephenson
243e6fbecf Support conditional package installation with --if <test> 2013-02-08 16:48:02 -06:00
Jeremy Kemper
3a426d13b7 Rely on OpenSSL to pick the right arch. Hint that we prefer 64-bit. 2013-02-08 14:55:52 -07:00
Jeremy Kemper
92635abd51 Be sure to use c_rehash from the OpenSSL build we just installed 2013-02-08 14:51:57 -07:00
Sam Stephenson
81da19cde8 Use $RUBY_BIN 2013-02-08 15:32:27 -06:00
Sam Stephenson
fdfe71c061 Merge master 2013-02-08 15:29:23 -06:00
Erik Michaels-Ober
97d67eb5b6 ruby-build 20130206 2013-02-06 11:55:00 -08:00
Sam Stephenson
a0ace79cd7 Explicitly declare OpenSSL condition and URL in the definition files 2013-02-04 17:55:38 -06:00
Sam Stephenson
881698e16b Handle 32-bit OS X 2013-02-04 16:56:42 -06:00
Sam Stephenson
80373fb670 Guard against missing openssl (future OS X versions?) 2013-02-04 16:28:50 -06:00
Sam Stephenson
a89e8fbb33 We use uname -s to test for OS X elsewhere; stay consistent 2013-02-04 16:28:06 -06:00
Sam Stephenson
62411c44c5 Quote $PREFIX_PATH 2013-02-04 16:26:17 -06:00
Sam Stephenson
a0570c9bfe Default CC=cc for broken Ruby 2.0 gcc detection on OS X 2013-02-04 16:15:40 -06:00
Sam Stephenson
279f0d0606 Extract package_option helper 2013-02-04 16:15:07 -06:00
Sam Stephenson
f3405373a1 Add PACKAGE_{CONFIGURE,MAKE}_OPTS_ARRAY for injecting quoted arguments 2013-02-04 14:05:09 -06:00
Jeremy Kemper
959e5cb22b Build OpenSSL for Ruby 2.0 on OS X.
Apple ships a patched, incompatible OpenSSL. We build a compatible
OpenSSL from source.
2013-02-04 11:01:05 -07:00
Sam Stephenson
a6395eb296 Add support for RUBY_CONFIGURE_OPTS and RUBY_MAKE_OPTS
These variables let you pass Ruby-specific configure and make options
that will not be passed to dependent packages like libyaml.
2013-01-31 09:49:01 -06:00
Sam Stephenson
d9bbeb3ebd ruby-build 20130129 2013-01-29 18:23:24 -06:00
Sam Stephenson
a0fef0bb83 Ensure $MAKE is quoted 2013-01-29 18:09:30 -06:00
Sam Stephenson
ea7dd51fb3 Move MAKE default near the others 2013-01-29 18:09:13 -06:00
Erik Michaels-Ober
0dcfad6a5e Merge pull request #271 from nobu/master
No needs to chmod all directories.
2013-01-21 17:46:12 -08:00
Erik Michaels-Ober
310bb48a9a Merge pull request #272 from onibox/make-env-var
Support selection of 'make' tool via environment variable
2013-01-21 14:02:29 -08:00
Fabian M. Borschel
898c008e37 Support selection of 'make' tool via environment variable 2013-01-20 22:34:14 +01:00
Erik Michaels-Ober
97879ca69c ruby-build 20130118 2013-01-18 10:07:04 -08:00
Nobuyoshi Nakada
763f96da54 Invoke chmod for group or world writable directories only 2013-01-18 13:42:43 +09:00
Erik Michaels-Ober
9ef0e06c63 ruby-build 20130104 2013-01-05 10:48:48 -08:00
Erik Michaels-Ober
b97e53be60 ruby-build 20121227 2012-12-27 08:26:59 -08:00
Sam Stephenson
47f1a28810 Switch the default mirror from GitHub Downloads to Amazon CloudFront 2012-12-12 13:48:10 -06:00
Erik Michaels-Ober
a2895ad99d ruby-build 20121204 2012-12-04 13:52:15 -08:00