Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-ruby/rdoc-5.0.0 emerge failed with cannot load gem_tasks
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
yzg
Guru
Guru


Joined: 18 Jun 2005
Posts: 493

PostPosted: Mon Dec 26, 2016 6:27 am    Post subject: dev-ruby/rdoc-5.0.0 emerge failed with cannot load gem_tasks Reply with quote

Updating with emerge -avuDN world, the emerge dev-ruby/rdoc-5.0.0 failed with the message
Code:

>>> Compiling source in /var/tmp/portage/dev-ruby/rdoc-5.0.0/work ...
 * Running compile phase for ruby21 ...
rake aborted!
LoadError: cannot load such file -- bundler/gem_tasks
/var/tmp/portage/dev-ruby/rdoc-5.0.0/work/ruby21/rdoc-5.0.0/Rakefile:3:in `<top (required)>'


Do you encounter the same problem?
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3435
Location: Gainesville, Florida

PostPosted: Mon Dec 26, 2016 8:31 am    Post subject: Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=603674
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.36-r7, gcc-13.2.1_p20230304
kernel-6.8.4 USE=experimental python3_11
Back to top
View user's profile Send private message
fturco
Veteran
Veteran


Joined: 08 Dec 2010
Posts: 1181
Location: Italy

PostPosted: Mon Dec 26, 2016 8:36 am    Post subject: Reply with quote

Install dev-ruby/bundler first.
Back to top
View user's profile Send private message
yzg
Guru
Guru


Joined: 18 Jun 2005
Posts: 493

PostPosted: Mon Dec 26, 2016 9:07 am    Post subject: Reply with quote

@fturco, I installed dev-ruby/bundler and did not fix the problem.
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3435
Location: Gainesville, Florida

PostPosted: Mon Dec 26, 2016 8:28 pm    Post subject: Reply with quote

I too installed dev-ruby/bundler, but no luck either.

What ruby targets should be set in an ~amd64 current install? My emerge --info only says nothing but RUBY_TARGETS="ruby21" is active.
I have nothing set for ruby in make.conf. Do I need to add ruby23 and run emerge -uDN @world, and could this be related to the rdoc problem?
equery l reports:
Code:
wrc@gentoo-audio ~ $ equery l ruby
 * Searching for ruby ...
[IP-] [  ] dev-lang/ruby-2.1.10:2.1
[IP-] [  ] dev-lang/ruby-2.3.3:2.3

and:
Code:
wrc@gentoo-audio ~ $ qlist -I dev-ruby
dev-ruby/bundler
dev-ruby/did_you_mean
dev-ruby/json
dev-ruby/json
dev-ruby/kpeg
dev-ruby/minitest
dev-ruby/net-telnet
dev-ruby/power_assert
dev-ruby/racc
dev-ruby/rake
dev-ruby/rdoc
dev-ruby/rubygems
dev-ruby/test-unit

_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.36-r7, gcc-13.2.1_p20230304
kernel-6.8.4 USE=experimental python3_11
Back to top
View user's profile Send private message
yzg
Guru
Guru


Joined: 18 Jun 2005
Posts: 493

PostPosted: Tue Dec 27, 2016 6:16 am    Post subject: Reply with quote

Today dev-lang/ruby-2.4.0 fails to emerge.

Code:

>>> Downloading 'https://dev.gentoo.org/~graaff/ruby-team/ruby-patches-2.4.0.tar.bz2'
--2016-12-27 17:08:55--  https://dev.gentoo.org/~graaff/ruby-team/ruby-patches-2.4.0.tar.bz2
Resolving dev.gentoo.org... 140.211.166.183
Connecting to dev.gentoo.org|140.211.166.183|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-12-27 17:08:56 ERROR 404: Not Found.


I do not understand why it is trying to download a file from a developer home directory "https://dev.gentoo.org/~graaff" !
This is not good for security or configuration control.

@wrc1944, I have ruby22 selected.
Code:

# eselect ruby list
Available Ruby profiles:
  [1]   ruby21 (with Rubygems)
  [2]   ruby22 (with Rubygems) *
  [3]   ruby23 (with Rubygems)
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30909
Location: here

PostPosted: Tue Dec 27, 2016 6:25 am    Post subject: Reply with quote

yzg wrote:
I do not understand why it is trying to download a file from a developer home directory "https://dev.gentoo.org/~graaff" !
This is not good for security or configuration control.

The system try to download from developer home directory because the file is missing in http://distfiles.gentoo.org/distfiles/
Code:
>>> Downloading 'http://distfiles.gentoo.org/distfiles/ruby-patches-2.4.0.tar.bz2'
--2016-12-27 07:24:27--  http://distfiles.gentoo.org/distfiles/ruby-patches-2.4.0.tar.bz2
Resolving distfiles.gentoo.org... 156.56.247.195, 64.50.233.100, 64.50.236.52, ...
Connecting to distfiles.gentoo.org|156.56.247.195|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-12-27 07:24:27 ERROR 404: Not Found.

>>> Downloading 'https://dev.gentoo.org/~graaff/ruby-team/ruby-patches-2.4.0.tar.bz2'
--2016-12-27 07:24:27--  https://dev.gentoo.org/~graaff/ruby-team/ruby-patches-2.4.0.tar.bz2
Resolving dev.gentoo.org... 140.211.166.183, 2001:470:ea4a:1:5054:ff:fec7:86e4
Connecting to dev.gentoo.org|140.211.166.183|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-12-27 07:24:28 ERROR 404: Not Found.


EDIT: It's a bug
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
yzg
Guru
Guru


Joined: 18 Jun 2005
Posts: 493

PostPosted: Tue Dec 27, 2016 6:40 am    Post subject: Reply with quote

I did grep "http://dev.gentoo.org/~" on the portage directory.

There is large number of ebuilds with home directory downloads. Should we be worried?

Code:

# grep -R --exclude-dir=/usr/portage/distfiles/  "http://dev.gentoo.org/~" /usr/portage/*
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30909
Location: here

PostPosted: Tue Dec 27, 2016 7:07 am    Post subject: Reply with quote

yzg wrote:
There is large number of ebuilds with home directory downloads. Should we be worried?

Absolutly not. When a devoloper write a new ebuild the only location how download code is upstream, but there are some files (like a patch) that are not located upstream (i.e. backport patch for a previous version). In these cases only location for download is a developer home page.
When the ebuild is put in the portage tree the source code, and patches, is uploaded on gentoo distfiles, but upstream SRC_URI remain (I think for backup location in case distfiles is down)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
yzg
Guru
Guru


Joined: 18 Jun 2005
Posts: 493

PostPosted: Tue Dec 27, 2016 8:18 am    Post subject: Reply with quote

@fedeliallalinea

This was my understanding. Please try to do the grep yourself and check the results.

Should this check be part of the process of releasing an ebuild to the portage tree?

Regards
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3435
Location: Gainesville, Florida

PostPosted: Tue Dec 27, 2016 8:23 am    Post subject: Reply with quote

The maintainer said on bugzilla he forgot to put in the patches for ruby-2.4.0, so everything failed. All of the below emerged perfectly just now.
Code:
gentoo-audio wrc # emerge -pv ruby

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  NS    ] dev-lang/ruby-2.4.0:2.4::gentoo [2.1.10:2.1::gentoo, 2.3.3:2.3::gentoo] USE="berkdb gdbm rdoc ssl -debug -doc -examples -ipv6 -jemalloc -libressl -rubytests -socks5 -tk -xemacs" 2 KiB
[ebuild   R    ] dev-ruby/rubygems-2.6.8::gentoo  USE="-server {-test}" RUBY_TARGETS="ruby21 ruby23 ruby24%* (-ruby20) -ruby22" 0 KiB
[ebuild     U  ] virtual/rubygems-12::gentoo [11::gentoo] RUBY_TARGETS="ruby21 ruby23 ruby24%* (-rbx) (-ruby20) -ruby22" 0 KiB
[ebuild   R    ] dev-ruby/net-telnet-0.1.1-r1:1::gentoo  USE="-doc {-test}" RUBY_TARGETS="ruby21 ruby23 ruby24%* (-ruby20) -ruby22" 0 KiB
[ebuild   R    ] dev-ruby/minitest-5.10.1:5::gentoo  USE="-doc {-test}" RUBY_TARGETS="ruby21 ruby23 ruby24%* (-ruby20) -ruby22" 0 KiB
[ebuild   R    ] dev-ruby/power_assert-0.4.1::gentoo  USE="-doc {-test}" RUBY_TARGETS="ruby21 ruby23 ruby24%* (-ruby20) -ruby22" 0 KiB
[ebuild  N     ] dev-ruby/xmlrpc-0.2.1::gentoo  USE="-doc {-test}" RUBY_TARGETS="ruby24" 0 KiB
[ebuild   R    ] dev-ruby/test-unit-3.2.3:2::gentoo  USE="-doc {-test}" RUBY_TARGETS="ruby21 ruby23 ruby24%* (-ruby20) -ruby22" 0 KiB
[ebuild  NS    ] dev-ruby/did_you_mean-1.1.0:2.4::gentoo [1.0.2:1::gentoo] USE="{-test}" RUBY_TARGETS="ruby24" 0 KiB
[ebuild   R    ] dev-ruby/rake-12.0.0::gentoo  USE="-doc {-test}" RUBY_TARGETS="ruby21 ruby23 ruby24%* (-ruby20) -ruby22" 0 KiB
[ebuild   R    ] dev-ruby/json-2.0.2:2::gentoo  USE="-doc {-test}" RUBY_TARGETS="ruby21 ruby23 ruby24%* (-ruby20) -ruby22" 0 KiB
[ebuild   R    ] dev-ruby/kpeg-1.1.0:1::gentoo  USE="-doc {-test}" RUBY_TARGETS="ruby21 ruby23 ruby24%* -ruby22" 0 KiB
[ebuild   R    ] dev-ruby/racc-1.4.14::gentoo  USE="-doc {-test}" RUBY_TARGETS="ruby21 ruby23 ruby24%* (-ruby20) -ruby22" 0 KiB
[ebuild     U  ] dev-ruby/rdoc-5.0.0-r1::gentoo [4.3.0::gentoo] USE="-doc {-test}" RUBY_TARGETS="ruby21 ruby23 ruby24%* (-ruby20) -ruby22" 0 KiB

Total: 14 packages (2 upgrades, 1 new, 2 in new slots, 9 reinstalls), Size of downloads: 2 KiB

Here's the patches that were now available, and made it all just work.
Code:

>>> Emerging (1 of 14) dev-lang/ruby-2.4.0::gentoo
 * Fetching files in the background.
 * To view fetch progress, run in another terminal:
 * tail -f /var/log/emerge-fetch.log
 * ruby-2.4.0.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                          [ ok ]
 * ruby-patches-2.4.0.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                 [ ok ]
>>> Unpacking source...
>>> Unpacking ruby-2.4.0.tar.xz to /var/tmp/portage/dev-lang/ruby-2.4.0/work
>>> Unpacking ruby-patches-2.4.0.tar.bz2 to /var/tmp/portage/dev-lang/ruby-2.4.0/work
>>> Source unpacked in /var/tmp/portage/dev-lang/ruby-2.4.0/work
>>> Preparing source in /var/tmp/portage/dev-lang/ruby-2.4.0/work/ruby-2.4.0 ...
 * Applying various patches (bugfixes/updates) ...
 *   005_no-undefined-ext.patch ...                                                                                                                                [ ok ]
 *   009_no-gems.patch ...                                                                                                                                         [ ok ]
 * Done with patching
 * Unbundling gems...
 * Running eautoreconf in '/var/tmp/portage/dev-lang/ruby-2.4.0/work/ruby-2.4.0' ...
 * Running aclocal ...                                                                                                                                             [ ok ]
 * This package has a configure.in file which has long been deprecated.  Please
 * update it to use configure.ac instead as newer versions of autotools will die
 * when it finds this file.  See https://bugs.gentoo.org/426262 for details.
 * Running autoconf --force ...                                                                                                                                    [ ok ]
 * Running elibtoolize in: ruby-2.4.0/
 * Running elibtoolize in: ruby-2.4.0/ext/fiddle/libffi-3.2.1/
 *   Applying portage/1.2.0 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.4.2 patch ...
 *   Applying target-nm/2.4.2 patch ...
>>> Source prepared.

_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.36-r7, gcc-13.2.1_p20230304
kernel-6.8.4 USE=experimental python3_11
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum