<mpapis>
oh I did not had time to look into it, to much distractions
<drbrain>
mpapis: how do I build a static ruby?
<mpapis>
and great work! the #596 could be closed and smaller issues can be penned for the missing parts?
<mpapis>
drbrain, do you have OSX?
<drbrain>
yes
<drbrain>
I would like to decide on the two issues listed in that commit before closing #596
<drbrain>
the first one is a user expectations problem
<drbrain>
the second one I need your help with
<mpapis>
so rvm.io/binaries/osx - this binaries are static
<drbrain>
thanks
<mpapis>
you cna just grab one and unpack
<mpapis>
rvm installs them by default if one matches system / ruby version
<drbrain>
nice, it gave me SEGV!
<mpapis>
oh!
<mpapis>
wrong platform?
<drbrain>
I mean, when I used the nokogiri compiled for my shared ruby 2.0.0-p247, it segfaulted
<mpapis>
orr maybe something is wrong - there might be broken link for the default GEM_HOME
<drbrain>
when loading nokogiri/nokogiri.bundle
<drbrain>
(this was expected, yes?)
<mpapis>
aha yes that should break
<mpapis>
like it does with bundler --path
<drbrain>
I guess I just need to check CONFIG['ENABLE_SHARED']
stevenharman has quit [Quit: Leaving...]
jfoy has quit [Quit: jfoy]
<mpapis>
drbrain, I'm not sure, was it the only difference? static on linux and osx are different, on linux you can actually do --static in osx you have to LDFLAGS="-Bstatic"
<mpapis>
which changes only part of linking to be static ... apple does not make things easy
<drbrain>
it seems to be the major difference between the two rbconfig.rbs
<mpapis>
ah ok, then I guess it should be enough
<drbrain>
there are some differences like darwin12.3.0 vs 12.4.0
<drbrain>
and some options (doc install) you disabled
<drbrain>
and clang vs gcc
enebo has quit [Quit: enebo]
huoxito has joined #rubygems
headius has quit [Quit: headius]
tcopeland has joined #rubygems
workmad3 has joined #rubygems
stevenharman has joined #rubygems
jfoy has joined #rubygems
huoxito has quit [Remote host closed the connection]
huoxito has joined #rubygems
ZachBeta has quit [Quit: Computer has gone to sleep.]
marpaia has quit [Quit: WeeChat 0.4.1]
huoxito has quit [Ping timeout: 246 seconds]
huoxito has joined #rubygems
<drbrain>
mpapis: commit 010ae97 and newer should be good for your testing
<drbrain>
I'm unsure what to do for "gem directory is not writable" at this point
<drbrain>
for rvm, etc. it should not be a big deal to raise an exception, I think most users have writable gem directories
<drbrain>
I'm leaving a comment on #596
jaimef has quit [Remote host closed the connection]
<drbrain>
I'm leaning toward 2, install under ~/.gem somewhere
<mpapis>
drbrain, if users want to share one GEM_HOME then they should set it - otherwise the gem is installed only for one ruby
workmad3 has quit [Ping timeout: 264 seconds]
<drbrain>
hrm, good point
<mpapis>
if the extensions compilation during installation is still there then it should be all fine
<mpapis>
unless you need sudo to install to GEM_HOME
<drbrain>
I suppose I can go with 1. for now
<drbrain>
and fix it in a future release
jaimef has joined #rubygems
<drbrain>
it will be less for me to write :D
<mpapis>
there is one thing
<drbrain>
I'm unsure if people will do export GEM_HOME=… to a directory that needs sudo to write to
<mpapis>
when you install gem not only check if it is available but also compile extensions
<drbrain>
currently extensions are compiled at install time
<mpapis>
but not for all platforms?
<drbrain>
only for the current ruby (because it cannot know other rubys)
<mpapis>
I mean gem20 install ... ; gem21 install ...
<mpapis>
in the other ruby it should compile the missing extensions
<drbrain>
then you will have GEM_HOME/extensions/2.0.0/.../ and GEM_HOME?extensions/2.1.0/.../
<mpapis>
ah ok that is good
<drbrain>
where … is x86-darwin12.4.0 or whatever
<mpapis>
what about dependencies?
<drbrain>
they behave like normal
<mpapis>
what if I have non-extension gem (A) that depends on extension gem (B) and gem20 install A; gem21 install A
<drbrain>
if there is a version-restricted dependency, you will need to run `gem install` again to get it
<mpapis>
B would be left without extensions for ruby21
<drbrain>
currently the extension will be built at load time.
<drbrain>
please leave a comment so I can fix it
<mpapis>
ok
<drbrain>
thanks for checking for me
csaunder_ has joined #rubygems
huoxito has quit [Remote host closed the connection]
huoxito has joined #rubygems
huoxito has quit [Ping timeout: 248 seconds]
havenwood has quit [Remote host closed the connection]
havenwood has joined #rubygems
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #rubygems
imperator has joined #rubygems
csaunder_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Read error: Connection reset by peer]