New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dont use rubygems on extconf #191
Conversation
extconf.rb fail to run when disabling rubygems: `RUBYOPT='--disable-gems' rake` Instead of requiring rubygems here, we could just use rbconfig instead.
Looks OK to me but I'm curious: why would you want to disable gems? |
@skaes We(GitHub) have a few ruby scripts that run with less environment loaded as possible for speed. I dont know how faster they are TBH, but I found this while running |
@arthurnn got it. thx for the info. |
@skaes could you please make new release, ruby-prof-0.15.9 is added in gitlab-8.11 and i fail to build it because your
|
@glensc I'm confused: 0.15.9 does not include the patch discussed here. It's only on master branch. BTW, requiring rubygems has been obsolete now for a long time. Which ruby version are you using? |
@glensc Gem is defined in my ruby:
|
@skaes as outlined in #191 (comment) and 0.15.9 is broken for me, as patch from this PR is needed to fix build with my ruby. any trustworthy link about i'd say as long ruby has anyway, could you just release new version (and i'll ping gitlab dudes to bump their deps) as this is only gem that fails to build on my system.
|
I did not know about --disable-gems being a compile time option for ruby and with obsolete I meant that since 1.9.x rubygems is required by default in a "normal" ruby installation. Anyway, I'm going to release an updated gem to fix your problem. |
Released as 0.16.0 |
Please use 0.16.1. 0.16.0 won't work for ruby 2.1.10. |
thanks! |
@skaes could you also push out git tags so the releases be visible? |
@glensc please use 0.16.2. |
right. thanks |
This solve issues with ruby builds with rubygems preload see ruby-prof/ruby-prof#191 Signed-off-by: Rémy Coutable <remy@rymai.me>
extconf.rb fail to run when disabling rubygems:
RUBYOPT='--disable-gems' rake
Instead of requiring rubygems here, we could just use rbconfig instead.
See error that happens without this PR: