last day (17 days later) » 

jrg
jrg
20:49
ok, what is going on here. :P
did you break ondina? :D
IIRC you said you've used rbenv && ruby-build, right?
jrg
jrg
i've used it once, yeah
ah, only once
jrg
jrg
however, i know the basic idea behind it, and i know why people use it.
I'm trying to cut down on the time it takes to build a new shim for rbenv
My initial thought was to just have a central build area and copy completed builds into the versions directory - then rehash
jrg
jrg
hm. i see
but that isn't going to work is it.
but that doesn't seem to work - do you have any fun ideas how to make building faster?
jrg
jrg
idk.
Ah okay, was worth a shot <3
jrg
jrg
20:52
let me implode rvm and look at rbenvs innards.
that would be awesome
(in case it matters later, you can override the arguments for "make" by setting $MAKEOPTS, which might be useful to trick make into using something pre-build, or something)
jrg
jrg
@MarcoCeppi is ruby-build required?
It's being used currently
becauseidon'twanttouseapt
cantwaittostartplayingwithvirtualenv
jrg
jrg
21:18
ok, can't get rbenv working locally for some reason
oh ok, was adding $PATH to the wrong place
21:31
We talked about this for a bit, it would be excellent if setting up a new version of ruby was quick on a per account basis. Otherwise the user will get a message like "Oh, hey - we're building this stupid ruby version. Wait lyke 5mins <3"
jrg
jrg
heres an idea
when you make a new user, you copy from etc/skeleton (or whatever it is) right?
correct
/etc/skel
jrg
jrg
just supply 1.8.7 and 1.9.2 by default
thats about all people are going to use until 2.0rc
if you look inside these definition files,
that's where you could attack the makefiles
I suppose
jrg
jrg
21:48
so you're suggesting having a fork of rbenv?
not totally: but I wonder whether make is supposed to not compile stuff that is already compiled?
in any case, rather than actually having "make" in the makefile, it could just copy pre-build binaries
you can also get additional arguments to make by setting an environment variable. $MAKEOPTS
jrg
jrg
good idea.
so, maybe, you could use that exit make prematurely, then run "tar -x stuff; ruby-build", instead of plain "ruby-build"
jrg
jrg
well, thats rbenv
there are two tools - rbenv, and then ruby-build
21:53
you mean rbenv is actually doing the make?
jrg
jrg
Install Ruby versions into ~/.rbenv/versions. For example, to install Ruby 1.9.2-p290, download and unpack the source, then run:

$ ./configure --prefix=$HOME/.rbenv/versions/1.9.2-p290
$ make
$ make install
whereas what ruby-build does is provide rbenv-build
jrg
jrg
and then you can do rbenv-build install 1.9.2p290
yeah I get the picture now
Iv'e been doing rbenv install (using the ruby-build plugin for rbenv)
jrg
jrg
21:57
so what i think could work is have a script that copies a pre-built ruby from somewhere into $HOME/.rbenv/versions
@jrg I've done that, and it recognizes the version in rbenv versions
but when I select it with global, etc
it won't resepect it
jrg
jrg
oh...
though I might have done something wrong
I'm about to head home - so I'll take another stab at it

  last day (17 days later) »