Skip to content

Instantly share code, notes, and snippets.

@martintsch
Forked from jhbabon/2.1.0-railsexpress
Created February 10, 2014 16:31
Show Gist options
  • Select an option

  • Save martintsch/8919224 to your computer and use it in GitHub Desktop.

Select an option

Save martintsch/8919224 to your computer and use it in GitHub Desktop.

Revisions

  1. @jhbabon jhbabon revised this gist Feb 10, 2014. 1 changed file with 12 additions and 4 deletions.
    16 changes: 12 additions & 4 deletions 2.1.0-railsexpress
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,17 @@
    build_package_patch_ruby_railsexpress() {
    fetch_git rvm-patchsets git://github.com/skaes/rvm-patchsets.git master
    fetch_git rvm-patchsets git://github.com/jhbabon/rvm-patchsets.git fix-2.1.1-backport

    for p in rvm-patchsets/patches/ruby/2.1.0/railsexpress/* ; do
    patch -p1 < $p
    done
    patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/01-current-2.1.1-fixes.patch
    patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/02-zero-broken-tests.patch
    patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/03-improve-gc-stats.patch
    patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/04-display-more-detailed-stack-trace.patch
    patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/05-show-full-backtrace-on-stack-overflow.patch
    patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/06-fix-missing-c-return-event.patch
    patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/07-backport-006e66b6680f60adfb434ee7397f0dbc77de7873.patch
    patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/08-funny-falcon-stc-density.patch
    patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/09-funny-falcon-stc-pool-allocation.patch
    patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/10-aman-opt-aset-aref-str.patch
    patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/11-funny-falcon-method-cache.patch
    }

    install_package "openssl-1.0.1e" "https://www.openssl.org/source/openssl-1.0.1e.tar.gz#66bf6f10f060d561929de96f9dfe5b8c" mac_openssl --if has_broken_mac_openssl
  2. @jhbabon jhbabon revised this gist Feb 10, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 2.1.0-railsexpress
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    build_package_patch_ruby_railsexpress() {
    fetch_git rvm-patchsets git://github.com/skaes/rvm-patchsets.git master

    for p in rvm-patchsets/patches/ruby/2.1.0/p0/railsexpress/* ; do
    for p in rvm-patchsets/patches/ruby/2.1.0/railsexpress/* ; do
    patch -p1 < $p
    done
    }
  3. @jhbabon jhbabon created this gist Jan 3, 2014.
    10 changes: 10 additions & 0 deletions 2.1.0-railsexpress
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    build_package_patch_ruby_railsexpress() {
    fetch_git rvm-patchsets git://github.com/skaes/rvm-patchsets.git master

    for p in rvm-patchsets/patches/ruby/2.1.0/p0/railsexpress/* ; do
    patch -p1 < $p
    done
    }

    install_package "openssl-1.0.1e" "https://www.openssl.org/source/openssl-1.0.1e.tar.gz#66bf6f10f060d561929de96f9dfe5b8c" mac_openssl --if has_broken_mac_openssl
    install_package "ruby-2.1.0" "http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.0.tar.gz#9e6386d53f5200a3e7069107405b93f7" patch_ruby_railsexpress ldflags_dirs standard verify_openssl
    17 changes: 17 additions & 0 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    #!/usr/bin/env bash

    if command -v brew > /dev/null
    then
    if brew --prefix openssl > /dev/null
    then
    CONFIGURE_OPTS="$CONFIGURE_OPTS --with-openssl-dir=`brew --prefix openssl`"
    fi

    if brew --prefix readline > /dev/null
    then
    CONFIGURE_OPTS="$CONFIGURE_OPTS --with-readline-dir=`brew --prefix readline`"
    fi
    fi

    echo "==> Installing ruby version:"
    rbenv install ./2.1.0-railsexpress