Dne 9.5.2018 v 11:47 Jun Aruga napsal(a): > ## To test Rails 5.2 from upstream > >> gem install rails -v 5.2.x >> rails new app >> cd app && rails s > I tested the case too. > > $ mock -r fedora-rawhide-x86_64 --scrub=all > $ mock -r fedora-rawhide-x86_64 -i ruby-devel sqlite-devel nodejs zlib-devel > > [mockbuild@f7854804dab34b0ca6a84627dca72625 work]$ ruby -v > ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux] > > [mockbuild@f7854804dab34b0ca6a84627dca72625 work]$ gem install rails -v 5.2.0 > ... > ERROR: While executing gem ... (Gem::DocumentError) > RDoc is not installed: cannot load such file -- rdoc/rdoc
mock is using dnf with "--setopt=install_weak_deps=False" option, which is not default on Fedora. V. > > [mockbuild@a22832048fd54ea399f7b19058b4147c work]$ gem list | grep rdoc > => empty > > Then users may think to install rdoc manually after seeing the error. > and users see the below error, as I mentioned before. > > [mockbuild@a22832048fd54ea399f7b19058b4147c work]$ gem install rdoc > Fetching: rdoc-6.0.4.gem (100%) > Successfully installed rdoc-6.0.4 > ERROR: While executing gem ... (NoMethodError) > undefined method `reset' for RDoc::TopLevel:Class > > As we know, rubygem-rdoc is not a runtime dependency of ruby on Fedora. > The behavior is different from upstream Ruby where rdoc is installed as > default. > > In this situation, how could users know to install "rubygem-rdoc" as a > correct step? > > > Jun > > > On Mon, May 7, 2018 at 3:57 PM, Jun Aruga <[email protected]> wrote: >> Hi Pavel, >> >> I tested Rails 5.2 from Pave's copr repository. >> Here is the result. >> >> https://fedoraproject.org/wiki/Changes/Ruby_on_Rails_5.2 >> >> ## To test only Rails itself >> >>> dnf install rubygem-rails >>> rails new app >>> cd app && rails s >> - I needed to install below dependencies in advance. >> mock -r fedora-rawhide-x86_64 -i ruby-devel sqlite-devel nodejs >> Should we note this dependency info somewhere (wiki page) ? >> The information looks useful for users to install Rails. >> >> - I had to install the dependency rdoc manually because of below error. >> rdoc-6.0.4 is successfully installed. But after that the error was showed. >> As a result, "gem install rdoc" was failed. >> >> [mockbuild@e7b88cea13194bc3aba1494b7d9efdef work]$ gem install rdoc >> Fetching: rdoc-6.0.4.gem (100%) >> Successfully installed rdoc-6.0.4 >> ERROR: While executing gem ... (NoMethodError) >> undefined method `reset' for RDoc::TopLevel:Class >> >> >> ## To test the complete feature including generating a new Rails app using >> RPM >> >>> dnf group install 'Ruby on Rails' >>> rails new app --skip-bundle && cd app >>> rails s >> The above commands in the wiki page to test the complete feature are not >> enough. >> I think we could add a command "bundle install --local" after "cd app" >> to the wiki page. >> >> I tried to install the dependency packages in app/Gemfile without >> development and test groups. >> >> $ mock -r fedora-rawhide-x86_64 -i rubygem-sqlite3 rubygem-puma >> rubygem-sass-rails rubygem-uglifier rubygem-coffee-rails >> rubygem-turbolinks rubygem-jbuilder rubygem-bootsnap >> >> => install rubygem-bootsnap: not found on Fedora. >> => install rubygem-coffee-rails: Old Rails 5.1 is installed as a downgrading. >> >> >> Right now that's all. >> >> Jun >> >> >> On Wed, May 2, 2018 at 3:32 PM, Pavel Valena <[email protected]> wrote: >>> ----- Original Message ----- >>>> From: "Jun Aruga" <[email protected]> >>>> To: "Ruby SIG mailing list" <[email protected]> >>>> Sent: Wednesday, May 2, 2018 9:54:13 AM >>>> Subject: Re: New/Updated packages for Rails 5.2.0 >>>> >>>> Hi Pavel, >>>> >>>>>>>> - rubygem-marcel >>>>>>> Yes, that's a runtime dependency of `activestorage` [0]. Could you help >>>>>>> with packaging this package into Fedora? >>>>>> Yes, I can. >>>>> Thanks. Let me know when you have the Review Request prepared; I (or >>>>> someone else listening) can do the review. >>>> Okay, I will let you know after I prepare rubygem-marcel (and the >>>> runtime dependency rubygem-mimemagic). >>> Thanks. >>> >>> You can follow the progress in my new ruby-on-rails copr [1]. >>> Jun, afterwards you can build the package there (I'll grant you ACLs). >>> >>> [1] https://copr.fedorainfracloud.org/coprs/pvalena/ruby-on-rails/packages/ >>> >>> Pavel >>> >>>> Jun >>>> >>>> >>> </snip> >>> >>>> >>>> >>>> -- >>>> Jun Aruga [email protected] >>>> IRC: jaruga, Office: TPB(Technology Park Brno) Building C 1F, Brno, >>>> Czech Republic >> >> >> -- >> Jun Aruga [email protected] >> IRC: jaruga, Office: TPB(Technology Park Brno) Building C 1F, Brno, >> Czech Republic > > _______________________________________________ ruby-sig mailing list -- [email protected] To unsubscribe send an email to [email protected]
