Giter Site home page Giter Site logo

Comments (8)

mislav avatar mislav commented on June 28, 2024

These have the advantages that autoconf, bison, etc have already run.
So they don't need extra packages and they can use the same logic as building releases.

I'm up for this if @hsbt agrees!

Would builds on top of these snapshots still require make update-gems, make extract-gems?

ruby-build/bin/ruby-build

Lines 708 to 713 in 270ecd0

build_package_standard_install_with_bundled_gems() {
capture_command "$MAKE" update-gems
capture_command "$MAKE" extract-gems
build_package_standard_install "$@"
}

from ruby-build.

eregon avatar eregon commented on June 28, 2024

Would builds on top of these snapshots still require make update-gems, make extract-gems?

No it would not :)

from ruby-build.

hsbt avatar hsbt commented on June 28, 2024

stable(3.2) and old stable(3.1) are okay to replace snapshot packages. But master(3.3.0-dev) is sometimes old with daily package. Because I used it at many times while daytime.

from ruby-build.

eregon avatar eregon commented on June 28, 2024

I see, that's unfortunate. Maybe the master snapshot could be automatically updated after every commit and then it would be reasonably up-to-date?

master is kind of special, in fact I think we should add a ruby-dev definition for that instead/in addition to 3.3.0-dev.

from ruby-build.

mislav avatar mislav commented on June 28, 2024

But master(3.3.0-dev) is sometimes old with daily package.

If the snapshots are behind the actual git commits to any of the development branches, then switching ruby-build definitions to snapshots would be a downgrade, in my opinion.

So it would also simplify that page if we don't have to include dependencies only relevant for building from git.

@eregon The aim for the wiki page was to provide a suggested build environment for stable releases of Ruby only. As for development releases, we assume that a person willing to build a *-dev version would also put in the research necessary to gather the necessary prerequisites, such as autoconf.

from ruby-build.

mislav avatar mislav commented on June 28, 2024

If I am reading this correctly, then the master snapshot is several days behind the master branch in git:

$ tar xzf snapshot-master.tar.gz -O -- \*/revision.h | grep REVISION                                                                                
#define RUBY_REVISION "bbfd735b88"
#define RUBY_FULL_REVISION "bbfd735b887de71de48c7f862e6e3842bcc03241"

$ git -C ~/.rbenv/cache/https_github.com_ruby_ruby.git describe --all bbfd735b887de71de48c7f862e6e3842bcc03241 --match master
heads/master-876-gbbfd735b88

Also ref. https://github.com/ruby/ruby/blob/HEAD/tool/make-snapshot

from ruby-build.

eregon avatar eregon commented on June 28, 2024

Right, unless snapshots are pretty close to latest commit I agree it's not a viable option, so let's close this at least until that's the case.

@eregon The aim for the wiki page was to provide a suggested build environment for stable releases of Ruby only. As for development releases, we assume that a person willing to build a *-dev version would also put in the research necessary to gather the necessary prerequisites, such as autoconf.

The nice thing about jruby-dev and truffleruby-dev is they have the exact same deps as release builds.
So the different dependencies for -dev seems to only affect CRuby.

Also since some of https://github.com/rbenv/ruby-build/wiki#suggested-build-environment contain autoconf I think originally they contained deps for CRuby dev too.

@mislav How about adding autoconf for Fedora and RHEL in the wiki? I'll do that.
Plus that would remove the need for the dnf install perl-FindBin perl-File-Compare section as that's dependencies of autoconf.

from ruby-build.

mislav avatar mislav commented on June 28, 2024

How about adding autoconf for Fedora and RHEL in the wiki? I'll do that.

I'm not opposed; thanks for doing that!

from ruby-build.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.