Re: [gentoo-user] reflexive dependencies?

2021-02-04 Thread Matt Connell (Gmail)
On Thu, 2021-02-04 at 14:24 -0600, Matt Connell (Gmail) wrote:
> Once I selected 2.6 (with Rubygems)

To clarify: this should read "ruby26 (with Rubygems)




[gentoo-user] RUBY?!?!?!?

2023-04-03 Thread Alan Grimes
Gah, the water block on my threadripper is clogged again. =\  Just 
ordered a fresh one, will try to clean the current one and keep it as a 
spare.



I had been coasting for about 6 months but a power dip reset the machine 
so I'm updating.


I had a nightmare of a time getting things to the point where I was 
getting any updating done at all, it fought me on every step. (was on 
kernel 5.9), I can't allow the linux_headers to get too far from the 
actual kernel so I had to upgrade to 6.2 although I have no idea what is 
supposed to be improved by 6.2


Right now the biggest roadblock is rubygems.

I have cleared the decks and wiped ALL dev-ruby packages off the system. 
Obviously, "Ruby" is set in my make.conf but this setting is not seen 
from the make script and the thing wastes my time...


IS THERE EVEN A WORKAROUND FOR THIS OR IS IT JUST BROKEN???

### make.conf
# portage complains if absent.
#RUBY_TARGETS="${RUBY_TARGETS} ruby25 ruby26 "
RUBY_TARGETS="${RUBY_TARGETS} ruby31 ruby32 "
RUBY="ruby31"

#### console
tortoise ~ # emerge --oneshot rubygems

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

Calculating dependencies... done!
Dependency resolution took 2.75 s.

[ebuild  N ] dev-ruby/rubygems-3.4.6::gentoo  USE="server -test" 
RUBY_TARGETS="ruby30 ruby31 ruby32 -ruby27" 0 KiB
[ebuild  N ] dev-ruby/builder-3.2.4-r1:3.2::gentoo  USE="-doc -test" 
RUBY_TARGETS="ruby30 ruby31 ruby32 -ruby27" 0 KiB


Total: 2 packages (2 new), Size of downloads: 0 KiB

>>> Verifying ebuild manifests
>>> Emerging (1 of 2) dev-ruby/rubygems-3.4.6::gentoo
>>> Failed to emerge dev-ruby/rubygems-3.4.6, Log file:
>>> '/var/tmp/portage/dev-ruby/rubygems-3.4.6/temp/build.log'
>>> Jobs: 0 of 2 complete, 1 failed Load avg: 1.67, 
1.64, 1.48

 * Package:    dev-ruby/rubygems-3.4.6:0
 * Repository: gentoo
 * Maintainer: r...@gentoo.org
 * USE:    abi_x86_64 amd64 elibc_glibc kernel_linux 
ruby_targets_ruby30 ruby_targets_ruby31 ruby_targets_ruby32 server 
userland_GNU
 * FEATURES:   network-sandbox nostrip sandbox splitdebug userpriv 
usersandbox

>>> Unpacking source...
>>> Unpacking rubygems-3.4.6.tar.gz to 
/var/tmp/portage/dev-ruby/rubygems-3.4.6/work/all

>>> Source unpacked in /var/tmp/portage/dev-ruby/rubygems-3.4.6/work
>>> Preparing source in /var/tmp/portage/dev-ruby/rubygems-3.4.6/work ...
 * Running prepare phase for all
 * Running prepare phase for all
 * Adjusting to prefix /
 *   operating_system.rb ...
 [ ok ]
 * Running source copy phase for ruby30
 * Running source copy phase for ruby31
 * Running source copy phase for ruby32
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-ruby/rubygems-3.4.6/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-ruby/rubygems-3.4.6/work ...
 * Running compile phase for ruby30
 * Running compile phase for ruby31
 * Running compile phase for ruby32
>>> Source compiled.
 * Skipping make test/check due to ebuild restriction.
>>> Test phase [disabled because of RESTRICT=test]: dev-ruby/rubygems-3.4.6

>>> Install dev-ruby/rubygems-3.4.6 into 
/var/tmp/portage/dev-ruby/rubygems-3.4.6/image

 * Running install phase for ruby30
 * ERROR: dev-ruby/rubygems-3.4.6::gentoo failed (install phase):
 *   $RUBY is not set
 *
 * Call stack:
 * ebuild.sh, line  136:  Called src_install
 *   environment, line 1992:  Called ruby-ng_src_install
 *   environment, line 1721:  Called _ruby_each_implementation 
'each_ruby_install'
 *   environment, line  429:  Called _ruby_invoke_environment 'ruby30' 
'each_ruby_install'

 *   environment, line  566:  Called each_ruby_install
 *   environment, line  687:  Called doruby '-r' 'rubygems' 'rubygems.rb'
 *   environment, line  672:  Called die
 * The specific snippet of code:
 *   [[ -z ${RUBY} ]] && die "\$RUBY is not set";
 *
 * If you need support, post the output of `emerge --info 
'=dev-ruby/rubygems-3.4.6::gentoo'`,
 * the complete build log and the output of `emerge -pqv 
'=dev-ruby/rubygems-3.4.6::gentoo'`.
 * The complete build log is located at 
'/var/tmp/portage/dev-ruby/rubygems-3.4.6/temp/build.log'.
 * The ebuild environment file is located at 
'/var/tmp/portage/dev-ruby/rubygems-3.4.6/temp/environment'.
 * Working directory: 
'/var/tmp/portage/dev-ruby/rubygems-3.4.6/work/ruby30/rubygems-3.4.6/lib'

 * S: '/var/tmp/portage/dev-ruby/rubygems-3.4.6/work/ruby30/rubygems-3.4.6'

 * Messages for package dev-ruby/rubygems-3.4.6:

 * ERROR: dev-ruby/rubygems-3.4.6::gentoo failed (install phase):
 *   $RUBY is not set
 *
 * Call stack:
 * ebuild.sh, line  136:  Called src_install
 *   environment, line 1992:  Called ruby-ng_src_install
 *   environment, line 1721:  Called _ruby_each_implementation 
'each_ruby_insta

Re: [gentoo-user] RUBY?!?!?!?

2023-04-03 Thread Michael
On Monday, 3 April 2023 18:16:30 BST Alan Grimes wrote:
> Gah, the water block on my threadripper is clogged again. =\  Just
> ordered a fresh one, will try to clean the current one and keep it as a
> spare.
> 
> 
> I had been coasting for about 6 months but a power dip reset the machine
> so I'm updating.
> 
> I had a nightmare of a time getting things to the point where I was
> getting any updating done at all, it fought me on every step. (was on
> kernel 5.9), I can't allow the linux_headers to get too far from the
> actual kernel so I had to upgrade to 6.2 although I have no idea what is
> supposed to be improved by 6.2
> 
> Right now the biggest roadblock is rubygems.
> 
> I have cleared the decks and wiped ALL dev-ruby packages off the system.
> Obviously, "Ruby" is set in my make.conf but this setting is not seen
> from the make script and the thing wastes my time...
> 
> IS THERE EVEN A WORKAROUND FOR THIS OR IS IT JUST BROKEN???

Have you looked at this page:

https://wiki.gentoo.org/wiki/Ruby


> ### make.conf
> # portage complains if absent.
> #RUBY_TARGETS="${RUBY_TARGETS} ruby25 ruby26 "
> RUBY_TARGETS="${RUBY_TARGETS} ruby31 ruby32 "
> RUBY="ruby31"
> 
>  console
> tortoise ~ # emerge --oneshot rubygems
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> Dependency resolution took 2.75 s.
> 
> [ebuild  N ] dev-ruby/rubygems-3.4.6::gentoo  USE="server -test"
> RUBY_TARGETS="ruby30 ruby31 ruby32 -ruby27" 0 KiB
> [ebuild  N ] dev-ruby/builder-3.2.4-r1:3.2::gentoo  USE="-doc -test"
> RUBY_TARGETS="ruby30 ruby31 ruby32 -ruby27" 0 KiB
> 
> Total: 2 packages (2 new), Size of downloads: 0 KiB
> 
>  >>> Verifying ebuild manifests
>  >>> Emerging (1 of 2) dev-ruby/rubygems-3.4.6::gentoo
>  >>> Failed to emerge dev-ruby/rubygems-3.4.6, Log file:
>  >>> '/var/tmp/portage/dev-ruby/rubygems-3.4.6/temp/build.log'
>  >>> Jobs: 0 of 2 complete, 1 failed Load avg: 1.67,
> 
> 1.64, 1.48
>   * Package:dev-ruby/rubygems-3.4.6:0
>   * Repository: gentoo
>   * Maintainer: r...@gentoo.org
>   * USE:abi_x86_64 amd64 elibc_glibc kernel_linux
> ruby_targets_ruby30 ruby_targets_ruby31 ruby_targets_ruby32 server
> userland_GNU
>   * FEATURES:   network-sandbox nostrip sandbox splitdebug userpriv
> usersandbox
> 
>  >>> Unpacking source...
>  >>> Unpacking rubygems-3.4.6.tar.gz to
> 
> /var/tmp/portage/dev-ruby/rubygems-3.4.6/work/all
> 
>  >>> Source unpacked in /var/tmp/portage/dev-ruby/rubygems-3.4.6/work
>  >>> Preparing source in /var/tmp/portage/dev-ruby/rubygems-3.4.6/work ...
> 
>   * Running prepare phase for all
>   * Running prepare phase for all
>   * Adjusting to prefix /
>   *   operating_system.rb ...
>   [ ok ]
>   * Running source copy phase for ruby30
>   * Running source copy phase for ruby31
>   * Running source copy phase for ruby32
> 
>  >>> Source prepared.
>  >>> Configuring source in /var/tmp/portage/dev-ruby/rubygems-3.4.6/work ...
>  >>> Source configured.
>  >>> Compiling source in /var/tmp/portage/dev-ruby/rubygems-3.4.6/work ...
> 
>   * Running compile phase for ruby30
>   * Running compile phase for ruby31
>   * Running compile phase for ruby32
> 
>  >>> Source compiled.
> 
>   * Skipping make test/check due to ebuild restriction.
> 
>  >>> Test phase [disabled because of RESTRICT=test]: dev-ruby/rubygems-3.4.6
>  >>> 
>  >>> Install dev-ruby/rubygems-3.4.6 into
> 
> /var/tmp/portage/dev-ruby/rubygems-3.4.6/image
>   * Running install phase for ruby30
>   * ERROR: dev-ruby/rubygems-3.4.6::gentoo failed (install phase):
>   *   $RUBY is not set
>   *
>   * Call stack:
>   * ebuild.sh, line  136:  Called src_install
>   *   environment, line 1992:  Called ruby-ng_src_install
>   *   environment, line 1721:  Called _ruby_each_implementation
> 'each_ruby_install'
>   *   environment, line  429:  Called _ruby_invoke_environment 'ruby30'
> 'each_ruby_install'
>   *   environment, line  566:  Called each_ruby_install
>   *   environment, line  687:  Called doruby '-r' 'rubygems' 'rubygems.rb'
>   *   environment, line  672:  Called die
>   * The specific snippet of code:
>   *   [[ -z ${RUBY} ]] && die "\$RUBY is not set";
>   *
>   * If you need support, post the output of `emerge --info
> '=dev-ruby/rubygems-3.4.6::gentoo'`,
>   * the complete build log and the output of `emerge -pqv
> '=dev-ruby/ru

[gentoo-user] Re: rubygems-1.9.1 error

2014-03-25 Thread Hans de Graaff
On Mon, 24 Mar 2014 20:23:55 +, Mick wrote:

 I have been chasing my tail with ruby tonight.
 
 The masking of ruby18 meant that I had to unmerge a lot of ruby packages
 and then portage chose what to merge afresh. 

unmerge or depclean? unmerge is less safe and may leave your system in a 
bad state. emerge -N is a better way to handle this situation.

 
 /usr/lib64/ruby/1.9.1/rubygems.rb:30:in `require': cannot load such file
 -- rubygems/defaults (LoadError)

This file is part of rubygems, which in turn is a dependency of ruby 
itself. emerge rubygems manually first.

Kind regards,

Hans




[gentoo-user] advice on transitioning from package.use file to package.use directory

2015-08-31 Thread Alexander Kapshuk
Having read the email exchange on the possibility of using
'package.use' as a directory, I thought I would give that a try.

Here is what I have attempted so far.

cd /etc/portage
mv package.use package.use.COPY
mkdir package.use
cd package.use
awk -F'[/\t ]+' '{printf("echo \047%s\047 >> ", $0); sub("-[0-9]+.*",
"", $2); print $2}' ../package.use.COPY

NOTE; the awk output just generates the command lines for the shell to
run. If the output is acceptable, it should be piped through to the
shell.

Here is the contents of the original 'package.use' file:

cat package.use
=dev-lang/python-2.7.9-r1 sqlite
>=dev-ruby/json-1.8.2-r1 ruby_targets_ruby21
>=dev-ruby/racc-1.4.11 ruby_targets_ruby21
>=dev-ruby/rake-0.9.6-r1 ruby_targets_ruby21
>=dev-ruby/rdoc-4.0.1-r2 ruby_targets_ruby21
>=dev-ruby/rubygems-2.2.5-r1 ruby_targets_ruby21
>=media-libs/harfbuzz-0.9.38 icu
>=media-video/ffmpeg-2.6.3 theora
>=sys-libs/zlib-1.2.8-r1 minizip
>=virtual/rubygems-10 ruby_targets_ruby21
gnome-base/gvfs -http gphoto2 mtp
media-video/vlc a52 aac bidi cdda cdio dts dvd flac freetype gnutls
httpd libass live lua mad matroska mpeg ogg oggvorbis qt4 stream svga
theora vcd vlm wxwindows xv
net-print/hplip scanner qt4
sys-apps/busybox -pam
sys-devel/gcc objc
sys-process/cronie anacron
x11-base/xorg-server udev
xfce-extra/xfce4-power-manager -udisks
xfce-extra/xfce4-sensors-plugin hddtemp lm_sensors

NOTE: There are two entries for 'rubygems' there.

Here is the awk script output:

echo '=dev-lang/python-2.7.9-r1 sqlite' >> python
echo '>=dev-ruby/json-1.8.2-r1 ruby_targets_ruby21' >> json
echo '>=dev-ruby/racc-1.4.11 ruby_targets_ruby21' >> racc
echo '>=dev-ruby/rake-0.9.6-r1 ruby_targets_ruby21' >> rake
echo '>=dev-ruby/rdoc-4.0.1-r2 ruby_targets_ruby21' >> rdoc
echo '>=dev-ruby/rubygems-2.2.5-r1 ruby_targets_ruby21' >> rubygems
echo '>=media-libs/harfbuzz-0.9.38 icu' >> harfbuzz
echo '>=media-video/ffmpeg-2.6.3 theora' >> ffmpeg
echo '>=sys-libs/zlib-1.2.8-r1 minizip' >> zlib
echo '>=virtual/rubygems-10 ruby_targets_ruby21' >> rubygems
echo 'gnome-base/gvfs -http gphoto2 mtp' >> gvfs
echo 'media-video/vlc a52 aac bidi cdda cdio dts dvd flac freetype
gnutls httpd libass live lua mad matroska mpeg ogg oggvorbis qt4
stream svga theora vcd vlm wxwindows xv' >> vlc
echo 'net-print/hplip scanner qt4' >> hplip
echo 'sys-apps/busybox -pam' >> busybox
echo 'sys-devel/gcc objc' >> gcc
echo 'sys-process/cronie anacron' >> cronie
echo 'x11-base/xorg-server udev' >> xorg-server
echo 'xfce-extra/xfce4-power-manager -udisks' >> xfce4-power-manager
echo 'xfce-extra/xfce4-sensors-plugin hddtemp lm_sensors' >>
xfce4-sensors-plugin

The two 'rubygems' entries I had in the original 'package.use' file
went into a single 'rubygems' file:

cat rubygems
>=dev-ruby/rubygems-2.2.5-r1 ruby_targets_ruby21
>=virtual/rubygems-10 ruby_targets_ruby21

Is this format acceptable? Or should I have used two separate files,
one for 'dev-lang/rubygems', and another for 'virtual/rubygems'?

I have run 'emerge -auUND @world' since the transition, which voiced
no complaints so far.

The list's input would be appreciated.



[gentoo-user] Ruby is borked on my system

2014-06-26 Thread Ajai Khattri


Ive ran into a brick wall trying to update one of my servers. I have been 
using Gentoo for a long time but I haven't been following it as closely 
for the past year so maybe there have been changes Im not aware of. Ive 
already Googled and checked archives without really solving my problem.


When I try to update world I get this:

# emerge -uDatvk world

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


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

Calculating dependencies... done!

!!! Multiple package instances within a single package slot have been 
pulled

!!! into the dependency graph, resulting in a slot conflict:

dev-ruby/rubygems:0

  (dev-ruby/rubygems-2.0.14::gentoo, ebuild scheduled for merge) pulled in 
by
=dev-ruby/rubygems-2.0.2[ruby_targets_ruby20] required by 
(dev-lang/ruby-2.0.0_p353::gentoo, installed)
dev-ruby/rubygems[ruby_targets_ruby20] required by 
(virtual/rubygems-6::gentoo, ebuild scheduled for merge)


  (dev-ruby/rubygems-2.0.14::gentoo, installed) pulled in by
(no parents that aren't satisfied by other packages in this slot)


!!! Enabling --newuse and --update might solve this conflict.
!!! If not, it might help emerge to give a more specific suggestion.


!!! All ebuilds that could satisfy virtual/rubygems[ruby_targets_ruby18] 
have been masked.
!!! One of the following masked packages is required to complete your 
request:

- virtual/rubygems-7::gentoo (masked by: ~x86 keyword)
- virtual/rubygems-5::gentoo (masked by: missing keyword)

(dependency required by dev-ruby/rdoc-4.0.1-r1[-test] [installed])
(dependency required by dev-lang/ruby-2.0.0_p353[rdoc] [installed])
(dependency required by virtual/rubygems-6 [ebuild])
(dependency required by dev-ruby/json-1.8.0 [installed])
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.


From reading other threads I have set RUBY_TARGETS in make.conf to be 

ruby19 ruby20 and Ive used eselect to set the default config to ruby19.

I have not been able to fix this problem so far.


Any ideas how to proceed?

--



[gentoo-user] Strange problem with Ruby (vagrant)

2019-11-20 Thread Alexey Eschenko
Hi.

I need to use Vagrant but it doesn't work with strange error message:

> $ vagrant
> Traceback (most recent call last):
>     2: from
> /usr/lib64/ruby/gems/2.6.0/gems/vagrant-2.2.6/bin/vagrant:88:in `'
>     1: from
> /usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in
> `require'
> /usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in
> `require': cannot load such file -- vagrant (LoadError)
>     8: from
> /usr/lib64/ruby/gems/2.6.0/gems/vagrant-2.2.6/bin/vagrant:88:in `'
>     7: from
> /usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:34:in
> `require'
>     6: from
> /usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:123:in
> `rescue in require'
>     5: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems.rb:218:in
> `try_activate'
>     4: from
> /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1417:in
> `activate'
>     3: from
> /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1435:in
> `activate_dependencies'
>     2: from
> /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1435:in `each'
>     1: from
> /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1446:in
> `block in activate_dependencies'
> /usr/lib64/ruby/site_ruby/2.6.0/rubygems/dependency.rb:313:in
> `to_specs': Could not find 'rubyzip' (~> 1.2.2) - did find:
> [rubyzip-2.0.0] (Gem::MissingSpecVersionError)
> Checked in
> 'GEM_PATH=/home/skobkin/.gem/ruby/2.6.0:/usr/lib64/ruby/gems/2.6.0:/usr/local/lib64/ruby/gems/2.6.0',
> execute `gem env` for more information
>     9: from
> /usr/lib64/ruby/gems/2.6.0/gems/vagrant-2.2.6/bin/vagrant:88:in `'
>     8: from
> /usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:34:in
> `require'
>     7: from
> /usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:123:in
> `rescue in require'
>     6: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems.rb:217:in
> `try_activate'
>     5: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems.rb:224:in
> `rescue in try_activate'
>     4: from
> /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1417:in
> `activate'
>     3: from
> /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1435:in
> `activate_dependencies'
>     2: from
> /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1435:in `each'
>     1: from
> /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1446:in
> `block in activate_dependencies'
> /usr/lib64/ruby/site_ruby/2.6.0/rubygems/dependency.rb:313:in
> `to_specs': Could not find 'rubyzip' (~> 1.2.2) - did find:
> [rubyzip-2.0.0] (Gem::MissingSpecVersionError)
> Checked in
> 'GEM_PATH=/home/skobkin/.gem/ruby/2.6.0:/usr/lib64/ruby/gems/2.6.0:/usr/local/lib64/ruby/gems/2.6.0',
> execute `gem env` for more information

I'm calling it's strange because I have rubyzip package in my system (as
said in error message).

> $ eix rubyzip
> [I] dev-ruby/rubyzip
>  Available versions:  
>  (1)    1.2.2^t (~)1.2.3^t (~)1.2.4^t (~)1.3.0^t
>  (2)    (~)2.0.0^t
>    {test RUBY_TARGETS="ruby24 ruby25 ruby26"}
>  Installed versions:  2.0.0(2)^t(01:44:09 PM 11/19/2019)(-test
> RUBY_TARGETS="ruby26 -ruby24 -ruby25")
>  Homepage:    https://github.com/rubyzip/rubyzip
>  Description:     A ruby library for reading and writing zip files

I've decided that it's typical dependency problem and installed
rubyzip-1.2.2. Then I've got new error:

> $ vagrant
> Traceback (most recent call last):
> 
> /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:2298:in
> `raise_if_conflicts': Unable to activate vagrant_cloud-2.0.3, because
> rest-client-2.1.0 conflicts with rest-client (~> 2.0.2)
> (Gem::ConflictError)
> 

Then I've checked which packages require rest-client and got these:

> $ equery d rest-client
>  * These packages depend on rest-client:
> app-emulation/vagrant-2.2.6 (ruby_targets_ruby24 ?
> dev-ruby/rest-client:2[ruby_targets_ruby24])
>     (ruby_targets_ruby25 ?
> dev-ruby/rest-client:2[ruby_targets_ruby25])
>     (ruby_targets_ruby26 ?
> dev-ruby/rest-client:2[ruby_targets_ruby26])
> dev-ruby/vagrant_cloud-2.0.3 (ruby_targets_ruby24 ?
> >=dev-ruby/rest-client-2.0.2[ruby_targets_ruby24])
>  (ruby_targets_ruby25 ?
> >=dev-ruby/rest-client-2.0.2[ruby_targets_ruby25])
>  (ruby_targets_ruby26 ?
> >=dev-ruby/rest-client-2.0.2[ruby_targets_ruby26])

So I've removed rest-client-2.1.0 and installed 2.0.2. And then:

> $
> vagrant

Re: [gentoo-user] Strange problem with Ruby (vagrant)

2019-11-20 Thread Paul Klos
Op woensdag 20 november 2019 09:32:17 CET schreef Alexey Eschenko:
> Hi.
> 
> I need to use Vagrant but it doesn't work with strange error message:
> > $ vagrant
> > Traceback (most recent call last):
> > 2: from
> > /usr/lib64/ruby/gems/2.6.0/gems/vagrant-2.2.6/bin/vagrant:88:in `'
> > 1: from
> > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in
> > `require'
> > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in
> > `require': cannot load such file -- vagrant (LoadError)
> > 8: from
> > /usr/lib64/ruby/gems/2.6.0/gems/vagrant-2.2.6/bin/vagrant:88:in `'
> > 7: from
> > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:34:in
> > `require'
> > 6: from
> > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:123:in
> > `rescue in require'
> > 5: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems.rb:218:in
> > `try_activate'
> > 4: from
> > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1417:in
> > `activate'
> > 3: from
> > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1435:in
> > `activate_dependencies'
> > 2: from
> > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1435:in `each'
> > 1: from
> > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1446:in
> > `block in activate_dependencies'
> > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/dependency.rb:313:in
> > `to_specs': Could not find 'rubyzip' (~> 1.2.2) - did find:
> > [rubyzip-2.0.0] (Gem::MissingSpecVersionError)
> > Checked in
> > 'GEM_PATH=/home/skobkin/.gem/ruby/2.6.0:/usr/lib64/ruby/gems/2.6.0:/usr/lo
> > cal/lib64/ruby/gems/2.6.0', execute `gem env` for more information
> > 9: from
> > /usr/lib64/ruby/gems/2.6.0/gems/vagrant-2.2.6/bin/vagrant:88:in `'
> > 8: from
> > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:34:in
> > `require'
> > 7: from
> > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:123:in
> > `rescue in require'
> > 6: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems.rb:217:in
> > `try_activate'
> > 5: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems.rb:224:in
> > `rescue in try_activate'
> > 4: from
> > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1417:in
> > `activate'
> > 3: from
> > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1435:in
> > `activate_dependencies'
> > 2: from
> > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1435:in `each'
> > 1: from
> > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1446:in
> > `block in activate_dependencies'
> > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/dependency.rb:313:in
> > `to_specs': Could not find 'rubyzip' (~> 1.2.2) - did find:
> > [rubyzip-2.0.0] (Gem::MissingSpecVersionError)
> > Checked in
> > 'GEM_PATH=/home/skobkin/.gem/ruby/2.6.0:/usr/lib64/ruby/gems/2.6.0:/usr/lo
> > cal/lib64/ruby/gems/2.6.0', execute `gem env` for more information
> 
> I'm calling it's strange because I have rubyzip package in my system (as
> said in error message).
> 
> > $ eix rubyzip
> > [I] dev-ruby/rubyzip
> >  Available versions:  
> >  (1)1.2.2^t (~)1.2.3^t (~)1.2.4^t (~)1.3.0^t
> >  (2)(~)2.0.0^t
> >{test RUBY_TARGETS="ruby24 ruby25 ruby26"}
> >  Installed versions:  2.0.0(2)^t(01:44:09 PM 11/19/2019)(-test
> > RUBY_TARGETS="ruby26 -ruby24 -ruby25")
> >  Homepage:https://github.com/rubyzip/rubyzip
> >  Description: A ruby library for reading and writing zip files
> 
> I've decided that it's typical dependency problem and installed
> 
> rubyzip-1.2.2. Then I've got new error:
> > $ vagrant
> > Traceback (most recent call last):
> > 
> > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:2298:in
> > `raise_if_conflicts': Unable to activate vagrant_cloud-2.0.3, because
> > rest-client-2.1.0 conflicts with rest-client (~> 2.0.2)
> > (Gem::ConflictError)
> > 
> 
> Then I've checked which packages require rest-client and got these:
> > $ equery d rest-client
> >  * These packages depend on rest-client:
> > app-emulation/vagrant-2.2.6 (ruby_targets_ruby24 ?
> > dev-ruby/rest-client:2[ruby_targets_ruby24])
> > (ruby_targets_ruby25 ?
&g

Re: [gentoo-user] rubygems-1.9.1 error

2014-03-24 Thread Mick
On Monday 24 Mar 2014 21:28:56 Tom Wijsman wrote:
 On Mon, 24 Mar 2014 20:23:55 +
 
 Mick michaelkintz...@gmail.com wrote:
  /usr/lib64/ruby/1.9.1/rubygems.rb:30:in `require': cannot load such
  file -- rubygems/defaults (LoadError)
  
  The missing file is there, I think:
  
  # ls -la /usr/lib64/ruby/1.9.1/rubygems.rb
  -rw-r--r-- 1 root root 34951 Apr 20
  2012 /usr/lib64/ruby/1.9.1/rubygems.rb
  
  What now?
 
 It can't load what is on line 30 of that file; there'll be a require
 instruction, and that require instruction would bring in another file.

Aha!  That's what it meant.  :-)

The line in question is:

  require 'rubygems/defaults'

Where should I look for that?

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: Ruby is borked on my system

2014-06-27 Thread Ajai Khattri

On Fri, 27 Jun 2014, Hans de Graaff wrote:


On Thu, 26 Jun 2014 23:36:00 -0400, Ajai Khattri wrote:


!!! All ebuilds that could satisfy
virtual/rubygems[ruby_targets_ruby18]
have been masked.


You still have packages on your system that have been installed with the
ruby18 RUBY_TARGET. It's not immediately clear which package that is from
the output, but I suspect dev-ruby/rubygems? Re-emerging the packages
still installed for ruby18 should fix this.


I rebuiltd rubygems and the virtual but still no go.
Then I rebuilt rdoc (which pulled in a bunch of other stuff) but now 
emerge world says I have nothing left to build.


Hopefully I can revdep-rebuild and all should be OK.


Thanks,
--
A



Re: [gentoo-user] Re: rubygems-1.9.1 error

2014-03-25 Thread Mick
On Tuesday 25 Mar 2014 06:31:51 Hans de Graaff wrote:
 On Mon, 24 Mar 2014 20:23:55 +, Mick wrote:
  I have been chasing my tail with ruby tonight.
  
  The masking of ruby18 meant that I had to unmerge a lot of ruby packages
  and then portage chose what to merge afresh.
 
 unmerge or depclean? unmerge is less safe and may leave your system in a
 bad state. emerge -N is a better way to handle this situation.
 
  /usr/lib64/ruby/1.9.1/rubygems.rb:30:in `require': cannot load such file
  -- rubygems/defaults (LoadError)
 
 This file is part of rubygems, which in turn is a dependency of ruby
 itself. emerge rubygems manually first.

Thanks Hans, I did just that and the problem was solved.  Also thank you for 
your help on IRC yesterday.  :-)

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


[gentoo-user] emerge ruby fails

2008-02-14 Thread Thufir
I haven't had much of a chance to google this, but I did update glibc as 
that seems like it's related to some ruby problems.

Ruby gems fails to install with the following error (this is the topmost 
build error?):


 * Messages for package dev-ruby/rubygems-0.9.4-r2:

 * 
 * ERROR: dev-ruby/rubygems-0.9.4-r2 failed.
 * Call stack:
 *  ebuild.sh, line 1701:  Called dyn_compile


thanks,

Thufir

-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] emerge ruby fails

2008-02-14 Thread Lowe Schmidt

Thufir wrote:
I haven't had much of a chance to google this, but I did update glibc as 
that seems like it's related to some ruby problems.


Ruby gems fails to install with the following error (this is the topmost 
build error?):



 * Messages for package dev-ruby/rubygems-0.9.4-r2:

 * 
 * ERROR: dev-ruby/rubygems-0.9.4-r2 failed.

 * Call stack:
 *  ebuild.sh, line 1701:  Called dyn_compile


thanks,

Thufir

  


It's not the topmost build error, above that.
--
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: Ruby is borked on my system

2014-06-27 Thread Hans de Graaff
On Thu, 26 Jun 2014 23:36:00 -0400, Ajai Khattri wrote:

 !!! All ebuilds that could satisfy
 virtual/rubygems[ruby_targets_ruby18]
 have been masked.

You still have packages on your system that have been installed with the 
ruby18 RUBY_TARGET. It's not immediately clear which package that is from 
the output, but I suspect dev-ruby/rubygems? Re-emerging the packages 
still installed for ruby18 should fix this.

Hans




Re: [gentoo-user] Anyone using www-apps/jekyll?

2021-10-27 Thread Jack

On 2021.10.27 09:59, Peter Humphrey wrote:

On Wednesday, 27 October 2021 14:44:09 BST Pascal Schorde wrote:

> did you have dev-ruby/rubygems installed? See
> https://jekyllrb.com/docs/#prerequisites

Yes, but at version 3.0:

$ eix dev-ruby/rubygems
[I] dev-ruby/rubygems
 Available versions:  3.0.3^t 3.0.9^t 3.1.6^t (~)3.2.14^t{tbz2}  
[M]

(~)3.2.22^t{tbz2} {server test RUBY_TARGETS="ruby26 ruby27 ruby30"}
 Installed versions:  3.2.14^t{tbz2}(09:19:26 10/26/21)(-server  
-test

RUBY_TARGETS="ruby26 ruby30 -ruby27")

One possibility occurred to me: is having two ruby versions installed  
at once
the problem? I already had 3.0 installed, the current Gentoo version,  
but
jekyll needs 2.6. To test this idea, I'd have to downgrade the whole  
system to

2.6; I don't know whether that's even feasible now.
Ruby is slotted, so you can have 2.6 and 3.0 installed together.  You  
would then need to rebuild rubygems to target both of them.  There is  
also a virtual/rubygems.  I'm not really sure of it's function, but it  
seems to just specify a minimum version of rubygems per targetted  
version of ruby.




Re: [gentoo-user] rubygems-1.9.1 error

2014-03-25 Thread Mick
On Monday 24 Mar 2014 23:23:08 Tom Wijsman wrote:
 On Mon, 24 Mar 2014 22:44:23 +
 
 Mick michaelkintz...@gmail.com wrote:
  On Monday 24 Mar 2014 21:28:56 Tom Wijsman wrote:
   On Mon, 24 Mar 2014 20:23:55 +
   
   Mick michaelkintz...@gmail.com wrote:
/usr/lib64/ruby/1.9.1/rubygems.rb:30:in `require': cannot load
such file -- rubygems/defaults (LoadError)

The missing file is there, I think:

# ls -la /usr/lib64/ruby/1.9.1/rubygems.rb
-rw-r--r-- 1 root root 34951 Apr 20
2012 /usr/lib64/ruby/1.9.1/rubygems.rb

What now?
   
   It can't load what is on line 30 of that file; there'll be a require
   instruction, and that require instruction would bring in another
   file.
  
  Aha!  That's what it meant.  :-)
  
  The line in question is:
require 'rubygems/defaults'
  
  Where should I look for that?
 
 Not that I know Ruby programming; but I assume that either looks for
 a defaults file in a rubygems directory, or it looks for a defaults
 module inside a rubygems file.
 
 You might want to file a bug at https://bugs.gentoo.org for the
 Ruby maintainers to fix this dependency.

Problem solved.  I had to remerge rubygems.  When I used --depclean only 
rubygems1 was removed.  It seems it needed to have rebygems 4 and 6 rebuilt.  
I haven't had this problem on two other boxen, so I am hesitant to report a 
bug.  Probably I did something wrong.

Thank you Tom!  :-)

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] advice on transitioning from package.use file to package.use directory

2015-08-31 Thread Todd Goodman
* Alexander Kapshuk <alexander.kaps...@gmail.com> [150831 15:35]:
> Having read the email exchange on the possibility of using
> 'package.use' as a directory, I thought I would give that a try.
> 
> Here is what I have attempted so far.
> 
> cd /etc/portage
> mv package.use package.use.COPY
> mkdir package.use
> cd package.use
> awk -F'[/\t ]+' '{printf("echo \047%s\047 >> ", $0); sub("-[0-9]+.*",
> "", $2); print $2}' ../package.use.COPY
> 
> NOTE; the awk output just generates the command lines for the shell to
> run. If the output is acceptable, it should be piped through to the
> shell.
> 
> Here is the contents of the original 'package.use' file:
> 
> cat package.use
> =dev-lang/python-2.7.9-r1 sqlite
> >=dev-ruby/json-1.8.2-r1 ruby_targets_ruby21
> >=dev-ruby/racc-1.4.11 ruby_targets_ruby21
> >=dev-ruby/rake-0.9.6-r1 ruby_targets_ruby21
> >=dev-ruby/rdoc-4.0.1-r2 ruby_targets_ruby21
> >=dev-ruby/rubygems-2.2.5-r1 ruby_targets_ruby21
> >=media-libs/harfbuzz-0.9.38 icu
> >=media-video/ffmpeg-2.6.3 theora
> >=sys-libs/zlib-1.2.8-r1 minizip
> >=virtual/rubygems-10 ruby_targets_ruby21
> gnome-base/gvfs -http gphoto2 mtp
> media-video/vlc a52 aac bidi cdda cdio dts dvd flac freetype gnutls
> httpd libass live lua mad matroska mpeg ogg oggvorbis qt4 stream svga
> theora vcd vlm wxwindows xv
> net-print/hplip scanner qt4
> sys-apps/busybox -pam
> sys-devel/gcc objc
> sys-process/cronie anacron
> x11-base/xorg-server udev
> xfce-extra/xfce4-power-manager -udisks
> xfce-extra/xfce4-sensors-plugin hddtemp lm_sensors
> 
> NOTE: There are two entries for 'rubygems' there.
> 
> Here is the awk script output:
> 
> echo '=dev-lang/python-2.7.9-r1 sqlite' >> python
> echo '>=dev-ruby/json-1.8.2-r1 ruby_targets_ruby21' >> json
> echo '>=dev-ruby/racc-1.4.11 ruby_targets_ruby21' >> racc
> echo '>=dev-ruby/rake-0.9.6-r1 ruby_targets_ruby21' >> rake
> echo '>=dev-ruby/rdoc-4.0.1-r2 ruby_targets_ruby21' >> rdoc
> echo '>=dev-ruby/rubygems-2.2.5-r1 ruby_targets_ruby21' >> rubygems
> echo '>=media-libs/harfbuzz-0.9.38 icu' >> harfbuzz
> echo '>=media-video/ffmpeg-2.6.3 theora' >> ffmpeg
> echo '>=sys-libs/zlib-1.2.8-r1 minizip' >> zlib
> echo '>=virtual/rubygems-10 ruby_targets_ruby21' >> rubygems
> echo 'gnome-base/gvfs -http gphoto2 mtp' >> gvfs
> echo 'media-video/vlc a52 aac bidi cdda cdio dts dvd flac freetype
> gnutls httpd libass live lua mad matroska mpeg ogg oggvorbis qt4
> stream svga theora vcd vlm wxwindows xv' >> vlc
> echo 'net-print/hplip scanner qt4' >> hplip
> echo 'sys-apps/busybox -pam' >> busybox
> echo 'sys-devel/gcc objc' >> gcc
> echo 'sys-process/cronie anacron' >> cronie
> echo 'x11-base/xorg-server udev' >> xorg-server
> echo 'xfce-extra/xfce4-power-manager -udisks' >> xfce4-power-manager
> echo 'xfce-extra/xfce4-sensors-plugin hddtemp lm_sensors' >>
> xfce4-sensors-plugin
> 
> The two 'rubygems' entries I had in the original 'package.use' file
> went into a single 'rubygems' file:
> 
> cat rubygems
> >=dev-ruby/rubygems-2.2.5-r1 ruby_targets_ruby21
> >=virtual/rubygems-10 ruby_targets_ruby21
> 
> Is this format acceptable? Or should I have used two separate files,
> one for 'dev-lang/rubygems', and another for 'virtual/rubygems'?
> 
> I have run 'emerge -auUND @world' since the transition, which voiced
> no complaints so far.
> 
> The list's input would be appreciated.

Those should all be fine.  I tend to make a file per package but I think
you could have just moved your original package.use into the
/etc/portage/package.use directory and everything would be fine (aside
from you not gaining any benefit from separate files.)

Todd



Re: [gentoo-user] advice on transitioning from package.use file to package.use directory

2015-08-31 Thread Alexander Kapshuk
On Mon, Aug 31, 2015 at 11:00 PM, Todd Goodman <t...@bonedaddy.net> wrote:
> * Alexander Kapshuk <alexander.kaps...@gmail.com> [150831 15:35]:
>> Having read the email exchange on the possibility of using
>> 'package.use' as a directory, I thought I would give that a try.
>>
>> Here is what I have attempted so far.
>>
>> cd /etc/portage
>> mv package.use package.use.COPY
>> mkdir package.use
>> cd package.use
>> awk -F'[/\t ]+' '{printf("echo \047%s\047 >> ", $0); sub("-[0-9]+.*",
>> "", $2); print $2}' ../package.use.COPY
>>
>> NOTE; the awk output just generates the command lines for the shell to
>> run. If the output is acceptable, it should be piped through to the
>> shell.
>>
>> Here is the contents of the original 'package.use' file:
>>
>> cat package.use
>> =dev-lang/python-2.7.9-r1 sqlite
>> >=dev-ruby/json-1.8.2-r1 ruby_targets_ruby21
>> >=dev-ruby/racc-1.4.11 ruby_targets_ruby21
>> >=dev-ruby/rake-0.9.6-r1 ruby_targets_ruby21
>> >=dev-ruby/rdoc-4.0.1-r2 ruby_targets_ruby21
>> >=dev-ruby/rubygems-2.2.5-r1 ruby_targets_ruby21
>> >=media-libs/harfbuzz-0.9.38 icu
>> >=media-video/ffmpeg-2.6.3 theora
>> >=sys-libs/zlib-1.2.8-r1 minizip
>> >=virtual/rubygems-10 ruby_targets_ruby21
>> gnome-base/gvfs -http gphoto2 mtp
>> media-video/vlc a52 aac bidi cdda cdio dts dvd flac freetype gnutls
>> httpd libass live lua mad matroska mpeg ogg oggvorbis qt4 stream svga
>> theora vcd vlm wxwindows xv
>> net-print/hplip scanner qt4
>> sys-apps/busybox -pam
>> sys-devel/gcc objc
>> sys-process/cronie anacron
>> x11-base/xorg-server udev
>> xfce-extra/xfce4-power-manager -udisks
>> xfce-extra/xfce4-sensors-plugin hddtemp lm_sensors
>>
>> NOTE: There are two entries for 'rubygems' there.
>>
>> Here is the awk script output:
>>
>> echo '=dev-lang/python-2.7.9-r1 sqlite' >> python
>> echo '>=dev-ruby/json-1.8.2-r1 ruby_targets_ruby21' >> json
>> echo '>=dev-ruby/racc-1.4.11 ruby_targets_ruby21' >> racc
>> echo '>=dev-ruby/rake-0.9.6-r1 ruby_targets_ruby21' >> rake
>> echo '>=dev-ruby/rdoc-4.0.1-r2 ruby_targets_ruby21' >> rdoc
>> echo '>=dev-ruby/rubygems-2.2.5-r1 ruby_targets_ruby21' >> rubygems
>> echo '>=media-libs/harfbuzz-0.9.38 icu' >> harfbuzz
>> echo '>=media-video/ffmpeg-2.6.3 theora' >> ffmpeg
>> echo '>=sys-libs/zlib-1.2.8-r1 minizip' >> zlib
>> echo '>=virtual/rubygems-10 ruby_targets_ruby21' >> rubygems
>> echo 'gnome-base/gvfs -http gphoto2 mtp' >> gvfs
>> echo 'media-video/vlc a52 aac bidi cdda cdio dts dvd flac freetype
>> gnutls httpd libass live lua mad matroska mpeg ogg oggvorbis qt4
>> stream svga theora vcd vlm wxwindows xv' >> vlc
>> echo 'net-print/hplip scanner qt4' >> hplip
>> echo 'sys-apps/busybox -pam' >> busybox
>> echo 'sys-devel/gcc objc' >> gcc
>> echo 'sys-process/cronie anacron' >> cronie
>> echo 'x11-base/xorg-server udev' >> xorg-server
>> echo 'xfce-extra/xfce4-power-manager -udisks' >> xfce4-power-manager
>> echo 'xfce-extra/xfce4-sensors-plugin hddtemp lm_sensors' >>
>> xfce4-sensors-plugin
>>
>> The two 'rubygems' entries I had in the original 'package.use' file
>> went into a single 'rubygems' file:
>>
>> cat rubygems
>> >=dev-ruby/rubygems-2.2.5-r1 ruby_targets_ruby21
>> >=virtual/rubygems-10 ruby_targets_ruby21
>>
>> Is this format acceptable? Or should I have used two separate files,
>> one for 'dev-lang/rubygems', and another for 'virtual/rubygems'?
>>
>> I have run 'emerge -auUND @world' since the transition, which voiced
>> no complaints so far.
>>
>> The list's input would be appreciated.
>
> Those should all be fine.  I tend to make a file per package but I think
> you could have just moved your original package.use into the
> /etc/portage/package.use directory and everything would be fine (aside
> from you not gaining any benefit from separate files.)
>
> Todd
>

Understood. Thanks.



Re: [gentoo-user] rubygems-1.9.1 error

2014-03-24 Thread Tom Wijsman
On Mon, 24 Mar 2014 22:44:23 +
Mick michaelkintz...@gmail.com wrote:

 On Monday 24 Mar 2014 21:28:56 Tom Wijsman wrote:
  On Mon, 24 Mar 2014 20:23:55 +
  
  Mick michaelkintz...@gmail.com wrote:
   /usr/lib64/ruby/1.9.1/rubygems.rb:30:in `require': cannot load
   such file -- rubygems/defaults (LoadError)
   
   The missing file is there, I think:
   
   # ls -la /usr/lib64/ruby/1.9.1/rubygems.rb
   -rw-r--r-- 1 root root 34951 Apr 20
   2012 /usr/lib64/ruby/1.9.1/rubygems.rb
   
   What now?
  
  It can't load what is on line 30 of that file; there'll be a require
  instruction, and that require instruction would bring in another
  file.
 
 Aha!  That's what it meant.  :-)
 
 The line in question is:
 
   require 'rubygems/defaults'
 
 Where should I look for that?

Not that I know Ruby programming; but I assume that either looks for
a defaults file in a rubygems directory, or it looks for a defaults
module inside a rubygems file.

You might want to file a bug at https://bugs.gentoo.org for the
Ruby maintainers to fix this dependency.

-- 
With kind regards,

Tom Wijsman (TomWij)
Gentoo Developer

E-mail address  : tom...@gentoo.org
GPG Public Key  : 6D34E57D
GPG Fingerprint : C165 AF18 AB4C 400B C3D2  ABF0 95B2 1FCD 6D34 E57D


signature.asc
Description: PGP signature


Re: [gentoo-user] advice on transitioning from package.use file to package.use directory

2015-08-31 Thread Neil Bothwick
On Mon, 31 Aug 2015 22:33:58 +0300, Alexander Kapshuk wrote:

> cat rubygems
> >=dev-ruby/rubygems-2.2.5-r1 ruby_targets_ruby21
> >=virtual/rubygems-10 ruby_targets_ruby21  
> 
> Is this format acceptable? Or should I have used two separate files,
> one for 'dev-lang/rubygems', and another for 'virtual/rubygems'?

Use whatever suits you, portage doesn't care whether you use one file for
everything or one file for each setting.

My preference is to create a file for each program I use, and put the
settings for dependent packages in there, that way I know what they
relate to. It also means that if I remove the package, I can remove the
file too. This to my mind is the key advantage of the separate file
approach, a single file is too unwieldy without extensive comments, and I
am too lazy to add useful comments.

But it's up to you, do whatever works for your way of thinking - it's all
the same to portage.

One thing to be aware of is that portage adds "auto-unmask" entries to the
"last" file in package.use, so I always create a zzz-auto-unmask file
then transfer entries from there to the appropriate location.


-- 
Neil Bothwick

*Libra*: /(Sept 23--Oct 23)/ An unfortunate typo on your application
results in your being accepted into the Legion Of Superherpes.


pgpb3WLXQEErd.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] advice on transitioning from package.use file to package.use directory

2015-09-01 Thread Alexander Kapshuk
On Mon, Aug 31, 2015 at 11:06 PM, Neil Bothwick <n...@digimed.co.uk> wrote:
> On Mon, 31 Aug 2015 22:33:58 +0300, Alexander Kapshuk wrote:
>
>> cat rubygems
>> >=dev-ruby/rubygems-2.2.5-r1 ruby_targets_ruby21
>> >=virtual/rubygems-10 ruby_targets_ruby21
>>
>> Is this format acceptable? Or should I have used two separate files,
>> one for 'dev-lang/rubygems', and another for 'virtual/rubygems'?
>
> Use whatever suits you, portage doesn't care whether you use one file for
> everything or one file for each setting.
>
> My preference is to create a file for each program I use, and put the
> settings for dependent packages in there, that way I know what they
> relate to. It also means that if I remove the package, I can remove the
> file too. This to my mind is the key advantage of the separate file
> approach, a single file is too unwieldy without extensive comments, and I
> am too lazy to add useful comments.
>
> But it's up to you, do whatever works for your way of thinking - it's all
> the same to portage.
>
> One thing to be aware of is that portage adds "auto-unmask" entries to the
> "last" file in package.use, so I always create a zzz-auto-unmask file
> then transfer entries from there to the appropriate location.
>
>
> --
> Neil Bothwick
>

Understood. Thanks.



[gentoo-user] Rubygems and Rake problem

2021-01-27 Thread Bertram Scharpf
Hi,

after a long period with a lot of problems installing
Ruby Gems and Gentoo packages containing Ruby Gems, I found
the following solution: I added a line

s.executables = ["rake".freeze]

to the file "/usr/lib64/ruby/gems/2.7.0/specifications/rake-13.0.1.gemspec"
(and the other Ruby versions).

This fixed all my problems.

The longer I do research about that, I am convinced the bug
is inside the "to_ruby" method in
"/usr/lib64/ruby/site_ruby/2.7.0/rubygems/specification.rb",
line 2423. That doesn't produce the "s.executables" line.

It gets called from Portage in
"/usr/portage/eclass/ruby-fakegem.eclass", line 277.

What do you think? Maybe someone likes to confirm this.
I will definitely not file any report or patch to neither
the RubyGems nor the Rake project any more.

Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de



Re: [gentoo-user] Anyone using www-apps/jekyll?

2021-10-28 Thread Peter Humphrey
On Wednesday, 27 October 2021 17:25:55 BST Jack wrote:
> On 2021.10.27 09:59, Peter Humphrey wrote:
> > One possibility occurred to me: is having two ruby versions installed
> > at once the problem? I already had 3.0 installed, the current Gentoo
> > version, but jekyll needs 2.6. To test this idea, I'd have to downgrade
> > the whole system to 2.6; I don't know whether that's even feasible now.
> 
> Ruby is slotted, so you can have 2.6 and 3.0 installed together.

As I thought, so it isn't that then.

> You would then need to rebuild rubygems to target both of them.

Yes, portage made sure of it while installing jekyll.

> There is also a virtual/rubygems.  I'm not really sure of it's function, but
> it seems to just specify a minimum version of rubygems per targetted
> version of ruby.

...and to ensure that the proper version is installed for each ruby target 
specified?

-- 
Regards,
Peter.






Re: [gentoo-user] Anyone using www-apps/jekyll?

2021-10-27 Thread Peter Humphrey
On Wednesday, 27 October 2021 14:44:09 BST Pascal Schorde wrote:

> did you have dev-ruby/rubygems installed? See
> https://jekyllrb.com/docs/#prerequisites

Yes, but at version 3.0:

$ eix dev-ruby/rubygems
[I] dev-ruby/rubygems
 Available versions:  3.0.3^t 3.0.9^t 3.1.6^t (~)3.2.14^t{tbz2} [M]
(~)3.2.22^t{tbz2} {server test RUBY_TARGETS="ruby26 ruby27 ruby30"}
 Installed versions:  3.2.14^t{tbz2}(09:19:26 10/26/21)(-server -test 
RUBY_TARGETS="ruby26 ruby30 -ruby27")

One possibility occurred to me: is having two ruby versions installed at once 
the problem? I already had 3.0 installed, the current Gentoo version, but 
jekyll needs 2.6. To test this idea, I'd have to downgrade the whole system to 
2.6; I don't know whether that's even feasible now.

-- 
Regards,
Peter.






Re: [gentoo-user] dev-ruby/rake-0.7.3 seems to hang?

2007-06-28 Thread Bertram Scharpf
Hi Daevid,

Am Donnerstag, 21. Jun 2007, 14:56:04 -0700 schrieb Daevid Vincent:
 I added a bug report:
 http://bugs.gentoo.org/show_bug.cgi?id=182826 
 
  -Original Message-
  From: Bertram Scharpf [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, June 21, 2007 3:56 AM
  To: gentoo-user@lists.gentoo.org
  Subject: Re: [gentoo-user] dev-ruby/rake-0.7.3 seems to hang?
  
Emerging (16 of 29) dev-ruby/rake-0.7.3 to /
   
   [...]
   
Install rake-0.7.3 into 
  /var/tmp/portage/dev-ruby/rake-0.7.3/image/
category dev-ruby
   
   
   Exiting on signal 2
   sandbox:  Signal already caught and busy still cleaning up!
   ERROR:  Interrupted
   
   /usr/portage/dev-ruby/rake/rake-0.7.3.ebuild: src_install aborted;
   exiting. 

Even worse! I detected that it's `rubygems-0.8.11-r6' that
hangs when it reads the gem tarfile.

So I decided to install version 0.9.4 of that. Now the
installation of rubygems itself hangs.

First, I thought this was caused by the old rubygems. So I
deinstalled that. Now I have neither!

Bertram



-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de
-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: Rubygems and Rake problem

2021-01-27 Thread Hans de Graaff
On Wed, 27 Jan 2021 19:13:37 +0100, Bertram Scharpf wrote:

> after a long period with a lot of problems installing Ruby Gems and
> Gentoo packages containing Ruby Gems, I found the following solution: I
> added a line
> 
> s.executables = ["rake".freeze]
 
> What do you think? Maybe someone likes to confirm this.
> I will definitely not file any report or patch to neither the RubyGems
> nor the Rake project any more.

Could you file a but about this at https://bugs.gentoo.org/ including an 
example of the problem this is causing for you? As far as I'm aware this 
is not a known issue.

Hans




Re: [gentoo-user] ruby scripts for amarok won't run anymore

2007-04-17 Thread Bo Ørsted Andresen
On Tuesday 17 April 2007 16:48:11 Nistor Andrei wrote:
   Hi, after an emerge --depclean I noticed none of the ruby scripts work
   anymore. I get this error: ruby: no such file to load -- auto_gem
   (LoadError)
  
   Does anyone know how this can be fixed?
 
  (re-)emerge rubygems.

 It works! Thanks a lot! I wonder why revdep-rebuild didn't detect it?

Obviously because there are no broken libs. There is not even a dependency 
upon rubygems. There is, however, an environment variable 
RUBYOPT=-rauto_gem that tells ruby to load auto_gem which obviously fails 
when --depclean just uninstalled it. Clearly one solution is to reinstall it 
as you've done. Another solution is to stop telling it to load it as 
explained in another post to this thread...

-- 
Bo Andresen


signature.asc
Description: This is a digitally signed message part.


[gentoo-user] Re: RUBYOPT=-rauto_gem

2012-01-16 Thread Hans de Graaff
On Sun, 15 Jan 2012 14:24:30 -0800, Hilco Wijbenga wrote:

 If there is a requirement for this to be in the global environment, what
 is the consequence of unsetting RUBYOPT in my own .bashrc (or similar)?
 Is that safe? Or does that break something that I simply haven't
 noticed yet?

We don't support that setup, but you can always try. The only consequence 
should be that scripts won't find code installed by rubygems, unless you 
explicitly require 'rubygems' yourself.

The reason for this is partly history, and we can't really change it now 
without breaking a lot of stuff. It it also there to provide more choice, 
since you don't need to be explicit about this in your scripts. Finally, 
this is the default in ruby 1.9, even without RUBYOPT set, so we now have 
a matching situation between the different ruby versions.

Kind regards,

Hans




Re: [gentoo-user] rubygems-1.9.1 error

2014-03-24 Thread Tom Wijsman
On Mon, 24 Mar 2014 20:23:55 +
Mick michaelkintz...@gmail.com wrote:


 /usr/lib64/ruby/1.9.1/rubygems.rb:30:in `require': cannot load such
 file -- rubygems/defaults (LoadError)

 The missing file is there, I think:
 
 # ls -la /usr/lib64/ruby/1.9.1/rubygems.rb
 -rw-r--r-- 1 root root 34951 Apr 20
 2012 /usr/lib64/ruby/1.9.1/rubygems.rb
 
 What now?

It can't load what is on line 30 of that file; there'll be a require
instruction, and that require instruction would bring in another file.

-- 
With kind regards,

Tom Wijsman (TomWij)
Gentoo Developer

E-mail address  : tom...@gentoo.org
GPG Public Key  : 6D34E57D
GPG Fingerprint : C165 AF18 AB4C 400B C3D2  ABF0 95B2 1FCD 6D34 E57D


signature.asc
Description: PGP signature


[gentoo-user] Re: Postgres gem not found by cron job

2010-08-13 Thread Hans de Graaff
On Wed, 11 Aug 2010 15:32:53 -0400, Michael Orlitzky wrote:

 Thanks for the tip. The cron environment was missing
 RUBYOPT=-rauto_gem -- adding it fixed the problem.
 
 Dark magic, whatever it does.

It ensures that installed gems are found automatically without
specifying this explicitly in your script. The other solution
is to require 'rubygems' first in your script.

Kind regards,

Hans




Re: [gentoo-user] Routine update wants to install 3 version of Ruby + 50 others

2013-12-09 Thread Peter Humphrey
On Monday 09 Dec 2013 18:29:46 Grant Edwards wrote:
 My routine more-or-less weekly update suddenly decided that it needed
 to install 3 versions of Ruby along with ~50 other ruby-related
 packages.  This caused a bit of a problem, since those versions of Ruby
 can't coexist: (something to do with tk and threads).
 
 I've never had Ruby installed before, and after some digging around, I
 finally tracked it down to two things:
 
 gnome-terminal-nautilus-webkit-ruby
 multipath-tools-thin-provisioning-tools-ruby
 
 These both seem to be new dependancies.
 
 After uninstalling gnome-terminal, multipath-tools, and
 thin-provisioning-tools all is good (the update proceding sans Ruby).
 
 I understand that sometimes a maintainer decides to add a feature that
 requires some new dependancies, but why three different versions of
 Ruby all of a sudden?

I found the same a few days ago, but didn't have the energy to sort out the 
mess. Just now I ran:

$ sudo emerge -c dev-lang/ruby:1.8 dev-lang/ruby:1.9 dev-lang/ruby:2.0 json 
racc rake rdoc rubygems thin-provisioning-tools =virtual/rubygems-1 
=virtual/rubygems-4 =virtual/rubygems-6 

I'll reboot now and see if lvm2 can still mount my LVM partitions since I 
recompiled it without thin  :-)

(Later: it can!)

-- 
Regards
Peter



[gentoo-user] RUBY_TARGETS and eselect ruby

2013-12-30 Thread Pavel Volkov
I currently set my RUBY_TARGETS in make.conf to:
RUBY_TARGETS=ruby20 ruby21

World is updated.

But ruby21 profile can't be selected with eselect:
$ eselect ruby list
Available Ruby profiles:
  [1]   ruby20 (with Rubygems) *

If I remove ruby20 from RUBY_TARGETS, there would be no profiles left.

Why?



Re: [gentoo-user] Re: Rubygems and Rake problem

2021-01-31 Thread Bertram Scharpf
Hi,

On Thursday, 28. Jan 2021, 06:52:37 +0100, Hans de Graaff wrote:
> On Wed, 27 Jan 2021 19:13:37 +0100, Bertram Scharpf wrote:
> 
> > after a long period with a lot of problems installing Ruby Gems and
> > Gentoo packages containing Ruby Gems, I found the following solution: I
> > added a line
> > 
> > s.executables = ["rake".freeze]
>  
> > What do you think? Maybe someone likes to confirm this.
> > I will definitely not file any report or patch to neither the RubyGems
> > nor the Rake project any more.
> 
> Could you file a but about this at https://bugs.gentoo.org/ including an 
> example of the problem this is causing for you? As far as I'm aware this 
> is not a known issue.

I tried to reproduce the problem, but the Gem installer
immediately updates the Rake gem so that the messy gem
specification of the old version will no longer be accessed.
I suppose the error only surfaces in times when the Rake
package is the newest version.

Nevertheless, the missing executable specification line
definitely is a bug, probably on the RubyGems side, not in
Gentoo Portage.

Again, and I can’t stress this enough, I'm tired of
searching for bugs in these lousy written tools RubyGems and
Rake. I will not make any effort to report any bugs there
any more and I do not want to be responsible for anything
these tools do.

Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de



Re: [gentoo-user] Anyone using www-apps/jekyll?

2021-10-27 Thread Pascal Schorde
Hi Peter,

did you have dev-ruby/rubygems installed? See
https://jekyllrb.com/docs/#prerequisites

Cheers

Peter Humphrey  schrieb am Mi., 27. Okt. 2021, 15:36:

> On Wednesday, 27 October 2021 14:31:28 BST Peter Humphrey wrote:
>
> Sorry: The site is https://jekyllrb.com/docs/
>
> --
> Regards,
> Peter.
>
>
>
>
>


[gentoo-user] USE ruby_targets_ruby20

2013-11-14 Thread Chris Stankevitz
Hello,

If possible please phrase your response in a way that will make sense
to someone who was no idea what is ruby, has no desire to learn what
is ruby, and who doesn't [directly] even want ruby on his system.

True or false: The correct way to appease portage's error message
below is to add a bunch of ruby_targets_ruby20 use flags in
/etc/portage/package.use

Thank you,

Chris

===

The following USE changes are necessary to proceed:
 (see package.use in the portage(5) man page for more details)
# required by dev-lang/ruby-2.0.0_p247-r1[rdoc]
# required by dev-ruby/racc-1.4.9[ruby_targets_ruby20]
=dev-ruby/rdoc-4.0.1-r1 ruby_targets_ruby20
# required by dev-ruby/rdoc-4.0.1-r1[ruby_targets_ruby20]
# required by dev-lang/ruby-1.9.3_p448[rdoc]
# required by dev-ruby/rubygems-2.0.3[ruby_targets_ruby19]
# required by virtual/rubygems-4
# required by dev-ruby/rake-0.9.6[-test,ruby_targets_ruby19]
# required by dev-ruby/json-1.8.0[-test,-doc,ruby_targets_ruby18]
# required by dev-lang/ruby-2.0.0_p247-r1
# required by sys-block/thin-provisioning-tools-0.2.8
# required by sys-fs/lvm2-2.02.103[thin]
# required by sys-fs/udisks-1.0.4-r5
# required by x11-libs/libfm-0.1.17-r1[udev]
# required by x11-misc/pcmanfm-0.9.10
# required by @selected
# required by @world (argument)
=dev-ruby/racc-1.4.9 ruby_targets_ruby20
# required by dev-ruby/rdoc-4.0.1-r1[ruby_targets_ruby20]
# required by dev-lang/ruby-1.9.3_p448[rdoc]
# required by dev-ruby/racc-1.4.9[ruby_targets_ruby19]
=dev-ruby/json-1.8.0 ruby_targets_ruby20
# required by dev-lang/ruby-2.0.0_p247-r1
# required by dev-ruby/racc-1.4.9[ruby_targets_ruby20]
# required by dev-ruby/rdoc-4.0.1-r1[ruby_targets_ruby18]
# required by dev-lang/ruby-1.9.3_p448[rdoc]
# required by dev-ruby/rubygems-2.0.3[ruby_targets_ruby19]
# required by virtual/rubygems-4
# required by dev-ruby/json-1.8.0[-test,ruby_targets_ruby19]
=dev-ruby/rake-0.9.6 ruby_targets_ruby20
# required by dev-lang/ruby-2.0.0_p247-r1
# required by dev-ruby/racc-1.4.9[ruby_targets_ruby20]
# required by dev-ruby/rdoc-4.0.1-r1[ruby_targets_ruby18]
# required by dev-lang/ruby-1.9.3_p448[rdoc]
# required by dev-ruby/json-1.8.0[ruby_targets_ruby19]
=dev-ruby/rubygems-2.0.3 ruby_targets_ruby20



[gentoo-user] How can I recover Ruby 2.2?

2017-10-06 Thread Hubert Hauser
Unfortunaly, I set in /etc/portage/make.conf variable RUBY_TARGETS to
"ruby22 ruby24" and I executed command eselect profile set 2. Now I need
to recovering these changes. I want to have Ruby 2.2. File
/etc/portage/make.conf:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"
VIDEO_CARDS="nvidia"
#INPUT_DEVICES="libinput synaptics"
INPUT_DEVICES="libinput synaptics evdev mouse keyboard"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before
changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE and USE_EXPAND flags that were used for
# buidling in addition to what is provided by the profile.
#USE="bindist"
USE="userlocales unicode nls tools X a52 aac acl acpi alsa amd64 berkdb \
 -bindist bluetooth branding bzip2 cairo cdda cdr cli colord \
 consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds \
 emboss encode evo exif fam firefox flac fortran gdbm gif glamor \
 -gnome -gnome-keyring -gnome-online-accounts gpm gstreamer \
 gtk iconv introspection ipv6 jpeg lcms ldap libnotify \
 libsecret mad mng modules mp3 mp4 mpeg multilib nautilus ncurses nptl \
 ogg opengl openmp pam pango pcre pdf png policykit ppds \
 -pulseaudio qt3support qt4 readline sdl seccomp session spell ssl \
 startup-notification svg -systemd tcpd tiff tracker truetype \
 udev udisks upower usb vorbis wxwidgets x264 xattr xcb xml \
 xv xvid zlib savedconfig xinerama python cjk wifi hardened jack \
 startup-notification custom-cflags java postgres curl lzma socks5 \
 perl v4l fontconfig gphoto2 gsm nls odbc openal scanner threads \
 vaapi xcomposite -ruby_targets_ruby24"
#USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding
bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups cxx dbus
dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran
gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer
gtk iconv introspection ipv6 jpeg lcms ldap libnotify libsecret mad mng
modules mp3 mp4 mpeg multilib nautilus ncurses nls nptl ogg opengl
openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4
readline sdl seccomp session spell ssl startup-notification svg tcpd
tiff tools tracker truetype udev udisks unicode upower usb userlocales
vorbis wxwidgets x264 xattr xcb xml xv xvid zlib"
CPU_FLAGS_X86="mmx mmxext sse sse2"
RUBY_TARGETS="ruby22"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
FEATURES="userfetch webrsync-gpg clean-logs binpkg-logs split-log"
PORT_LOGDIR="/var/log/portage"
PORTAGE_GPG_DIR="/var/lib/gentoo/gkeys/keyrings/gentoo/release"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl
rsync://gentoo.prz.rzeszow.pl/gentoo rsync://ftp.vectranet.pl/gentoo/
http://ftp.vectranet.pl/gentoo/ ftp://ftp.vectranet.pl/gentoo/;
CONFIG_PROTECT_MASK="/usr/bin/startx"
#FETCHCOMMAND="curl --socks5-hostname 127.0.0.1:9050 --retry 3
--connect-timeout 60 -o \"\${DISTDIR}/\${FILE}\" \"\${URI}\""
#RESUMECOMMAND="curl -C - --socks5-hostname 127.0.0.1:9050 --retry 3
--connect-timeout 60 -o \"\${DISTDIR}/\${FILE}\" \"\${URI}\""

Result of sudo -i emerge --ask --update --deep --newuse @world:

pecan@tux ~ $ sudo -i emerge --ask --update --deep --newuse @world

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


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

Calculating dependencies... done!
[ebuild  NS    ] dev-ruby/json-1.8.6-r1 [2.1.0] USE="-doc {-test}"
RUBY_TARGETS="ruby22 (-ruby23) (-ruby24)"

WARNING: One or more updates/rebuilds have been skipped due to a
dependency conflict:

dev-ruby/rubygems:0

  (dev-ruby/rubygems-2.6.13:0/0::gentoo, ebuild scheduled for merge)
conflicts with
    >=dev-ruby/rubygems-2.6.11[ruby_targets_ruby24] required by
(virtual/rubygems-13:0/0::gentoo, installed)
   ^^^


Would you like to merge these packages? [Yes/No] No

Quitting.

Result of emerge -pvO virtual/rubygems:

pecan@tux ~ $  emerge -pvO virtual/rubygems

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

[ebuild UD ] virtual/rubygems-11::gentoo [13::gentoo]
RUBY_TARGETS="ruby22 (-rbx) (-ruby23) (-ruby24%*)" 0 KiB

Total: 1 package (1 downgrade), Size of downloads: 0 KiB

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.[/code]
[b]sudo eselect ruby list[/b]:
[code]pecan@tux ~ $ sudo eselect ruby list
Available Ruby profiles:
  [1]   ruby22 (with Rubygems) *
  [2]   ruby24 (with Rubygems)

How can I recover Ruby 2.2 and completely remove Ruby 2.4?

I'm counting for help.




[gentoo-user] RUBYOPT=-rauto_gem

2012-01-15 Thread Hilco Wijbenga
Hi all,

The dev-ruby/rubygems ebuild adds -rauto_gem to the global RUBYOPT.
This breaks my own scripts so I have removed it from /etc/env.d. So
far, so good.

I just tried upgrading dev-ruby/json and it failed because I did not
have RUBYOPT set. Obviously, the fix was easy but now I'm wondering
... is this really the best approach?

It does not seem like a good idea that the rubygems ebuild sets
RUBYOPT and subsequent (Ruby Gems related) emerges break without it.
Would it not be simpler and more reliable if ebuilds that need it
simply execute export RUBYOPT=... prior to running? Why does it have
to be in the global environment, forcing it on every user?

If there is a requirement for this to be in the global environment,
what is the consequence of unsetting RUBYOPT in my own .bashrc (or
similar)? Is that safe? Or does that break something that I simply
haven't noticed yet?

Cheers,
Hilco



Re: [gentoo-user] webkit-gtk-2.2.6 - ERROR: compile

2014-06-09 Thread Joseph

On 06/09/14 14:18, Neil Bothwick wrote:

On Mon, 9 Jun 2014 07:10:47 -0600, Joseph wrote:


The log file is complaining about ruby

/usr/bin/ruby ./Source/JavaScriptCore/offlineasm/generate_offset_extractor.rb 
./Source/JavaScriptCore/llint/LowLevelInterpreter.asm
DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h
/usr/bin/ruby: no such file to load -- auto_gem (LoadError)
make: *** [DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h] Error 1
 * ERROR: net-libs/webkit-gtk-2.2.6::gentoo failed (compile phase):


You either don't have ruby installed (unlikely) or it is installed but no
version is selected. hat could happen if your previously selected ruby
was uninstalled. What is the output from

eselect ruby list


--
Neil Bothwick

Adolescence, n.: The stage between puberty and adultery.


I think it is working, it is still compiling but I switched to ruby19

eselect ruby list
Available Ruby profiles:
 [1]   ruby18 *
 [2]   ruby19 (with Rubygems)
 [3]   ruby20 (with Rubygems)


--
Joseph



Re: [gentoo-user] Re: Ruby is borked on my system

2014-06-27 Thread Peter Humphrey
On Friday 27 June 2014 08:16:08 Hans de Graaff wrote:
 On Thu, 26 Jun 2014 23:36:00 -0400, Ajai Khattri wrote:
  !!! All ebuilds that could satisfy
  virtual/rubygems[ruby_targets_ruby18]
  have been masked.
 
 You still have packages on your system that have been installed with the
 ruby18 RUBY_TARGET. It's not immediately clear which package that is from
 the output, but I suspect dev-ruby/rubygems? Re-emerging the packages
 still installed for ruby18 should fix this.

Some months ago I found myself wondering why I had ruby on this box at all. A 
little poking around revealed that the only thing that needed it was thin-
provisioning. Once I'd added -thin to my USE flags and recompiled lvm2 I could 
get rid of ruby altogether.

This won't suit everybody, I know, but maybe it's worth considering.

-- 
Regards
Peter




Re: [gentoo-user] Re: Ruby is borked on my system

2014-06-27 Thread covici
Peter Humphrey pe...@prh.myzen.co.uk wrote:

 On Friday 27 June 2014 08:16:08 Hans de Graaff wrote:
  On Thu, 26 Jun 2014 23:36:00 -0400, Ajai Khattri wrote:
   !!! All ebuilds that could satisfy
   virtual/rubygems[ruby_targets_ruby18]
   have been masked.
  
  You still have packages on your system that have been installed with the
  ruby18 RUBY_TARGET. It's not immediately clear which package that is from
  the output, but I suspect dev-ruby/rubygems? Re-emerging the packages
  still installed for ruby18 should fix this.
 
 Some months ago I found myself wondering why I had ruby on this box at all. A 
 little poking around revealed that the only thing that needed it was thin-
 provisioning. Once I'd added -thin to my USE flags and recompiled lvm2 I 
 could 
 get rid of ruby altogether.
 
 This won't suit everybody, I know, but maybe it's worth considering.

What exactly does this do -- is it for a thin client or something?


-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] upgrading 1-year old system

2017-01-31 Thread thelma
On 01/31/2017 04:35 PM, Neil Bothwick wrote:
> On Tue, 31 Jan 2017 16:24:21 -0700, the...@sys-concept.com wrote:
> 
>> When I try to exclude the "dev-ruby/racc:
>> emerge -uDNavq --exclude dev-libs/icu --exclude dev-libs/boost
>> --exclude dev-ruby/racc  world
>>
>> I'm getting another error:
> 
> Try to reduce the amount of packages being updated at once, drop the -D
> and -N flags.
> 
> Why are you using both the --verbose and --quiet switches?

I solve this one by switching to rubby-21
eselect ruby list
Available Ruby profiles:
  [1]   ruby20 (with Rubygems)
  [2]   ruby21 (with Rubygems) *

and "dev-ruby/racc" compile just fine.

Thanks for suggestion on dropping -D and -N flags, good idea.

--
Thelma



Re: [gentoo-user] ruby scripts for amarok won't run anymore

2007-04-17 Thread Nistor Andrei
On Tuesday 17 April 2007, Neil Bothwick wrote:
 On Tue, 17 Apr 2007 15:55:59 +0300, Nistor Andrei wrote:
  Hi, after an emerge --depclean I noticed none of the ruby scripts work
  anymore. I get this error: ruby: no such file to load -- auto_gem
  (LoadError)

 Have you run revdep-rebuild?
I've tried revdep-rebuild, but the scripts still won't work. I'm re-emerging 
rubygems now...

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] ruby scripts for amarok won't run anymore

2007-04-17 Thread Nistor Andrei
On Tuesday 17 April 2007, Dirk Heinrichs wrote:
 Am Dienstag, 17. April 2007 schrieb ext Nistor Andrei:
  Hi, after an emerge --depclean I noticed none of the ruby scripts work
  anymore. I get this error: ruby: no such file to load -- auto_gem
  (LoadError)
 
  Does anyone know how this can be fixed?

 (re-)emerge rubygems.

It works! Thanks a lot! I wonder why revdep-rebuild didn't detect it?
 HTH...

   Dirk


-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: finding qt plugins?

2009-06-30 Thread Paul Hartman
On Tue, Jun 30, 2009 at 2:54 PM, Roy Wrightr...@wright.org wrote:
 == Installation

  $ emerge ruby rubygems
  $ sudo gem install royw-qt-rebuild --source http://gems.github.com

Hi,

$ sudo gem install royw-qt-rebuild --source http://gems.github.com
ERROR:  could not find gem royw-qt-rebuild locally or in a repository

I know nothing about ruby or gems. Any idea what I'm missing?

Thanks.



Re: [gentoo-user] Re: RUBY_TARGETS and eselect ruby

2013-12-31 Thread Pavel Volkov
On Tuesday 31 December 2013 08:03:10 Hans de Graaff wrote:
 Because we haven't gotten around to that yet. Also note that only a few
 packages currently have ruby21 support, so eselecting it right now is not
 very useful yet.
 
 We should be updating the ruby eselect module in the next week or so.

Ok, I see.
The only ruby-related packages I have installed are ruby, rubygems, rake, 
json, racc and rdoc, those are build-time-deps, so eselecting ruby21 will be 
ok for me.



[gentoo-user] Re: RUBY_TARGETS and eselect ruby

2014-02-21 Thread Svoop
Hans de Graaff graaff at gentoo.org writes:
 Because we haven't gotten around to that yet. Also note that only a few 
 packages currently have ruby21 support, so eselecting it right now is not 
 very useful yet.
 We should be updating the ruby eselect module in the next week or so.

Any news on this?

Like Pavel the only related packages are rubygems, rake and friends since
it's a pretty minimalistic box serving a Rails app which we are lifting to
Ruby 2.1 next week.

Support for ruby21 in eselect would be great, thanks a bunch!




Re: [gentoo-user] reflexive dependencies?

2021-02-04 Thread Matt Connell (Gmail)
On Thu, 2021-02-04 at 20:49 +0100, n952162 wrote:
> Is this ok?  It's stopped my update in its tracks:
> 
> /var/tmp/portage/dev-ruby/bundler-2.1.4/temp/environment: line 663:
> rdoc: command not found
> 
> Emerging rdoc fails because it tries to emerge bundler...
> 

I encountered this as well.  I needed to use "eselect ruby" to pick a
new ruby profile.  Once I selected 2.6 (with Rubygems), I was able to
finish the emerge process.




Re: [gentoo-user] Permissions problem

2023-08-15 Thread Stefan Schmiedl
 
Dienstag, 15. August 2023 16:55:

 
> Hello list,

> I'd like to develop a blog using www-apps/jekyll, which makes extensive use 
> of 
> ruby gems, of which I have no experience. On trying to install a new default 
> theme I get copious permission errors.

> The ruby gems live in /usr/lib64/ruby/gems/3.1.0/gems, and to install 
> anything 
> in that tree I need write permission on the destination directory and execute 
> permission on all those above it.

> This poses an obvious security problem.

> When I emerged jekyll and ran its installation routine, I found I had a new ~/
> bin directory with nine executable files in it. ~/bin/update_rubygems has 
> similar permission problems but is more concise in reporting them

> I can't add myself to a group and grant it permissions, because there seems 
> not to be any such group.

> How do Gentoo Ruby users get around this?



 Hello Peter,

first make sure that you don't have any "suspicious" rubygem based
executables in your path that might confuse things. Some time ago
I found some ancient such files in /usr/local/bin ...

Next, with a default ruby/rubygems installation, a normal user should
be able to install gems into their own $HOME/.gem directory. I'm doing
this on several gentoo boxes, never had a problem with that approach.

On one of the servers, I can run the following command, to which you can
compare your environment

 $ gem environment
RubyGems Environment:
  - RUBYGEMS VERSION: 3.3.26
  - RUBY VERSION: 3.1.4 (2023-03-30 patchlevel 223) [x86_64-linux]
  - INSTALLATION DIRECTORY: /usr/lib64/ruby/gems/3.1.0
  - USER INSTALLATION DIRECTORY: /home/.../.gem/ruby/3.1.0
  - RUBY EXECUTABLE: /usr/bin/ruby31
  - GIT EXECUTABLE: /usr/bin/git
  - EXECUTABLE DIRECTORY: /usr/bin
  - SPEC CACHE DIRECTORY: /home/.../.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /etc
  - RUBYGEMS PLATFORMS:
 - ruby
 - x86_64-linux
  - GEM PATHS:
 - /usr/lib64/ruby/gems/3.1.0
 - /home/.../.gem/ruby/3.1.0
 - /usr/local/lib64/ruby/gems/3.1.0
  - GEM CONFIGURATION:
 - :update_sources => true
 - :verbose => true
 - :backtrace => true
 - :bulk_threshold => 1000
 - "install" => "--install-dir /home/.../.gem/ruby/3.1.0 --bindir 
/home/.../bin"
 - "uninstall" => "--install-dir /home/.../.gem/ruby/3.1.0 --bindir 
/home/...bin"
 - "update" => "--install-dir /home/.../.gem/ruby/3.1.0 --bindir 
/home/.../bin"
  - REMOTE SOURCES:
 - https://rubygems.org/
  - SHELL PATH:
 - /usr/local/sbin
 - /usr/local/bin
 - /usr/sbin
 - /usr/bin
 - /sbin
 - /bin
 - /opt/bin





Re: [gentoo-user] RUBYOPT=-rauto_gem

2012-01-15 Thread Michael Orlitzky

On 01/15/2012 05:24 PM, Hilco Wijbenga wrote:

Hi all,

The dev-ruby/rubygems ebuild adds -rauto_gem to the global RUBYOPT.
This breaks my own scripts so I have removed it from /etc/env.d. So
far, so good.

I just tried upgrading dev-ruby/json and it failed because I did not
have RUBYOPT set. Obviously, the fix was easy but now I'm wondering
... is this really the best approach?

It does not seem like a good idea that the rubygems ebuild sets
RUBYOPT and subsequent (Ruby Gems related) emerges break without it.
Would it not be simpler and more reliable if ebuilds that need it
simply execute export RUBYOPT=... prior to running? Why does it have
to be in the global environment, forcing it on every user?

If there is a requirement for this to be in the global environment,
what is the consequence of unsetting RUBYOPT in my own .bashrc (or
similar)? Is that safe? Or does that break something that I simply
haven't noticed yet?



(1) I don't know much about ruby packaging

(2) Keeping (1) in mind, I agree with you

(3) You're asking the wrong people

Try asking on the -dev list, or filing a bug. They'll just close it if 
it's considered invalid.


This bit me once long ago: ruby scripts running from cron don't have 
their RUBYOPT set, so scripts that normally work magically fail. Since 
I never set RUBYOPT myself, I didn't expect it to be set. Of course, I 
just forgot to require rubygems in my script.




Re: [gentoo-user] Re: dev-ruby/json-1.8.0

2014-06-08 Thread Stephen Reynolds
This is what I have.

stephen #grep RUBY /etc/portage/make.conf
RUBY_TARGETS=ruby20

stephen # ls -l /usr/bin/rdoc
lrwxrwxrwx 1 root root 6 Jun  6 20:13 /usr/bin/rdoc - rdoc20

stephen # eselect ruby list
Available Ruby profiles:
  [1]   ruby19 (with Rubygems)
  [2]   ruby20 (with Rubygems) *

Regards



On Sun, Jun 8, 2014 at 2:20 AM, walt w41...@gmail.com wrote:

 On 06/07/2014 12:56 AM, Hans de Graaff wrote:
  On Fri, 06 Jun 2014 15:47:38 -0700, walt wrote:
 
  Is all of the above familiar to you?  If not, you may need more help
  with managing multiple ruby versions.  I find it a large PITA and I
  could use more help myself :)
 
  Could you explain what bothers you or where you would need help?

 Hi Hans.  The annoying problems occur when updating ruby-related packages.

 For example, I (want to) use only ruby19:

 #grep RUBY /etc/portage/make.conf
 RUBY_TARGETS=ruby19

 In spite of that, portage often insists on installing other versions of
 ruby, rdoc, rubygems, and you already know the others.

 AFAICT, the other versions of ruby are dragged in by old ruby packages
 that were installed before I started using RUBY_TARGETS (because I
 didn't yet know about RUBY_TARGETS),

 I discovered all of this by grepping for ruby in /var/db/pkg but it
 took me a long time to get it sorted out, and I don't expect that a
 gentoo beginner could do it.  (OTOH maybe a gentoo beginner wouldn't
 care about installing multiple ruby versions :)

 Thanks for taking the time to read gentoo.user and even more thanks
 for being a gentoo dev :)








Re: [gentoo-user] Re: ruby 22

2017-08-22 Thread Raffaele Belardi
On Mon, 2017-08-21 at 22:21 -0400, John Covici wrote:
> On Mon, 21 Aug 2017 21:20:04 -0400,
> Alec Ten Harmsel wrote:
> > 
> I deleted RUBYTARGETS from make.conf, ran eselect to make ruby22 the
> default, but when I ran emerge --depclean I still have packages
> pulling ruby21 as follows:
> 
> Calculating dependencies  .. . done!
>   dev-lang/ruby-2.1.10 pulled in by:
>   dev-ruby/hoe-3.13.0 requires dev-lang/ruby:2.1
>dev-ruby/json-1.8.3 requires dev-lang/ruby:2.1
>   dev-ruby/json-2.1.0 requires dev-lang/ruby:2.1
>   dev-ruby/kpeg-1.1.0 requires dev-lang/ruby:2.1
>  dev-ruby/maruku-0.7.3 requires dev-
> lang/ruby:2.1
> dev-ruby/minitest-5.10.3 requires
>   dev-lang/ruby:2.1
>   dev-ruby/net-telnet-0.1.1-r1 requires dev-lang/ruby:2.1
>dev-ruby/power_assert-1.0.2 requires dev-lang/ruby:2.1
>   dev-ruby/racc-1.4.14 requires dev-lang/ruby:2.1
>   dev-ruby/rake-12.0.0 requires dev-lang/ruby:2.1
>  dev-ruby/rdoc-5.1.0 requires dev-
> lang/ruby:2.1
> dev-ruby/rubygems-2.6.12 requires
>   dev-lang/ruby:2.1
>   dev-ruby/test-unit-3.2.5 requires dev-lang/ruby:2.1
>    dev-ruby/yard-0.9.8 requires dev-lang/ruby:2.1
>   virtual/rubygems-13 requires dev-lang/ruby:2.1
>   virtual/rubygems-7 requires dev-lang/ruby:2.1
> 
> I tried a word ld update, but it didn't update any of those packages
> -- any ideas of how to fix?

Did you do an emerge @preserved-rebuild? I had the a similar problem
but only for a couple of packages (racc and another one), it was
quickly fixed that way. But I never had RUBY_TARGETS set so maybe YMMV.

raffaele



Re: [gentoo-user] USE ruby_targets_ruby20

2013-11-14 Thread Mark David Dumlao
On Fri, Nov 15, 2013 at 7:57 AM, Chris Stankevitz
chrisstankev...@gmail.com wrote:
 Hello,

 If possible please phrase your response in a way that will make sense
 to someone who was no idea what is ruby, has no desire to learn what
 is ruby, and who doesn't [directly] even want ruby on his system.

Not knowing what goes in your system or what's blocking it: that's not
how gentoo works, sorry. It never was and it never will be.

ruby is a programming language, like python, perl, or what not.

When several versions of a programming language are available for
installing some package, which version to use is controlled by a
lang_target_version_number USE flag. These are also conveniently
controlled by a LANG_TARGETS variable in make.conf, which specify the
versions to install globally. e.g. PYTHON_TARGETS.

Portage is complaining that you are trying to install some packages
for ruby 1.9, and others for ruby 2.0.


 True or false: The correct way to appease portage's error message
 below is to add a bunch of ruby_targets_ruby20 use flags in
 /etc/portage/package.use

The easiest way to get through your use blocks is to force portage to
install ruby 2.0 globally instead.

RUBY_TARGETS=ruby20

in make.conf.


 Thank you,

 Chris

 ===

 The following USE changes are necessary to proceed:
  (see package.use in the portage(5) man page for more details)
 # required by dev-lang/ruby-2.0.0_p247-r1[rdoc]
 # required by dev-ruby/racc-1.4.9[ruby_targets_ruby20]
=dev-ruby/rdoc-4.0.1-r1 ruby_targets_ruby20
 # required by dev-ruby/rdoc-4.0.1-r1[ruby_targets_ruby20]
 # required by dev-lang/ruby-1.9.3_p448[rdoc]
 # required by dev-ruby/rubygems-2.0.3[ruby_targets_ruby19]
 # required by virtual/rubygems-4
 # required by dev-ruby/rake-0.9.6[-test,ruby_targets_ruby19]
 # required by dev-ruby/json-1.8.0[-test,-doc,ruby_targets_ruby18]
 # required by dev-lang/ruby-2.0.0_p247-r1
 # required by sys-block/thin-provisioning-tools-0.2.8
 # required by sys-fs/lvm2-2.02.103[thin]
 # required by sys-fs/udisks-1.0.4-r5
 # required by x11-libs/libfm-0.1.17-r1[udev]
 # required by x11-misc/pcmanfm-0.9.10
 # required by @selected
 # required by @world (argument)
 =dev-ruby/racc-1.4.9 ruby_targets_ruby20
 # required by dev-ruby/rdoc-4.0.1-r1[ruby_targets_ruby20]
 # required by dev-lang/ruby-1.9.3_p448[rdoc]
 # required by dev-ruby/racc-1.4.9[ruby_targets_ruby19]
 =dev-ruby/json-1.8.0 ruby_targets_ruby20
 # required by dev-lang/ruby-2.0.0_p247-r1
 # required by dev-ruby/racc-1.4.9[ruby_targets_ruby20]
 # required by dev-ruby/rdoc-4.0.1-r1[ruby_targets_ruby18]
 # required by dev-lang/ruby-1.9.3_p448[rdoc]
 # required by dev-ruby/rubygems-2.0.3[ruby_targets_ruby19]
 # required by virtual/rubygems-4
 # required by dev-ruby/json-1.8.0[-test,ruby_targets_ruby19]
=dev-ruby/rake-0.9.6 ruby_targets_ruby20
 # required by dev-lang/ruby-2.0.0_p247-r1
 # required by dev-ruby/racc-1.4.9[ruby_targets_ruby20]
 # required by dev-ruby/rdoc-4.0.1-r1[ruby_targets_ruby18]
 # required by dev-lang/ruby-1.9.3_p448[rdoc]
 # required by dev-ruby/json-1.8.0[ruby_targets_ruby19]
 =dev-ruby/rubygems-2.0.3 ruby_targets_ruby20




-- 
This email is:[ ] actionable   [x] fyi[ ] social
Response needed:  [ ] yes  [x] up to you  [ ] no
Time-sensitive:   [ ] immediate[ ] soon   [x] none



Re: [gentoo-user] RUBYOPT=-rauto_gem

2012-01-15 Thread Hilco Wijbenga
On 15 January 2012 18:21, Michael Orlitzky mich...@orlitzky.com wrote:
 On 01/15/2012 05:24 PM, Hilco Wijbenga wrote:

 Hi all,

 The dev-ruby/rubygems ebuild adds -rauto_gem to the global RUBYOPT.
 This breaks my own scripts so I have removed it from /etc/env.d. So
 far, so good.

 I just tried upgrading dev-ruby/json and it failed because I did not
 have RUBYOPT set. Obviously, the fix was easy but now I'm wondering
 ... is this really the best approach?

 It does not seem like a good idea that the rubygems ebuild sets
 RUBYOPT and subsequent (Ruby Gems related) emerges break without it.
 Would it not be simpler and more reliable if ebuilds that need it
 simply execute export RUBYOPT=... prior to running? Why does it have
 to be in the global environment, forcing it on every user?

 If there is a requirement for this to be in the global environment,
 what is the consequence of unsetting RUBYOPT in my own .bashrc (or
 similar)? Is that safe? Or does that break something that I simply
 haven't noticed yet?


 (1) I don't know much about ruby packaging

 (2) Keeping (1) in mind, I agree with you

Good. Thanks.

 (3) You're asking the wrong people

 Try asking on the -dev list, or filing a bug. They'll just close it if it's
 considered invalid.

Yeah, I went back and forth. I figured (hoped?) that gentoo-dev is
(more or less) a subset of gentoo-user so I should reach (most of) the
devs this way too. Maybe I'm naive. :-)

We have too many open bugs already so I'll wait until (hopefully) I
see a few more responses before I file a bug. That way there's less
chance of an invalid bug and I may save some valuable dev time.

 This bit me once long ago: ruby scripts running from cron don't have their
 RUBYOPT set, so scripts that normally work magically fail. Since I never
 set RUBYOPT myself, I didn't expect it to be set. Of course, I just forgot
 to require rubygems in my script.



Re: [gentoo-user] Re: dev-ruby/json-1.8.0

2014-06-08 Thread Stephen Reynolds
Okay I am now using ruby19, This have solved my problem.
Thanks

stephen # eselect ruby list
Available Ruby profiles:
  [1]   ruby19 (with Rubygems) *
  [2]   ruby20 (with Rubygems)


stephen # ls -l /usr/bin/rdoclrwxrwxrwx 1 root root 6 Jun  8 11:45
/usr/bin/rdoc -
rdoc19

stephen # grep RUBY /etc/portage/make.conf
RUBY_TARGETS=ruby19



On Sun, Jun 8, 2014 at 10:39 AM, Hans de Graaff gra...@gentoo.org wrote:

 On Sat, 07 Jun 2014 17:20:22 -0700, walt wrote:

  On 06/07/2014 12:56 AM, Hans de Graaff wrote:

  For example, I (want to) use only ruby19:
 
  #grep RUBY /etc/portage/make.conf RUBY_TARGETS=ruby19

 Yes, in hindsight I think that should have been the current default since
 ruby19 has the best overall coverage for packages. Once ruby20 has caught
 up I think we'll move to a default of RUBY_TARGETS=ruby20

  In spite of that, portage often insists on installing other versions of
  ruby, rdoc, rubygems, and you already know the others.

 Partially this was because we tried to solve another issue when ruby20
 went stable. I removed those forced use flags for ruby20 last week, so
 this should no longer happen. We still need to come up with a good plan
 when the same issue will pop up for ruby21.

  AFAICT, the other versions of ruby are dragged in by old ruby packages
  that were installed before I started using RUBY_TARGETS (because I
  didn't yet know about RUBY_TARGETS),

 Yes, these will still have other ruby targets recorded and thus also
 request them for their dependencies. emerge --newuse should be able to
 help here.

  I discovered all of this by grepping for ruby in /var/db/pkg but it took
  me a long time to get it sorted out, and I don't expect that a gentoo
  beginner could do it.  (OTOH maybe a gentoo beginner wouldn't care about
  installing multiple ruby versions :)

 We try to keep the default settings so that someone who doesn't care or
 know about ruby should get a good experience. Moving from ruby18 to ruby19
 we did some things that could have been handled better (such as not
 mentioning that the new ruby must be eselected before making the switch),
 so hopefully we've learned from those when we do the next update.

 Hans






Re: [gentoo-user] Re: ruby 22

2017-08-21 Thread John Covici
On Mon, 21 Aug 2017 21:20:04 -0400,
Alec Ten Harmsel wrote:
> 
> 
> On 08/21/2017 10:13 AM, allan gottlieb wrote:
> > 
> > I issued emerge --pretend --verbose --depclean =ruby-2.1.9
> > and the response was
> > 
> >   dev-lang/ruby
> >  selected: 2.1.9
> > protected: none
> >   omitted: 2.2.6
> > 
> > Am I correct in believing it is now safe to issue
> > 
> >emerge --depclean =ruby-2.1.9
> > 
> > thanks,
> > allan
> > 
> 
> Yes, that should be fine. I rarely look at portage output and
> just run `emerge -uDN @world' and `emerge --depclean' right after
> one another, and it always works fine for ruby/python upgrades.
> 
> The devs have done such a good job in general that I haven't had
> any problems just running these commands the past couple years.

I deleted RUBYTARGETS from make.conf, ran eselect to make ruby22 the
default, but when I ran emerge --depclean I still have packages
pulling ruby21 as follows:

Calculating dependencies  .. . done!
  dev-lang/ruby-2.1.10 pulled in by:
  dev-ruby/hoe-3.13.0 requires dev-lang/ruby:2.1
 dev-ruby/json-1.8.3 requires dev-lang/ruby:2.1
dev-ruby/json-2.1.0 requires dev-lang/ruby:2.1
dev-ruby/kpeg-1.1.0 requires dev-lang/ruby:2.1
   dev-ruby/maruku-0.7.3 requires dev-lang/ruby:2.1
  dev-ruby/minitest-5.10.3 requires
  dev-lang/ruby:2.1
  dev-ruby/net-telnet-0.1.1-r1 requires dev-lang/ruby:2.1
 dev-ruby/power_assert-1.0.2 requires dev-lang/ruby:2.1
dev-ruby/racc-1.4.14 requires dev-lang/ruby:2.1
dev-ruby/rake-12.0.0 requires dev-lang/ruby:2.1
   dev-ruby/rdoc-5.1.0 requires dev-lang/ruby:2.1
  dev-ruby/rubygems-2.6.12 requires
  dev-lang/ruby:2.1
  dev-ruby/test-unit-3.2.5 requires dev-lang/ruby:2.1
 dev-ruby/yard-0.9.8 requires dev-lang/ruby:2.1
virtual/rubygems-13 requires dev-lang/ruby:2.1
virtual/rubygems-7 requires dev-lang/ruby:2.1

I tried a word ld update, but it didn't update any of those packages
-- any ideas of how to fix?

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] Re: ruby 22

2017-08-22 Thread John Covici
On Tue, 22 Aug 2017 02:58:31 -0400,
Raffaele Belardi wrote:
> 
> On Mon, 2017-08-21 at 22:21 -0400, John Covici wrote:
> > On Mon, 21 Aug 2017 21:20:04 -0400,
> > Alec Ten Harmsel wrote:
> > > 
> > I deleted RUBYTARGETS from make.conf, ran eselect to make ruby22 the
> > default, but when I ran emerge --depclean I still have packages
> > pulling ruby21 as follows:
> > 
> > Calculating dependencies  .. . done!
> >   dev-lang/ruby-2.1.10 pulled in by:
> >   dev-ruby/hoe-3.13.0 requires dev-lang/ruby:2.1
> >  dev-ruby/json-1.8.3 requires dev-lang/ruby:2.1
> > dev-ruby/json-2.1.0 requires dev-lang/ruby:2.1
> > dev-ruby/kpeg-1.1.0 requires dev-lang/ruby:2.1
> >dev-ruby/maruku-0.7.3 requires dev-
> > lang/ruby:2.1
> >   dev-ruby/minitest-5.10.3 requires
> >   dev-lang/ruby:2.1
> >   dev-ruby/net-telnet-0.1.1-r1 requires dev-lang/ruby:2.1
> >  dev-ruby/power_assert-1.0.2 requires dev-lang/ruby:2.1
> > dev-ruby/racc-1.4.14 requires dev-lang/ruby:2.1
> > dev-ruby/rake-12.0.0 requires dev-lang/ruby:2.1
> >dev-ruby/rdoc-5.1.0 requires dev-
> > lang/ruby:2.1
> >   dev-ruby/rubygems-2.6.12 requires
> >   dev-lang/ruby:2.1
> >   dev-ruby/test-unit-3.2.5 requires dev-lang/ruby:2.1
> >  dev-ruby/yard-0.9.8 requires dev-lang/ruby:2.1
> > virtual/rubygems-13 requires dev-lang/ruby:2.1
> > virtual/rubygems-7 requires dev-lang/ruby:2.1
> > 
> > I tried a word ld update, but it didn't update any of those packages
> > -- any ideas of how to fix?
> 
> Did you do an emerge @preserved-rebuild? I had the a similar problem
> but only for a couple of packages (racc and another one), it was
> quickly fixed that way. But I never had RUBY_TARGETS set so maybe YMMV.
There are no libraries listed for rebuilding, emerge
@preserved-rebuild says 0 packages.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] Re: ruby 22

2017-08-22 Thread Alec Ten Harmsel
On Tue, Aug 22, 2017 at 07:57:39AM -0400, John Covici wrote:
> > 
> > I deleted RUBYTARGETS from make.conf, ran eselect to make ruby22 the
> > default, but when I ran emerge --depclean I still have packages
> > pulling ruby21 as follows:
> > 
> > Calculating dependencies  .. . done!
> >   dev-lang/ruby-2.1.10 pulled in by:
> >   dev-ruby/hoe-3.13.0 requires dev-lang/ruby:2.1
> >   dev-ruby/json-1.8.3 requires dev-lang/ruby:2.1
> >   dev-ruby/json-2.1.0 requires dev-lang/ruby:2.1
> >   dev-ruby/kpeg-1.1.0 requires dev-lang/ruby:2.1
> >   dev-ruby/maruku-0.7.3 requires dev-lang/ruby:2.1
> >   dev-ruby/minitest-5.10.3 requires
> >   dev-lang/ruby:2.1
> >   dev-ruby/net-telnet-0.1.1-r1 requires dev-lang/ruby:2.1
> >   dev-ruby/power_assert-1.0.2 requires dev-lang/ruby:2.1
> >   dev-ruby/racc-1.4.14 requires dev-lang/ruby:2.1
> >   dev-ruby/rake-12.0.0 requires dev-lang/ruby:2.1
> >   dev-ruby/rdoc-5.1.0 requires dev-lang/ruby:2.1
> >   dev-ruby/rubygems-2.6.12 requires
> >   dev-lang/ruby:2.1
> >   dev-ruby/test-unit-3.2.5 requires dev-lang/ruby:2.1
> >   dev-ruby/yard-0.9.8 requires dev-lang/ruby:2.1
> >   virtual/rubygems-13 requires dev-lang/ruby:2.1
> >   virtual/rubygems-7 requires dev-lang/ruby:2.1
> > 
> > I tried a word ld update, but it didn't update any of those packages
> > -- any ideas of how to fix?
> > 
> 
> I use the following arguments when I run updates:
> --update --deep --with-bdeps=y --changed-use --backtrack=120
> --keep-goingworld
> 
> Do I need to use new-use instead?

I'm not sure; I always use new-use. If you haven't synced and updated recently,
you may have issues as the default profiles still had ruby-2.1 listed in
them.

Alec



Re: [gentoo-user] ruby scripts for amarok won't run anymore

2007-04-17 Thread Dirk Heinrichs
Am Dienstag, 17. April 2007 schrieb ext Nistor Andrei:
 Hi, after an emerge --depclean I noticed none of the ruby scripts work
 anymore. I get this error: ruby: no such file to load -- auto_gem
 (LoadError)

 Does anyone know how this can be fixed?

(re-)emerge rubygems.

HTH...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: [EMAIL PROTECTED]
Wanheimerstraße 68  | Web:  http://www.capgemini.com
D-40468 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: finding qt plugins?

2009-06-30 Thread Roy Wright


On Jun 30, 2009, at 3:16 PM, Paul Hartman wrote:


On Tue, Jun 30, 2009 at 2:54 PM, Roy Wrightr...@wright.org wrote:

== Installation

$ emerge ruby rubygems
$ sudo gem install royw-qt-rebuild --source http://gems.github.com


Hi,

$ sudo gem install royw-qt-rebuild --source http://gems.github.com
ERROR:  could not find gem royw-qt-rebuild locally or in a repository

I know nothing about ruby or gems. Any idea what I'm missing?

Thanks.



I was a little premature in posting the announcement, github takes a  
while
to actually publish the gem.  But there is another problem so please  
wait

for my next message before trying again.

Thank you,
Roy



[gentoo-user] Re: RUBY_TARGETS and eselect ruby

2013-12-31 Thread Hans de Graaff
On Mon, 30 Dec 2013 18:25:38 +0400, Pavel Volkov wrote:

 I currently set my RUBY_TARGETS in make.conf to:
 RUBY_TARGETS=ruby20 ruby21
 
 World is updated.
 
 But ruby21 profile can't be selected with eselect:
 $ eselect ruby list Available Ruby profiles:
   [1]   ruby20 (with Rubygems) *
 
 If I remove ruby20 from RUBY_TARGETS, there would be no profiles left.

Because we haven't gotten around to that yet. Also note that only a few 
packages currently have ruby21 support, so eselecting it right now is not 
very useful yet.

We should be updating the ruby eselect module in the next week or so.

Hans




[gentoo-user] Why I'm unable to run Vagrant as non-root user?

2017-10-07 Thread Hubert Hauser
I've installed Vagrant in Gentoo from repository. I'm using Ruby 2.2.8.
I've got following error when I was tried run Vagrant as non-root user:

    pecan@tux ~ $ vagrant
   
/usr/lib64/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in
`require': cannot load such file -- checkpoint (LoadError)
    from
/usr/lib64/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
    from
/usr/lib64/ruby/gems/2.2.0/gems/vagrant-1.9.8/lib/vagrant/environment.rb:7:in
`'
    from
/usr/lib64/ruby/gems/2.2.0/gems/vagrant-1.9.8/bin/vagrant:118:in `'

The result of `ruby
/usr/lib64/ruby/gems/2.2.0/gems/vagrant-2.0.0/bin/vagrant`:

    pecan@tux ~ $ ruby
/usr/lib64/ruby/gems/2.2.0/gems/vagrant-2.0.0/bin/vagrant
   
/usr/lib64/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in
`require': cannot load such file -- log4r (LoadError)
    from
/usr/lib64/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
    from
/usr/lib64/ruby/gems/2.2.0/gems/vagrant-2.0.0/bin/vagrant:61:in `'

The result of `sudo vagrant`:

    pecan@tux ~ $ sudo vagrant
    Usage: vagrant [options]  []
   
    -v, --version    Print the version and exit.
    -h, --help   Print this help.
   
    Common commands:
 box manages boxes: installation, removal, etc.
 destroy stops and deletes all traces of the vagrant machine
 global-status   outputs status Vagrant environments for this user
 halt    stops the vagrant machine
 help    shows the help for a subcommand
 init    initializes a new Vagrant environment by
creating a Vagrantfile
 login   log in to HashiCorp's Vagrant Cloud
 package packages a running vagrant environment into a box
 plugin  manages plugins: install, uninstall, update, etc.
 port    displays information about guest port mappings
 powershell  connects to machine via powershell remoting
 provision   provisions the vagrant machine
 push    deploys code in this environment to a
configured destination
 rdp connects to machine via RDP
 reload  restarts vagrant machine, loads new Vagrantfile
configuration
 resume  resume a suspended vagrant machine
 snapshot    manages snapshots: saving, restoring, etc.
 ssh connects to machine via SSH
 ssh-config  outputs OpenSSH valid configuration to connect
to the machine
 status  outputs status of the vagrant machine
 suspend suspends the machine
 up  starts and provisions the vagrant environment
 validate    validates the Vagrantfile
 version prints current and latest Vagrant version
   
    For help on any individual command run `vagrant COMMAND -h`
   
    Additional subcommands are available, but are either more advanced
    or not commonly used. To see all subcommands, run the command
    `vagrant list-commands`.

I'm using the system Ruby. As you can see Vagrant with sudo works but
I've question why I'm unable to run Vagrant as non-root user? What
should I do to be able run Vagrant as non-root user?

I'm counting for help.




[gentoo-user] emerge @preserved-rebuild failure

2018-01-06 Thread Hartmut Figge
Greetings,

Mostly stable Gentoo. After having fun with linguas *g*

!!! existing preserved libs found
i5-64 /home/hafi # emerge -q @preserved-rebuild

emerge: there are no ebuilds to satisfy "dev-lang/ruby:2.1".
(dependency required by "@preserved-rebuild" [argument])

[?] dev-lang/ruby
 Available versions:
 (2.2)  2.2.8 2.2.9
 (2.3)  ~2.3.5 ~2.3.6
 (2.4)  ~2.4.2 ~2.4.3
 (2.5)  ~2.5.0 ~2.5.0-r1

hafi@i5-64 ~ $ eselect profile show
Current /etc/make.profile symlink:
  default/linux/amd64/17.0
hafi@i5-64 ~ $ eselect ruby show
Current Ruby version:
  ruby22
Current Rubygems version:
  gem22

Bug?

Hartmut




Re: [gentoo-user] reflexive dependencies?

2021-02-04 Thread n952162

On 2/4/21 9:24 PM, Matt Connell (Gmail) wrote:

On Thu, 2021-02-04 at 20:49 +0100, n952162 wrote:

Is this ok?  It's stopped my update in its tracks:

/var/tmp/portage/dev-ruby/bundler-2.1.4/temp/environment: line 663:
rdoc: command not found

Emerging rdoc fails because it tries to emerge bundler...


I encountered this as well.  I needed to use "eselect ruby" to pick a
new ruby profile.  Once I selected 2.6 (with Rubygems), I was able to
finish the emerge process.




That did the trick.  Thank you.




Re: [gentoo-user] USE ruby_targets_ruby20

2013-11-15 Thread Chris Stankevitz
On Fri, Nov 15, 2013 at 5:33 AM, Tanstaafl tansta...@libertytrek.org wrote:
 The new ebuild thin-provisioning-tools-0.2.8-r1 reflects this. So if you
 update to this version and don't use FEATURES=test it should not pull
 in ruby anymore.

 I don't have FEATURES=test and it still wants to pull all the ruby crap
 in...

Me too.  I do not specify FEATURES=test and
thin-provisioning-tools-0.2.8 still wants dev-lang/ruby-2.0.0_p247-r1:

FEATURES=assume-digests binpkg-logs config-protect-if-modified
distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch
preserve-libs protect-owned sandbox sfperms splitdebug strict
unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv
usersandbox usersync

=dev-ruby/rdoc-4.0.1-r1 ruby_targets_ruby20
# required by dev-ruby/rdoc-4.0.1-r1[ruby_targets_ruby20]
# required by dev-lang/ruby-1.9.3_p448[rdoc]
# required by dev-ruby/rubygems-2.0.3[ruby_targets_ruby19]
# required by virtual/rubygems-4
# required by dev-ruby/rake-0.9.6[-test,ruby_targets_ruby19]
# required by dev-ruby/json-1.8.0[-test,-doc,ruby_targets_ruby18]
# required by dev-lang/ruby-2.0.0_p247-r1
# required by sys-block/thin-provisioning-tools-0.2.8

Chris



Re: [gentoo-user] Re: ruby 22

2017-08-22 Thread Neil Bothwick
RUBY_TARGET Is an expanded use flag so ypu need to run emerge - - update - - 
newuse @world to apply the change. The depclean should work, 
Just check for stray ruby settings in /etc/portage. 

On 22 August 2017 05:21:23 EEST, John Covici <cov...@ccs.covici.com> wrote:
>On Mon, 21 Aug 2017 21:20:04 -0400,
>Alec Ten Harmsel wrote:
>> 
>> 
>> On 08/21/2017 10:13 AM, allan gottlieb wrote:
>> > 
>> > I issued emerge --pretend --verbose --depclean =ruby-2.1.9
>> > and the response was
>> > 
>> >   dev-lang/ruby
>> >  selected: 2.1.9
>> > protected: none
>> >   omitted: 2.2.6
>> > 
>> > Am I correct in believing it is now safe to issue
>> > 
>> >emerge --depclean =ruby-2.1.9
>> > 
>> > thanks,
>> > allan
>> > 
>> 
>> Yes, that should be fine. I rarely look at portage output and
>> just run `emerge -uDN @world' and `emerge --depclean' right after
>> one another, and it always works fine for ruby/python upgrades.
>> 
>> The devs have done such a good job in general that I haven't had
>> any problems just running these commands the past couple years.
>
>I deleted RUBYTARGETS from make.conf, ran eselect to make ruby22 the
>default, but when I ran emerge --depclean I still have packages
>pulling ruby21 as follows:
>
>Calculating dependencies  .. . done!
>  dev-lang/ruby-2.1.10 pulled in by:
>  dev-ruby/hoe-3.13.0 requires dev-lang/ruby:2.1
>dev-ruby/json-1.8.3 requires dev-lang/ruby:2.1
>   dev-ruby/json-2.1.0 requires dev-lang/ruby:2.1
>   dev-ruby/kpeg-1.1.0 requires dev-lang/ruby:2.1
>  dev-ruby/maruku-0.7.3 requires dev-lang/ruby:2.1
> dev-ruby/minitest-5.10.3 requires
>  dev-lang/ruby:2.1
>  dev-ruby/net-telnet-0.1.1-r1 requires dev-lang/ruby:2.1
>dev-ruby/power_assert-1.0.2 requires dev-lang/ruby:2.1
>   dev-ruby/racc-1.4.14 requires dev-lang/ruby:2.1
>   dev-ruby/rake-12.0.0 requires dev-lang/ruby:2.1
>  dev-ruby/rdoc-5.1.0 requires dev-lang/ruby:2.1
>     dev-ruby/rubygems-2.6.12 requires
>  dev-lang/ruby:2.1
>  dev-ruby/test-unit-3.2.5 requires dev-lang/ruby:2.1
>dev-ruby/yard-0.9.8 requires dev-lang/ruby:2.1
>   virtual/rubygems-13 requires dev-lang/ruby:2.1
>   virtual/rubygems-7 requires dev-lang/ruby:2.1
>
>I tried a word ld update, but it didn't update any of those packages
>-- any ideas of how to fix?
>
>-- 
>Your life is like a penny.  You're going to lose it.  The question is:
>How do
>you spend it?
>
> John Covici
> cov...@ccs.covici.com


In -- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Re: [gentoo-user] Re: ruby 22

2017-08-22 Thread John Covici
On Tue, 22 Aug 2017 05:16:55 -0400,
Neil Bothwick wrote:
> 
> [1  ]
> [2  ]
> RUBY_TARGET Is an expanded use flag so ypu need to run emerge - - update - - 
> newuse @world to apply the change. The depclean should work, 
> Just check for stray ruby settings in /etc/portage. 
> 
> On 22 August 2017 05:21:23 EEST, John Covici <cov...@ccs.covici.com> wrote:
> 
>  On Mon, 21 Aug 2017 21:20:04 -0400,
> Alec Ten Harmsel wrote:
> 
>   
> 
>  On 08/21/2017 10:13 AM, allan gottlieb wrote:
> 
>   
>  I issued emerge --pretend --verbose --depclean =ruby-2.1.9
>  and the response was
> 
>dev-lang/ruby
>   selected: 2.1.9
>  protected: none
>omitted: 2.2.6
> 
>  Am I correct in believing it is now safe to issue
> 
> emerge --depclean =ruby-2.1.9
> 
>  thanks,
>  allan
> 
>  
>  Yes, that should be fine. I rarely look at portage output and
>  just run `emerge -uDN @world' and `emerge --depclean' right after
>  one another, and it always works fine for ruby/python upgrades.
> 
>  The devs have done such a good job in general that I haven't had
>  any problems just running these commands the past couple years.
> 
> I deleted RUBYTARGETS from make.conf, ran eselect to make ruby22 the
> default, but when I ran emerge --depclean I still have packages
> pulling ruby21 as follows:
> 
> Calculating dependencies  .. . done!
>   dev-lang/ruby-2.1.10 pulled in by:
>   dev-ruby/hoe-3.13.0 requires dev-lang/ruby:2.1
>   dev-ruby/json-1.8.3 requires dev-lang/ruby:2.1
>   dev-ruby/json-2.1.0 requires dev-lang/ruby:2.1
>   dev-ruby/kpeg-1.1.0 requires dev-lang/ruby:2.1
>   dev-ruby/maruku-0.7.3 requires dev-lang/ruby:2.1
>   dev-ruby/minitest-5.10.3 requires
>   dev-lang/ruby:2.1
>   dev-ruby/net-telnet-0.1.1-r1 requires dev-lang/ruby:2.1
>   dev-ruby/power_assert-1.0.2 requires dev-lang/ruby:2.1
>   dev-ruby/racc-1.4.14 requires dev-lang/ruby:2.1
>   dev-ruby/rake-12.0.0 requires dev-lang/ruby:2.1
>   dev-ruby/rdoc-5.1.0 requires dev-lang/ruby:2.1
>   dev-ruby/rubygems-2.6.12 requires
>   dev-lang/ruby:2.1
>   dev-ruby/test-unit-3.2.5 requires dev-lang/ruby:2.1
>   dev-ruby/yard-0.9.8 requires dev-lang/ruby:2.1
>   virtual/rubygems-13 requires dev-lang/ruby:2.1
>   virtual/rubygems-7 requires dev-lang/ruby:2.1
> 
> I tried a word ld update, but it didn't update any of those packages
> -- any ideas of how to fix?
> 

I use the following arguments when I run updates:
--update --deep --with-bdeps=y --changed-use --backtrack=120
--keep-goingworld

Do I need to use new-use instead?

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



[gentoo-user] Ruby problems

2021-04-20 Thread Peter Humphrey
Hello list,

Has anyone here succeeded in building a new system since the recent Ruby 
language upgrade? I keep being thwarted by failure such as this typical one:

>>> Install dev-ruby/rake-13.0.3-r1 into /var/tmp/portage/dev-ruby/
rake-13.0.3-r1/image
 * Running install phase for ruby26 ...
 * Running install phase for ruby27 ...
Traceback (most recent call last):
3: from :1:in `'
2: from :1:in `require'
1: from /usr/lib64/ruby/2.7.0/rubygems.rb:16:in `'
/usr/lib64/ruby/2.7.0/rubygems.rb:16:in `require': cannot load such file -- 
rubygems/compatibility (LoadError)
 * ERROR: dev-ruby/rake-13.0.3-r1::gentoo failed (install phase):
 *   Unable to generate gemspec file.

Similar failures occur whatever profile I use (of the suitable ones), and no 
matter whether I set amd64 or ~amd64 in make.conf.

It's possible that I had some unhelpful USE flags set, I suppose, but I did try 
to minimise them.

In the end I went back to a month-old backup and updated that instead.

-- 
Regards,
Peter.






[gentoo-user] ruby problem preventing my world update

2021-02-14 Thread John Covici
Hi.  In trying to do my world update today, I have run into some kind
of ruby problem.

When doing the update portage had me add changes, seems mostly to do
with add ruby 3.0 as a ruby_target.  Now, I get the following at the
end of my world update log

>>> Emerging (57 of 237) dev-ruby/racc-1.5.2-r1::gentoo
 * racc-1.5.2.tar.gz BLAKE2B SHA512 size ;-) ...

 [ ok ]
>>> Unpacking source...
 * Running unpack phase for all ...
>>> Unpacking racc-1.5.2.tar.gz to 
>>> /var/tmp/portage/dev-ruby/racc-1.5.2-r1/work/all
>>> Source unpacked in /var/tmp/portage/dev-ruby/racc-1.5.2-r1/work
>>> Preparing source in /var/tmp/portage/dev-ruby/racc-1.5.2-r1/work ...
 * Running prepare phase for all ...
 * Running prepare phase for all ...
Traceback (most recent call last):
3: from :2:in `'
2: from :2:in `require'
1: from /usr/lib64/ruby/2.5.0/rubygems.rb:17:in `'
/usr/lib64/ruby/2.5.0/rubygems.rb:17:in `require': cannot load such file -- 
rubygems/compatibility (LoadError)
 * ERROR: dev-ruby/racc-1.5.2-r1::gentoo failed (prepare phase):
 *   (no error message)
 * 
 * Call stack:
 * ebuild.sh, line  125:  Called src_prepare
 *   environment, line 2205:  Called ruby-ng_src_prepare
 *   environment, line 1861:  Called _ruby_invoke_environment 'all' 
'_ruby_apply_patches'
 *   environment, line  717:  Called _ruby_apply_patches
 *   environment, line  552:  Called all_ruby_prepare
 *   environment, line  817:  Called die
 * The specific snippet of code:
 *   rake lib/racc/parser-text.rb || die;
 * 
 * If you need support, post the output of `emerge --info 
'=dev-ruby/racc-1.5.2-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv 
'=dev-ruby/racc-1.5.2-r1::gentoo'`.
 * The complete build log is located at 
'/var/log/portage/dev-ruby:racc-1.5.2-r1:20210214-164845.log'.
 * For convenience, a symlink to the build log is located at 
'/var/tmp/portage/dev-ruby/racc-1.5.2-r1/temp/build.log'.
 * The ebuild environment file is located at 
'/var/tmp/portage/dev-ruby/racc-1.5.2-r1/temp/environment'.
 * Working directory: 
'/var/tmp/portage/dev-ruby/racc-1.5.2-r1/work/all/racc-1.5.2'
 * S: '/var/tmp/portage/dev-ruby/racc-1.5.2-r1/work/all/racc-1.5.2'

>>> Failed to emerge dev-ruby/racc-1.5.2-r1, Log file:

>>>  '/var/log/portage/dev-ruby:racc-1.5.2-r1:20210214-164845.log'
*** Resuming merge...

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

Calculating dependencies  . done!
 * One or more packages are either masked or have missing dependencies:
 * 
 *   >=dev-ruby/minitest-5.10.3[ruby_targets_ruby25] pulled in by:
 * (dev-lang/ruby-2.5.8-r1:2.5/2.5::gentoo, installed)
 * 
 *   >=dev-ruby/bundler-2.1.4[ruby_targets_ruby30] pulled in by:
 * (dev-lang/ruby-3.0.0-r1:3.0/3.0::gentoo, installed)
 * 
 *   virtual/rubygems[ruby_targets_ruby25(-)] pulled in by:
 * (dev-ruby/bundler-2.2.4:2/2::gentoo, installed)
 * 
 *   virtual/rubygems[ruby_targets_ruby25(-)] pulled in by:
 * (dev-ruby/did_you_mean-1.2.1:2.5/2.5::gentoo, installed)
 * 
 *   virtual/ruby-ssl[ruby_targets_ruby25(-)] pulled in by:
 * (dev-ruby/racc-1.5.2:0/0::gentoo, installed)
 * 
 *   virtual/rubygems[ruby_targets_ruby25(-)] pulled in by:
 * (dev-ruby/rdoc-6.3.0:0/0::gentoo, installed)
 * 
 * The resume list contains packages that are either masked or have
 * unsatisfied dependencies. Please restart/continue the operation
 * manually, or use --skipfirst to skip the first package in the list and
 * any other packages that may be masked or have missing dependencies.
 * 
 * The following package has failed to build, install, or execute postinst:
 * 
 *  (dev-ruby/racc-1.5.2-r1:0/0::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/log/portage/dev-ruby:racc-1.5.2-r1:20210214-164845.log'

I tried to emerge dev-ruby/racc, after re-installing
dev-ruby/rubygens, but no joy.

How can I proceed?

Thanks in advance for any suggestions.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici wb2una
 cov...@ccs.covici.com



Re: [gentoo-user] Jekyll on Gentoo using containers

2023-08-30 Thread Michael Orlitzky
On Wed, 2023-08-30 at 11:51 +0100, Peter Humphrey wrote:
> 
> Can you point me to that file (privately if you prefer)? I've had a look 
> around 
> and it doesn't reveal itself.

https://github.com/gentoo-ev/www.gentoo.de/blob/master/Dockerfile


> 
> > It builds a static site so you can open the resulting HTML right in
> > your browser without setting up a whole ass web server.
> 
> That's the attraction of Jekyll. The snag is that I can't install a Jekyll 
> theme without giving myself wholesale privileges over the Gentoo installation 
> of Ruby.

After you've installed jekyll, you should have rubygems available on
your system. Running

  gem install 

will install  to your /.local/share/gem/ruby directory and make
it available to whatever version of ruby you ran the command with. I
tried it with "jekyll-theme-minimal" and it looks like it worked, but I
didn't go so far as to build a website with it.




Re: [gentoo-user] Jekyll on Gentoo using containers

2023-08-31 Thread Peter Humphrey
On Wednesday, 30 August 2023 14:59:17 BST Michael Orlitzky wrote:
> On Wed, 2023-08-30 at 11:51 +0100, Peter Humphrey wrote:
> > Can you point me to that file (privately if you prefer)? I've had a look
> > around and it doesn't reveal itself.
> 
> https://github.com/gentoo-ev/www.gentoo.de/blob/master/Dockerfile

Ah. I'd never have found that - thanks!

...>8

> After you've installed jekyll, you should have rubygems available on
> your system. Running
> 
>   gem install 
> 
> will install  to your /.local/share/gem/ruby directory and make
> it available to whatever version of ruby you ran the command with. I
> tried it with "jekyll-theme-minimal" and it looks like it worked, but I
> didn't go so far as to build a website with it.

That does indeed seem to work - thanks again!

I've had to interpret a few things I'd found on the Web, including a .bashrc 
snippet to include the gems directory in my $PATH; I've set it like this:

export GEM_HOME="$HOME/.local/share/gem/ruby"
export PATH="$HOME/.local/share/gem/ruby/bin:$PATH"

Now for the spade-work!

-- 
Regards,
Peter.






Re: [gentoo-user] Jekyll on Gentoo using containers

2023-08-31 Thread Peter Humphrey
I remember replying to this, but I can't find the reply anywhere. Did it get to 
the list?

On Wednesday, 30 August 2023 14:59:17 BST Michael Orlitzky wrote:
> On Wed, 2023-08-30 at 11:51 +0100, Peter Humphrey wrote:
> > Can you point me to that file (privately if you prefer)? I've had a look
> > around and it doesn't reveal itself.
> 
> https://github.com/gentoo-ev/www.gentoo.de/blob/master/Dockerfile
> 
> > > It builds a static site so you can open the resulting HTML right in
> > > your browser without setting up a whole ass web server.
> > 
> > That's the attraction of Jekyll. The snag is that I can't install a Jekyll
> > theme without giving myself wholesale privileges over the Gentoo
> > installation of Ruby.
> 
> After you've installed jekyll, you should have rubygems available on
> your system. Running
> 
>   gem install 
> 
> will install  to your /.local/share/gem/ruby directory and make
> it available to whatever version of ruby you ran the command with. I
> tried it with "jekyll-theme-minimal" and it looks like it worked, but I
> didn't go so far as to build a website with it.


-- 
Regards,
Peter.






[gentoo-user] Error when emerging ruby

2005-05-31 Thread Michael =?iso-8859-1?q?M=FCller?=
Hi!

I have the following problem when I try to emerge ruby.
The build fails with:
-
i686-pc-linux-gnu-gcc -shared -Wl,-soname,libruby18.so.1.8   array.o
bignum.o class.o compar.o dir.o dln.o enum.o error.o eval.o file.o gc.o
hash.o inits.o io.o marshal.o math.o numeric.o object.o pack.o parse.o
process.o prec.o random.o range.o re.o regex.o ruby.o signal.o sprintf.o
st.o string.o struct.o time.o util.o variable.o version.o  dmyext.o -ldl
-lcrypt -lm   -o libruby18.so.1.8.2
./miniruby: No such file to load -- ubygems (LoadError)
make: *** [rbconfig.rb] Fehler 1
make: *** Warte auf noch nicht beendete Prozesse...
./miniruby: No such file to load -- ubygems (LoadError)
make: *** Warte auf noch nicht beendete Prozesse...
-

I have no clue why he prints out the line
./miniruby: No such file to load -- ubygems (LoadError)

Obviously this has something to do with the rubygems (the above is no type
error - the r is missing!) which I had installed some time ago but did
unmerge...

Any ideas?

Michael
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: finding qt plugins?

2009-06-30 Thread Roy Wright


On Jun 30, 2009, at 4:41 PM, Roy Wright wrote:



On Jun 30, 2009, at 3:16 PM, Paul Hartman wrote:


On Tue, Jun 30, 2009 at 2:54 PM, Roy Wrightr...@wright.org wrote:

== Installation

$ emerge ruby rubygems
$ sudo gem install royw-qt-rebuild --source http://gems.github.com


Hi,

$ sudo gem install royw-qt-rebuild --source http://gems.github.com
ERROR:  could not find gem royw-qt-rebuild locally or in a repository

I know nothing about ruby or gems. Any idea what I'm missing?

Thanks.



I was a little premature in posting the announcement, github takes a  
while
to actually publish the gem.  But there is another problem so please  
wait

for my next message before trying again.

Thank you,
Roy



OK, it's verified and ready now.  Please try again.

Thank you,
Roy




[gentoo-user] Re: RUBYOPT=-rauto_gem

2012-01-16 Thread Hans de Graaff
On Sun, 15 Jan 2012 22:21:30 -0800, Hilco Wijbenga wrote:

 On 15 January 2012 18:21, Michael Orlitzky mich...@orlitzky.com wrote:
 On 01/15/2012 05:24 PM, Hilco Wijbenga wrote:

 Hi all,

 The dev-ruby/rubygems ebuild adds -rauto_gem to the global RUBYOPT.
 This breaks my own scripts so I have removed it from /etc/env.d. So
 far, so good.

 Try asking on the -dev list, or filing a bug. They'll just close it if
 it's considered invalid.

Agree, if things are broken then please file a bug.

 We have too many open bugs already so I'll wait until (hopefully) I see
 a few more responses before I file a bug. That way there's less chance
 of an invalid bug and I may save some valuable dev time.

If you want to help us then open a bug so there can be a focused 
discussion, especially if things are broken. If you really want to help 
us then participate in the bugs and help us close them :-)

Kind regards,

Hans




[gentoo-user] Re: RUBY_TARGETS and eselect ruby

2014-03-05 Thread Hans de Graaff
On Fri, 21 Feb 2014 09:32:03 +, Svoop wrote:

 Hans de Graaff graaff at gentoo.org writes:
 Because we haven't gotten around to that yet. Also note that only a few
 packages currently have ruby21 support, so eselecting it right now is
 not very useful yet.
 We should be updating the ruby eselect module in the next week or so.
 
 Any news on this?
 
 Like Pavel the only related packages are rubygems, rake and friends
 since it's a pretty minimalistic box serving a Rails app which we are
 lifting to Ruby 2.1 next week.
 
 Support for ruby21 in eselect would be great, thanks a bunch!

eselect-ruby-20131227 has support for eselecting ruby21. It has been 
around since Jan 4th. Progress on ruby21 marking of packages has been 
slow but steady.

Hans




Re: [gentoo-user] Brother Printer

2016-12-09 Thread Bertram Scharpf
On Friday, 09. Dec 2016, 11:16:18 +0100, siefke_lis...@web.de wrote:
> On Thu, 8 Dec 2016 22:02:51 +0100
> Bertram Scharpf <li...@bertram-scharpf.de> wrote:
> 
> > I have a Brother MFC 7420. Yet, it's not connected to my
> > Gentoo but to a FreeBSD box. There, I completely ignored the
> > recommended drivers. I configured lpd (/etc/printcap) to
> > first pipe the PostScript/PDF documents through a
> > Ghostscript command.
> > 
> > Then I wrap around this a simple self-written PJL frame.
> > 
> > You can have my PJL generator if you want (It's in Ruby).
> 
> Yes thanks if you like to share. 

Say something like

  $ sudo gem install pjl

or first examine it on <https://github.com/BertramScharpf/ruby-pjl>.

There's a small dependency on a gem "appl" that's also
available on RubyGems and on my Github page.

However, to the present day I did not manage to make the
scanner work on FreeBSD. I plug it into a Linux machine
before I scan.

Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de



Re: [gentoo-user] Re: Is it that hard to add a package, or am I doing wrong?

2018-12-20 Thread Michael Orlitzky

On 12/20/18 10:25 AM, YUE Daian wrote:


Did anyone ever considered using GitLab?
Its community edition is quiet enough I think.



Yes, but there's a small problem: we would need to run our own instance 
of Gitlab to prevent some of the same problems that exist with Github 
(like losing all of our data if they go out of business).


The "run your own" version of Gitlab is a bit of a nightmare, being 
built with Ruby on Rails. It has a million dependencies, many of which 
are hard to package because rubygems/bundler are awful and encourage 
worst practices. Gitlab upstream expects you to run a version that 
bundles everything it uses.


What's the security strategy for something with a million bundled 
libraries? There is none, which makes following their advice pretty 
irresponsible, too.


For all its flaws, BugZilla is pretty stable software that uses stable 
libraries in an ecosystem inhabited by adults. Our infra team are all 
volunteers, too -- so we need an alternative that isn't way more work 
for them to run.




[gentoo-user] rubygems-1.9.1 error

2014-03-24 Thread Mick
I have been chasing my tail with ruby tonight.

The masking of ruby18 meant that I had to unmerge a lot of ruby packages and 
then portage chose what to merge afresh.  All good to go I thought until 
this was error showed up:
==
 Emerging (1 of 9) dev-ruby/rake-0.9.6
 * rake-0.9.6.gem SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
 Unpacking source...
 * Running unpack phase for all ...
 * Unpacking .gem file... ...  [ ok ]
 * Uncompressing metadata ...  [ ok ]
 * Unpacking data.tar.gz ...   [ ok ]
 Source unpacked in /var/tmp/portage/dev-ruby/rake-0.9.6/work
 Preparing source in /var/tmp/portage/dev-ruby/rake-0.9.6/work ...
 * Running prepare phase for all ...

gzip: doc/rake.1.gz: unexpected end of file
 * Running source copy phase for ruby19 ...
 * Running source copy phase for ruby20 ...
 * Running prepare phase for ruby19 ...
 * Running prepare phase for ruby20 ...
 Source prepared.
 Configuring source in /var/tmp/portage/dev-ruby/rake-0.9.6/work ...
 Source configured.
 Compiling source in /var/tmp/portage/dev-ruby/rake-0.9.6/work ...
 * Running compile phase for all ...
 Source compiled.
 Test phase [not enabled]: dev-ruby/rake-0.9.6

 Install rake-0.9.6 into /var/tmp/portage/dev-ruby/rake-0.9.6/image/ 
category dev-ruby
 * Running install phase for ruby19 ...
/usr/lib64/ruby/1.9.1/rubygems.rb:30:in `require': cannot load such file -- 
rubygems/defaults (LoadError)
from /usr/lib64/ruby/1.9.1/rubygems.rb:30:in `top (required)'
from internal:gem_prelude:1:in `require'
from internal:gem_prelude:1:in `compiled'
 * ERROR: dev-ruby/rake-0.9.6::gentoo failed (install phase):
 *   Unable to generate gemspec file.
 * 
 * Call stack:
 * ebuild.sh, line   93:  Called src_install
 *   environment, line 4316:  Called ruby-ng_src_install
 *   environment, line 3978:  Called _ruby_each_implementation 
'each_ruby_install'
 *   environment, line  449:  Called _ruby_invoke_environment 'ruby19' 
'each_ruby_install'
 *   environment, line  501:  Called each_ruby_install
 *   environment, line  802:  Called each_fakegem_install
 *   environment, line  775:  Called ruby_fakegem_install_gemspec
 *   environment, line 4159:  Called die
 * The specific snippet of code:
 *   fi ) || die Unable to generate gemspec file.;
==

The missing file is there, I think:

# ls -la /usr/lib64/ruby/1.9.1/rubygems.rb
-rw-r--r-- 1 root root 34951 Apr 20  2012 /usr/lib64/ruby/1.9.1/rubygems.rb

What now?

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: ruby 22

2017-08-22 Thread Dale
John Covici wrote:
> On Tue, 22 Aug 2017 05:16:55 -0400,
> Neil Bothwick wrote:
>> [1  ]
>> [2  ]
>> RUBY_TARGET Is an expanded use flag so ypu need to run emerge - - update - - 
>> newuse @world to apply the change. The depclean should work, 
>> Just check for stray ruby settings in /etc/portage. 
>>
>> On 22 August 2017 05:21:23 EEST, John Covici <cov...@ccs.covici.com> wrote:
>>
>>  On Mon, 21 Aug 2017 21:20:04 -0400,
>> Alec Ten Harmsel wrote:
>>
>>   
>>
>>  On 08/21/2017 10:13 AM, allan gottlieb wrote:
>>
>>   
>>  I issued emerge --pretend --verbose --depclean =ruby-2.1.9
>>  and the response was
>>
>>dev-lang/ruby
>>   selected: 2.1.9
>>  protected: none
>>omitted: 2.2.6
>>
>>  Am I correct in believing it is now safe to issue
>>
>> emerge --depclean =ruby-2.1.9
>>
>>  thanks,
>>  allan
>>
>>  
>>  Yes, that should be fine. I rarely look at portage output and
>>  just run `emerge -uDN @world' and `emerge --depclean' right after
>>  one another, and it always works fine for ruby/python upgrades.
>>
>>  The devs have done such a good job in general that I haven't had
>>  any problems just running these commands the past couple years.
>>
>> I deleted RUBYTARGETS from make.conf, ran eselect to make ruby22 the
>> default, but when I ran emerge --depclean I still have packages
>> pulling ruby21 as follows:
>>
>> Calculating dependencies  .. . done!
>>   dev-lang/ruby-2.1.10 pulled in by:
>>   dev-ruby/hoe-3.13.0 requires dev-lang/ruby:2.1
>>   dev-ruby/json-1.8.3 requires dev-lang/ruby:2.1
>>   dev-ruby/json-2.1.0 requires dev-lang/ruby:2.1
>>   dev-ruby/kpeg-1.1.0 requires dev-lang/ruby:2.1
>>   dev-ruby/maruku-0.7.3 requires dev-lang/ruby:2.1
>>   dev-ruby/minitest-5.10.3 requires
>>   dev-lang/ruby:2.1
>>   dev-ruby/net-telnet-0.1.1-r1 requires dev-lang/ruby:2.1
>>   dev-ruby/power_assert-1.0.2 requires dev-lang/ruby:2.1
>>   dev-ruby/racc-1.4.14 requires dev-lang/ruby:2.1
>>   dev-ruby/rake-12.0.0 requires dev-lang/ruby:2.1
>>   dev-ruby/rdoc-5.1.0 requires dev-lang/ruby:2.1
>>   dev-ruby/rubygems-2.6.12 requires
>>   dev-lang/ruby:2.1
>>   dev-ruby/test-unit-3.2.5 requires dev-lang/ruby:2.1
>>   dev-ruby/yard-0.9.8 requires dev-lang/ruby:2.1
>>   virtual/rubygems-13 requires dev-lang/ruby:2.1
>>   virtual/rubygems-7 requires dev-lang/ruby:2.1
>>
>> I tried a word ld update, but it didn't update any of those packages
>> -- any ideas of how to fix?
>>
> I use the following arguments when I run updates:
> --update --deep --with-bdeps=y --changed-use --backtrack=120
> --keep-goingworld
>
> Do I need to use new-use instead?
>

Over the years, I've updated my update process to what causes the least
issues, for me at least.  This is what I type in:

eix-sync && emerge -uaDN world

This is the settings I have in make.conf:

EMERGE_DEFAULT_OPTS="--with-bdeps y --backtrack=100 --keep-going -v -j8
--quiet-build=n -1 --unordered-display"

Obviously some may need to be set differently, like the -j8 part, for
your system but some of that helps no matter what system you use.  The
-1 for example keeps the world file clean since you have to put effort
into adding something to it.  One could add it to the world file
directly or use the --select y option.  Either way, nothing gets added
to the world file because you forgot to use the -1 option.  The
backtrack, so far 100 has worked.  If I start to have issues that a
higher number fixes, it will be upped to that number.  Over time, some
things have been removed since they were no longer needed. 

Your mileage may vary but could give you a good starting point.  Took me
years to get to that simple line.  ;-)  If anyone is interested, I could
post some other things from make.conf I've picked up over the years. 

Hope that helps.

Dale

:-)  :-) 



Re: [gentoo-user] How to find which .keep file creation is failing

2023-08-25 Thread Peter Humphrey
On Friday, 25 August 2023 14:51:34 BST I wrote:

> I'm now in a hole, as I can't "use a newer Ruby version instead."

I tried yanking and recompiling the docbook package, and that removed its 
dependency on ruby30. Then webkit-gkt with:

$ grep -ir ruby /etc/portage
/etc/portage/make.conf:RUBY_TARGETS="ruby31 ruby32"

Returned the same dependencies, every one of which (other than webkit-gtk) is 
conditional or version-unspecific, unless my eyes are deceiving me:

$ equery d dev-lang/ruby:3.0
 * These packages depend on dev-lang/ruby:
app-text/docbook-xsl-ns-stylesheets-1.79.1 (ruby ? dev-lang/ruby)
dev-ruby/bundler-2.4.15 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/date-3.3.3 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/debug-1.7.2 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/did_you_mean-1.6.3 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/forwardable-1.3.3 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/json-2.6.3 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/kpeg-1.3.3 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/matrix-0.4.2 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/minitest-5.19.0 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/net-ftp-0.2.0 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/net-imap-0.3.7 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/net-pop-0.1.2 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/net-protocol-0.2.1 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/net-smtp-0.3.3 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/power_assert-2.0.3 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/prime-0.1.2-r1 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/psych-5.1.0 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/racc-1.7.0 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/rake-13.0.6-r2 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/rdoc-6.5.0 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/rexml-3.2.6 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/rss-0.3.0 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/rubygems-3.4.15 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/singleton-0.1.1 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/stringio-3.0.8 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/test-unit-3.6.1 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/time-0.2.2 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/timeout-0.3.2 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
dev-ruby/typeprof-0.21.7 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
net-libs/webkit-gtk-2.40.5-r600 (dev-lang/ruby:3.0)
virtual/ruby-ssl-13 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)
(ruby_targets_ruby30 ? dev-lang/ruby:3.0[ssl])
virtual/rubygems-18 (ruby_targets_ruby30 ? dev-lang/ruby:3.0)

Now what? I can't do without webkit-gtk.

-- 
Regards,
Peter.






Re: [gentoo-user] Ruby problems

2021-04-20 Thread tastytea
On 2021-04-20 15:40+0100 Peter Humphrey  wrote:

> Hello list,
> 
> Has anyone here succeeded in building a new system since the recent
> Ruby language upgrade? I keep being thwarted by failure such as this
> typical one:
> 
> >>> Install dev-ruby/rake-13.0.3-r1 into /var/tmp/portage/dev-ruby/  
> rake-13.0.3-r1/image
>  * Running install phase for ruby26 ...
>  * Running install phase for ruby27 ...
> Traceback (most recent call last):
> 3: from :1:in `'
> 2: from :1:in `require'
> 1: from /usr/lib64/ruby/2.7.0/rubygems.rb:16:in ` (required)>' /usr/lib64/ruby/2.7.0/rubygems.rb:16:in `require':
> cannot load such file -- rubygems/compatibility (LoadError)
>  * ERROR: dev-ruby/rake-13.0.3-r1::gentoo failed (install phase):
>  *   Unable to generate gemspec file.
> 
> Similar failures occur whatever profile I use (of the suitable ones),
> and no matter whether I set amd64 or ~amd64 in make.conf.
> 
> It's possible that I had some unhelpful USE flags set, I suppose, but
> I did try to minimise them.
> 
> In the end I went back to a month-old backup and updated that instead.
> 

That looks like you need to select the new ruby version with eselect.
It doesn't figure out the right version automatically, like python.
See also:
<https://archives.gentoo.org/gentoo-user/message/e7203a5fe084ab6f35351a814de3f6db>.

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpNPktoXhXis.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Can't install a new system

2021-04-11 Thread Peter Humphrey
On Thursday, 8 April 2021 16:47:05 BST Neil Bothwick wrote:
> On Thu, 08 Apr 2021 13:27:51 +0100, Peter Humphrey wrote:
> > Untarring the latest stage-3 onto /mnt/gentoo, /mnt/gentoo/var and /mnt/
> > gentoo/usr/local gets me started. Then I chroot /mnt/gentoo /bin/bash,
> > and that works too. Then I leave the profile at the default vanilla
> > amd64 and emerge-webrsync. So far so good. Then when I try emerge
> > -uaDvN @world I get a circular dependency involving elt-patches and
> > xz-utils. No amount of unsetting of USE flags makes any difference. Nor
> > does --excluding one of them, because portage just refuses to do that.
> 
> Try omitting -D and -N to reduce the number of packages being rebuilt. If
> that doesn't help, post the output here.

I think I must have had a bad stage tarball. At any rate, that problem doesn't 
occur now. Instead I get various ruby packages failing because they can't find 
the gems directory, or some other problem.

There was once a news item about ruby-30, but I don't see it any more. At the 
time I added this:

# cat /etc/portage/package.use/ruby
dev-ruby/*  ruby_targets_ruby30
virtual/rubygemsruby_targets_ruby30
virtual/ruby-sslruby_targets_ruby30

That worked nicely, but not on a new system. I've tried changing the 20 to 27 
and I've tried removing the file, but neither helps. Eselecting ruby versions 
doesn't either.

-- 
Regards,
Peter.






Re: [gentoo-user] Can't install a new system

2021-04-11 Thread Peter Humphrey
On Sunday, 11 April 2021 11:33:22 BST Peter Humphrey wrote:
> On Thursday, 8 April 2021 16:47:05 BST Neil Bothwick wrote:
> > On Thu, 08 Apr 2021 13:27:51 +0100, Peter Humphrey wrote:
> > > Untarring the latest stage-3 onto /mnt/gentoo, /mnt/gentoo/var and /mnt/
> > > gentoo/usr/local gets me started. Then I chroot /mnt/gentoo /bin/bash,
> > > and that works too. Then I leave the profile at the default vanilla
> > > amd64 and emerge-webrsync. So far so good. Then when I try emerge
> > > -uaDvN @world I get a circular dependency involving elt-patches and
> > > xz-utils. No amount of unsetting of USE flags makes any difference. Nor
> > > does --excluding one of them, because portage just refuses to do that.
> > 
> > Try omitting -D and -N to reduce the number of packages being rebuilt. If
> > that doesn't help, post the output here.
> 
> I think I must have had a bad stage tarball. At any rate, that problem
> doesn't occur now. Instead I get various ruby packages failing because they
> can't find the gems directory, or some other problem.
> 
> There was once a news item about ruby-30, but I don't see it any more. At
> the time I added this:
> 
> # cat /etc/portage/package.use/ruby
> dev-ruby/*  ruby_targets_ruby30
> virtual/rubygemsruby_targets_ruby30
> virtual/ruby-sslruby_targets_ruby30
> 
> That worked nicely, but not on a new system. I've tried changing the 20 to
> 27 and I've tried removing the file, but neither helps. Eselecting ruby
> versions doesn't either.

Typo: 30, not 20.

-- 
Regards,
Peter.






Re: [gentoo-user] Ruby Rails and Rake - strange error on Gentoo...

2005-11-07 Thread Preston Hagar
I have the exact same issue and as yet have been unable to solve it. My emerged versions are as follows:

dev-lang/ruby-1.8.3 *
dev-ruby/rubygems-0.8.11 *
dev-ruby/activerecord-1.11.1
dev-ruby/activesupport-1.1.1-r2 *
dev-ruby/rake-0.5.3 *
dev-ruby/rails-0.13.1 *

My error when running rake:
/usr/lib/ruby/site_ruby/1.8/rake.rb:658:in `private': undefined method `have_option?' for class `Object' (NameError)
 from /usr/lib/ruby/site_ruby/1.8/rake.rb:658
 from /usr/lib/ruby/site_ruby/1.8/rake.rb:657
 from /usr/bin/rake:3

If I find a solution I will post it.On 11/7/05, Steve [Gentoo] [EMAIL PROTECTED] wrote:
I've recently started playing around with Ruby and rails under Gentoo.I've installed everything using emerge as opposed to the using ruby gems.
While I seem to be able to use my rails application, I get a puzzlingerror message when I try to verify it using the default generatedrakefile and rake:--$ rails myapp$ cd myapp$ rake
/usr/lib/ruby/site_ruby/1.8/rake.rb:658:in `private': undefined method`have_option?' for class `Object' (NameError)from /usr/lib/ruby/site_ruby/1.8/rake.rb:658from /usr/lib/ruby/site_ruby/1.8/rake.rb:657
from /usr/bin/rake:3--I would not expect this error message. I get the same error message ifI've introduced controllers and views (as suggested in the tutorials)before running make.I've asked on both the ruby and rails mailing
lists without any suggestions arising... it seems this might be peculiarto Gentoo.Do other users (more familiar than I am with Ruby, rails andrake)have the same problems?Is this a problem with my generated
application, Rails - or (as the error message suggests) an error in theimplementation of rake?--gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: finding qt plugins?

2009-06-30 Thread Roy Wright


On Jun 29, 2009, at 3:56 AM, Dale wrote:


Nikos Chantziaras wrote:


revdep-rebuild only resolves link-time errors, not runtime errors.
You need to observe yourself if something is broken and then rebuild
it manually; revdep-rebuild ain't gonna help in this case.





Sounds like Gentoo needs a new tool.  Calling all geeks and nerds !!

Dale


Drum roll please...

http://github.com/royw/qt-rebuild

A couple of notes:
* if you run qt-rebuild --pretend, you should have only one build key.
   if you have more than one, you really need to rebuild them.
* the build key does not contain the qt version.  Instead it describes
  the build environment.

So currently I don't see how to verify that all the plugins are built  
to the

same qt API.

Here's the readme:

= qt-rebuild

This is a utility for gentoo (http://gentoo.org) linux.

When QT is upgraded, you may have to rebuild any QT plugins.  This  
utility

attempts to find and rebuild packages with QT plugins.

Here's the discussion thread:
http://archives.gentoo.org/gentoo-user/msg_d9357c6f26dec67492b794f8f66db29d.xml

== Installation

  $ emerge ruby rubygems
  $ sudo gem install royw-qt-rebuild --source http://gems.github.com

== Usage

  $ qt-rebuild -h
  OPTIONS

--version,-v
This version of qt-rebuild

--help,-h
Print usage.

--quiet,-q
Display error messages only.

--debug,-d
Display debug messages.

--set,-s
Output in portage's set format.

--nocolor,-C
Turn off colored output. (This option is also passed to
portage.)

--pretend,-p
Do a dry-run.

It is recommended to do a dry run first:

  $ qt-rebuild -p

To create a set file:

  $ qt-rebuild -s -p  /etc/portage/sets/qt-rebuild


== Copyright

Copyright (c) 2009 Roy Wright. See LICENSE for details.

---





Re: [gentoo-user] Re: Understanding new ruby dependencies

2012-05-22 Thread Chris Stankevitz
On Mon, May 21, 2012 at 11:07 PM, Hans de Graaff gra...@gentoo.org wrote:
 Yes, this is true. We do this because normally ruby contains a copy of
 rdoc. We unbundle that and thus the external rdoc implementation is
 installed.

Hans,

Thank you, I understand.

Apparently I have to add some ruby_targets_ruby19 USE flags to my
system.  I pasted a snippet of my /etc/portage/package.use below.  I
included some other entries for context.

Question 1: Is it true that, except for this new RUBY stuff, every
entry in my package.use file is an attempt by me to enable some
feature I want in a package I want?

Answer 1: Yes

Question 2: Does it seem weird that portage wants me to add USE flags
to enable some feature in a package I never heard of and have no
interest in and to top it off has a very weird name
(ruby_targets_ruby19)?

Answer 2: [your answer here]

The tone of this message might sound obnoxious, but it's just a
trick I am using to better ask my question.  I'm not complaining (I
don't even know enough about this to have a complaint), I'm really
just curious.

Thank you,

Chris

===

From /etc/portage/package.use:

# Give a GUI to cmake
dev-util/cmake qt4

# Enable git-svn, gitk, and git bash completion
dev-vcs/git tk bash-completion subversion
dev-vcs/subversion -dso perl

# Enable nice mounts in gnome
gnome-base/gvfs fuse

# Enable plotting in octave
sci-mathematics/octave gnuplot

# Satisfy Gentoo's desire to have RUBY and rdoc installed
dev-ruby/rubygems ruby_targets_ruby19
dev-ruby/rake ruby_targets_ruby19
dev-ruby/racc ruby_targets_ruby19
dev-ruby/rdoc ruby_targets_ruby19
dev-ruby/json ruby_targets_ruby19



[gentoo-user] Re: dev-ruby/json-1.8.0

2014-06-07 Thread walt
On 06/07/2014 12:56 AM, Hans de Graaff wrote:
 On Fri, 06 Jun 2014 15:47:38 -0700, walt wrote:
 
 Is all of the above familiar to you?  If not, you may need more help
 with managing multiple ruby versions.  I find it a large PITA and I
 could use more help myself :)
 
 Could you explain what bothers you or where you would need help?

Hi Hans.  The annoying problems occur when updating ruby-related packages.

For example, I (want to) use only ruby19:

#grep RUBY /etc/portage/make.conf
RUBY_TARGETS=ruby19

In spite of that, portage often insists on installing other versions of
ruby, rdoc, rubygems, and you already know the others.

AFAICT, the other versions of ruby are dragged in by old ruby packages
that were installed before I started using RUBY_TARGETS (because I
didn't yet know about RUBY_TARGETS),

I discovered all of this by grepping for ruby in /var/db/pkg but it
took me a long time to get it sorted out, and I don't expect that a
gentoo beginner could do it.  (OTOH maybe a gentoo beginner wouldn't
care about installing multiple ruby versions :)

Thanks for taking the time to read gentoo.user and even more thanks
for being a gentoo dev :)







[gentoo-user] Re: dev-ruby/json-1.8.0

2014-06-08 Thread Hans de Graaff
On Sat, 07 Jun 2014 17:20:22 -0700, walt wrote:

 On 06/07/2014 12:56 AM, Hans de Graaff wrote:

 For example, I (want to) use only ruby19:
 
 #grep RUBY /etc/portage/make.conf RUBY_TARGETS=ruby19

Yes, in hindsight I think that should have been the current default since 
ruby19 has the best overall coverage for packages. Once ruby20 has caught 
up I think we'll move to a default of RUBY_TARGETS=ruby20

 In spite of that, portage often insists on installing other versions of
 ruby, rdoc, rubygems, and you already know the others.

Partially this was because we tried to solve another issue when ruby20 
went stable. I removed those forced use flags for ruby20 last week, so 
this should no longer happen. We still need to come up with a good plan 
when the same issue will pop up for ruby21.

 AFAICT, the other versions of ruby are dragged in by old ruby packages
 that were installed before I started using RUBY_TARGETS (because I
 didn't yet know about RUBY_TARGETS),

Yes, these will still have other ruby targets recorded and thus also 
request them for their dependencies. emerge --newuse should be able to 
help here.

 I discovered all of this by grepping for ruby in /var/db/pkg but it took
 me a long time to get it sorted out, and I don't expect that a gentoo
 beginner could do it.  (OTOH maybe a gentoo beginner wouldn't care about
 installing multiple ruby versions :)

We try to keep the default settings so that someone who doesn't care or 
know about ruby should get a good experience. Moving from ruby18 to ruby19 
we did some things that could have been handled better (such as not 
mentioning that the new ruby must be eselected before making the switch), 
so hopefully we've learned from those when we do the next update.

Hans





[gentoo-user] Re: post build files

2014-09-11 Thread James
Alec Ten Harmsel alec at alectenharmsel.com writes:


 Lastly, if you throw this in a publicly-accessible git repo I'll try and
 help, even though I took a look at mesos and it seems like it'll be hard
 because they bundle libraries with it and have made a couple other
 (imnho) bad decisions.

I biggest obstacle for all of the Apache clustering sofwares I want
to try, is java and other codes seem to be central to their
offerings.

For example maven is becoming critical for many codes [1].
In fact we are loosing jruby because nobody has the requisite
skills? [2].


Hacking and slashing through ebuilds is not difficult. I just 
have inate tendencies to that cause me to believe the path
should be 'well worn with ample examples; but alas I do not
think that is the gentoo way, particular with how fast things
are moving on new codes and the entire linux echo_systems.


Why not champion maven and jruby so many can benefit?
Can maven be built from sources, as I see it is currently
in binary form maven-bin ?

Maven is an obstacle that I'm not certain I can go around
if I am to continue down the apache cluster pathway..

snip-dev
# Mask jruby 1.6.x for removal in 30 days.
# on ruby 1.8.  Many packages are no longer compatible with its
# syntax, and security support for ruby 1.8 has stopped. This
# incompatibility now has reached central packages like rubygems so we
# have decided to remove jruby 1.6 now.  jruby upstream has released
# the 1.7.x series some time ago, but unfortunately we only have a
# masked version that has too many issues to unmask. Please let us
# know if you know java and ruby and want to help out here:



hth,
James



[1] http://maven.apache.org/

[2]
http://moving-innovations.com/blog/2014/04/23/the-precarious-state-of-jruby-in-gentoo





Re: [gentoo-user] Re: Is it that hard to add a package, or am I doing wrong?

2018-12-20 Thread YUE Daian
On 2018-12-20 10:42, Michael Orlitzky  wrote:
> On 12/20/18 10:25 AM, YUE Daian wrote:
>> 
>> Did anyone ever considered using GitLab?
>> Its community edition is quiet enough I think.
>> 
>
> Yes, but there's a small problem: we would need to run our own instance 
> of Gitlab to prevent some of the same problems that exist with Github 
> (like losing all of our data if they go out of business).
>
> The "run your own" version of Gitlab is a bit of a nightmare, being 
> built with Ruby on Rails. It has a million dependencies, many of which 
> are hard to package because rubygems/bundler are awful and encourage 
> worst practices. Gitlab upstream expects you to run a version that 
> bundles everything it uses.
>
> What's the security strategy for something with a million bundled 
> libraries? There is none, which makes following their advice pretty 
> irresponsible, too.
>
> For all its flaws, BugZilla is pretty stable software that uses stable 
> libraries in an ecosystem inhabited by adults. Our infra team are all 
> volunteers, too -- so we need an alternative that isn't way more work 
> for them to run.

That sounds reasonable...

I did not notice that "run your own" version of GitLab has so many
security issues.

I have only configured it in an intranet.

I am just concerned that the current gap between official announcement
and reality is not good for maintenance of packages.



[gentoo-user] useflag hell.

2016-02-28 Thread Alan Grimes
ete semantic-desktop
 server sftp sip smp soprano sql sqlite sse2 sse3 sse4 static-ppds
 subversion system-boost system-icu system-jpeg system-libvpx
 system-sqlite t1lib theora threads threadsafe threadsonly tinfo tk
 unlock-notify upnp upnp-av userlocales utempter uuid uvm uxa v4l vcd
 video videos vnc vpx wayland webkit xine xmp xvfb xvmc yuv4mpeg zeroconf
 -bluetooth -bundled-libs -dso -examples -libav -odbc -samba -vlc"

CPU_FLAGS_X86="mmx mmxext sse2_4way 3dnow 3dnowext sse sse2 sse3 sse4"

GRUB_PLATFORMS="pc efi-64"

EMERGE_DEFAULT_OPTS="--jobs=1 --quiet-build=n --verbose"

FEATURES="sandbox distlocks nostrip parallel-fetch userfetch userpriv 
usersandbox splitdebug -preserve-libs"

PORTAGE_RSYNC_EXTRA_OPTS="--progress"

VIDEO_CARDS="nvidia radeonsi radeon amdgpu"

source /var/lib/layman/make.conf

# portage complains if absent. 
#RUBY_TARGETS="${RUBY_TARGETS} ruby21 ruby22 ruby24"
RUBY_TARGETS="${RUBY_TARGETS} ruby23 ruby24"

USE_PYTHON='2.7 3.5'
PYTHON_TARGETS="${PYTHON_TARGETS} python2_7 python3_5 python3_4"
PYTHON_SINGLE_TARGET="python3_4"

ABI_X86="64 32"

GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/;

# Really and truly unusable... 
sys-libs/pam -debug
app-editors/nano -debug 

#required by seamonkey install
dev-cpp/clucene -debug 

# causes undefined symbol errors.
net-libs/webkit-gtk -debug -gles2

# net-misc/curl -threads

net-libs/xulrunner -debug

#>=sys-apps/pciutils-3.1.8 -zlib

dev-db/mysql -debug 

#really not compatible! 
dev-libs/klibc -custom-cflags

#stupid missfeature; buggy as fuck too.
media-video/mplayer -joystick

#BOINC compatibility.
net-misc/curl -gnutls

# requires dead libraries: 
dev-libs/libusb -doc
media-libs/fontconfig -doc 
media-sound/esound -doc
dev-java/oracle-jdk-bin doc 

# kinda strange, demanded by e-build.
>=dev-libs/elfutils-0.154-r1 static-libs

# required by dev-lang/ruby-2.0.0_p247[rdoc]
# required by dev-ruby/racc-1.4.9[ruby_targets_ruby20]
>=dev-ruby/rdoc-4.0.1-r1 ruby_targets_ruby20
# required by dev-ruby/rdoc-4.0.1-r1[ruby_targets_ruby20]
# required by dev-lang/ruby-2.0.0_p247[rdoc]
# required by dev-ruby/rubygems-2.0.3[ruby_targets_ruby19]
# required by virtual/rubygems-6
# required by dev-ruby/rake-0.9.6
# required by dev-ruby/json-1.8.0[-test,-doc,ruby_targets_ruby20]
>=dev-ruby/racc-1.4.9 ruby_targets_ruby20
# required by dev-ruby/rdoc-4.0.1-r1[ruby_targets_ruby20]
# required by dev-lang/ruby-2.0.0_p247[rdoc]
# required by dev-ruby/racc-1.4.9[ruby_targets_ruby20]
>=dev-ruby/json-1.8.0 ruby_targets_ruby20
# required by dev-lang/ruby-2.0.0_p247
# required by dev-ruby/racc-1.4.9[ruby_targets_ruby20]
# required by dev-ruby/rdoc-4.0.1-r1[ruby_targets_ruby18]
# required by dev-lang/ruby-1.9.3_p448[rdoc]
# required by dev-ruby/rubygems-2.0.3[ruby_targets_ruby19]
# required by virtual/rubygems-6
# required by dev-ruby/json-1.8.0[-test,ruby_targets_ruby20]
>=dev-ruby/rake-0.9.6 ruby_targets_ruby20
# required by dev-lang/ruby-2.0.0_p247
# required by dev-ruby/racc-1.4.9[ruby_targets_ruby20]
# required by dev-ruby/rdoc-4.0.1-r1[ruby_targets_ruby18]
# required by dev-lang/ruby-1.9.3_p448[rdoc]
# required by dev-ruby/json-1.8.0[ruby_targets_ruby19]
>=dev-ruby/rubygems-2.0.3 ruby_targets_ruby20
# required by app-emulation/wine-1.7.4[abi_x86_32,opencl]
# required by @selected
# required by @world (argument)
>=virtual/opencl-0-r4 abi_x86_32

>=dev-util/cucumber-1.3.2 -test -{test}
>=dev-ruby/hoe-2.13.0 -test -{test}

# Attempt to work around CPU hogging issue, seems more related to saving. 
>=app-office/texmacs-1 -qt4

#bug work-around. 
>=dev-util/cmake-2 -ncurses
>=net-im/pidgin-2 -ncurses 
>=app-emulation/wine-1.7.15 -custom-cflags

=dev-games/mygui-3.2.1 -opengl

>=media-libs/mesa-1  -opencl

=net-dns/avahi-0.6.31-r7 -gtk -gtk3


>=app-crypt/heimdal-1.5.3-r2 -ssl -threads

>=dev-games/ogre-1.9.0-r1 -double-precision


>=kde-apps/kde4-l10n-15.12.1-r1 minimal

>=media-libs/opencv-3.1.0-r1 -qt4

>=app-crypt/pinentry-0.9.7 -qt4

>=media-libs/mlt-0.9.8-r2 -qt4

>=dev-qt/qtwebkit-4.8.7:4 -exceptions

>=dev-qt/qtgui-5.5.1-r1 -egl



Re: [gentoo-user] Circular dependencies...

2014-01-06 Thread meino . cramer
Khumba b...@khumba.net [14-01-06 08:32]:
 On Mon, 6 Jan 2014 08:18:20 +0100
 meino.cra...@gmx.de wrote:
 
  Hi,
  
  I got this:
  
  # emerge --update --newuse --deep --with-bdeps=y @world -vp
  
  These are the packages that would be merged, in order:
  
  Calculating dependencies... done!
  
  
  [nomerge   ] virtual/rubygems-6:ruby20 [1:ruby18, 4:ruby19] 
  RUBY_TARGETS=(ruby20) 
  [nomerge   ]  dev-lang/ruby-2.0.0_p353:2.0 [1.8.7_p374:1.8, 
  1.9.3_p484:1.9] USE=berkdb doc gdbm ipv6 ncurses rdoc readline ssl -debug 
  -examples -rubytests -socks5 -tk (-xemacs) 
  [nomerge   ]   dev-ruby/json-1.8.0 [1.7.7] USE=doc {-test} 
  RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) (-ree18%) 
  [nomerge   ]dev-ruby/rake-0.9.6 [0.9.2.2] USE=doc {-test} 
  (-bash-completion%) RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) 
  (-ree18%) 
  [nomerge   ] dev-ruby/rdoc-4.0.1-r1 [3.12.2] USE=doc {-test} 
  RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) 
  [ebuild U  ]  dev-ruby/racc-1.4.9 [1.4.8] USE=doc {-test} 
  RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) (-ree18%) 107 kB
  [ebuild U  ]  dev-ruby/json-1.8.0 [1.7.7] USE=doc {-test} 
  RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) (-ree18%) 146 kB
  [ebuild U  ]   dev-ruby/rake-0.9.6 [0.9.2.2] USE=doc {-test} 
  (-bash-completion%) RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) 
  (-ree18%) 121 kB
  [ebuild U  ]dev-ruby/rdoc-4.0.1-r1 [3.12.2] USE=doc {-test} 
  RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) 457 kB
  
  Total: 4 packages (4 upgrades), Size of downloads: 830 kB
  
   * Error: circular dependencies:
  
  (dev-ruby/rdoc-4.0.1-r1::gentoo, ebuild scheduled for merge) depends on
   (dev-ruby/racc-1.4.9::gentoo, ebuild scheduled for merge) (buildtime)
(dev-ruby/rdoc-4.0.1-r1::gentoo, ebuild scheduled for merge) (buildtime)
  
  It might be possible to break this cycle
  by applying the following change:
  - dev-ruby/racc-1.4.9 (Change USE: -doc)
  
  
  
  I added this to /etc/portage/package.use:
  
  =dev-ruby/racc-1.49 -doc
 
 1.49 != 1.4.9, is that not just a typo in your email?
 
 Cheers,
 Khumba
 
  
  and have set doc in the USE flags in make.conf.
  
  I am still getting the above output...
  
  How can I get out of this cycle out of this cycle out of this cycles
  out of... ;)
  
  Best regards,
  mcc
  
  
 
 

Hi Khumba,

oh damn...I didn't saw that! Thank you very much !!!

Now the circle is moved a little further...I got:

[nomerge   ] virtual/rubygems-6:ruby20 [1:ruby18, 4:ruby19] 
RUBY_TARGETS=(ruby20) 
[nomerge   ]  dev-lang/ruby-2.0.0_p353:2.0 [1.8.7_p374:1.8, 1.9.3_p484:1.9] 
USE=berkdb doc gdbm ipv6 ncurses rdoc readline ssl -debug -examples -rubytests 
-socks5 -tk (-xemacs) 
[nomerge   ]   dev-ruby/json-1.8.0 [1.7.7] USE=doc {-test} 
RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) (-ree18%) 
[nomerge   ]dev-ruby/rake-0.9.6 [0.9.2.2] USE=doc {-test} 
(-bash-completion%) RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) (-ree18%) 
[nomerge   ] dev-ruby/rdoc-4.0.1-r1 [3.12.2] USE=doc {-test} 
RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) 
[ebuild U  ]  dev-ruby/racc-1.4.9 [1.4.8] USE=-doc* {-test} 
RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) (-ree18%) 107 kB
[ebuild U  ]  dev-ruby/json-1.8.0 [1.7.7] USE=doc {-test} 
RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) (-ree18%) 146 kB
[ebuild U  ]   dev-ruby/rake-0.9.6 [0.9.2.2] USE=doc {-test} 
(-bash-completion%) RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) (-ree18%) 
121 kB
[ebuild U  ]dev-ruby/rdoc-4.0.1-r1 [3.12.2] USE=doc {-test} 
RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) 457 kB

Total: 4 packages (4 upgrades), Size of downloads: 830 kB

 * Error: circular dependencies:

(dev-ruby/rake-0.9.6::gentoo, ebuild scheduled for merge) depends on
 (dev-ruby/rdoc-4.0.1-r1::gentoo, ebuild scheduled for merge) (buildtime)
  (dev-ruby/racc-1.4.9::gentoo, ebuild scheduled for merge) (buildtime)
   (dev-ruby/rake-0.9.6::gentoo, ebuild scheduled for merge) (buildtime)

It might be possible to break this cycle
by applying the following change:
- dev-ruby/rake-0.9.6 (Change USE: -doc)


I will now add that to package.use and will see how far it will
take...

Thanks a lot again! :)
Cheers,
mcc






Re: [gentoo-user] Can't install a new system

2021-04-14 Thread Peter Humphrey
On Monday, 12 April 2021 12:01:28 BST Peter Humphrey wrote:

> Okay, step by step. First I chose the basic make.profile, number 1, and
> installed my base system set - everything that doesn't need a GUI. Then I
> switched to the basic desktop profile, number 5 and ran a -uav @world. So
> far so good, but then I attempted to install a basic set of GUI packages -
> everything but a DE. The command was 'emerge -uav @xorg'. I got this:
> 
> --->8
> 
> >>> Preparing source in /var/tmp/portage/dev-ruby/net-telnet-0.2.0/work ...
> 
>  * Running prepare phase for all ...
>  * Running prepare phase for all ...
>  * Running source copy phase for ruby27 ...
> 
> >>> Source prepared.
> >>> Configuring source in /var/tmp/portage/dev-ruby/net-telnet-0.2.0/work
> >>> ...
> 
>  * Running configure phase for ruby27 ...
> 
> >>> Source configured.
> >>> Compiling source in /var/tmp/portage/dev-ruby/net-telnet-0.2.0/work ...
> 
>  * Running compile phase for ruby27 ...
>  * Running compile phase for all ...
> 
> >>> Source compiled.
> 
>  * Skipping make test/check due to ebuild restriction.
> 
> >>> Test phase [disabled because of RESTRICT=test]:
> >>> dev-ruby/net-telnet-0.2.0
> >>> 
> >>> Install dev-ruby/net-telnet-0.2.0 into /var/tmp/portage/dev-ruby/net-
> 
> telnet-0.2.0/image/
>  * Running install phase for ruby27 ...
> Traceback (most recent call last):
> 3: from :1:in `'
> 2: from :1:in `require'
> 1: from /usr/lib64/ruby/2.7.0/rubygems.rb:16:in `'
> /usr/lib64/ruby/2.7.0/rubygems.rb:16:in `require': cannot load such file --
> rubygems/compatibility (LoadError)
>  * Unable to find the gems dir
>  * ERROR: dev-ruby/net-telnet-0.2.0::gentoo failed (install phase):
>  *   Unable to find the gems dir
> --->8
> 
> There seems to be an inconsistency in the ruby packaging. Is there anything
> I can do to evade it? I've attached the package-set files I use when
> building a new system, for info.

This doesn't happen in a stable system, only in ~amd64. It's consistent there, 
though, so I'm tempted to raise a bug report.

-- 
Regards,
Peter.






Re: [gentoo-user] Logic?

2023-04-07 Thread John Acree

On 2023-04-06 17:22, Alan Grimes wrote:
1. My system was basically working last time I updated it several 
months ago.


2. Now both of my main web browsers are severely if not utterly foobar.

3. It required effort to change the system from the first state to the 
second...


-> how much effort did it it take? =\


That said, the situation here was very stratge. I was looking for a
chance to insert some down time for the system to swap out the water
block on the CPU. I had gone out shopping and when I returned Chromium
had suddenly stopped working for reasons I can't fathom. Ok, so I took
the machine down and did the maintenance.

When I brought it back up, chromium was still foobar and I'm like 
WTF...


Apparently it inserted trillions of crash reports in its log directory
and rm -rf'ing the crash reports alone is taking a very long time.
(HDD on that volume...)

On the build side, my pain list is as follows:

tortoise /var/tmp/portage # tree -L 2
.
├── dev-lang
│   └── ruby-3.1.4  << surprised as hell... no idea...
├── dev-ruby
│  [REDACTED]
│   ├── rubygems-3.4.6 << reports can't find variable "RUBY" even
though it is definitely set.
│  [REDACTED]
├── media-libs
│   └── nas-1.9.5   <<< wtf, don't care enough to examine it.
└── net-libs
    ├── signon-ui-0.15_p20171022-r1
    └── webkit-gtk-2.40.0-r410   <<< apparently only user of Ruby no
idea what it does or why it's on my system.


Hi Alan,

Hope this helps.  The `equery` tool has a "depends" argument which shows 
packages depending on the atom argument.  `equery depends webkit-gtk` 
will show any current installed packages depending on it.


When I have a stale system to update, portage is always the first 
package I worry about getting updated.  Once that is updated start with 
system packages and then world packages.  But even with portage if there 
are emerge errors I uninstall every package causing an error.  In a 
worst case, I have to go through the handbook and find the instructions 
for installing as on a fresh install and install it, 
https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Stage.  In 
portage's case, I have had to remove setuptools and certifi to get past 
a dependency loop which was preventing portage from updating.  Removing 
as many packages as necessary generally helps.  The packages can be 
added back once the base components are updated.


Regards,
John



[gentoo-user] Circular dependencies...

2014-01-05 Thread meino . cramer
Hi,

I got this:

# emerge --update --newuse --deep --with-bdeps=y @world -vp

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

Calculating dependencies... done!


[nomerge   ] virtual/rubygems-6:ruby20 [1:ruby18, 4:ruby19] 
RUBY_TARGETS=(ruby20) 
[nomerge   ]  dev-lang/ruby-2.0.0_p353:2.0 [1.8.7_p374:1.8, 1.9.3_p484:1.9] 
USE=berkdb doc gdbm ipv6 ncurses rdoc readline ssl -debug -examples -rubytests 
-socks5 -tk (-xemacs) 
[nomerge   ]   dev-ruby/json-1.8.0 [1.7.7] USE=doc {-test} 
RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) (-ree18%) 
[nomerge   ]dev-ruby/rake-0.9.6 [0.9.2.2] USE=doc {-test} 
(-bash-completion%) RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) (-ree18%) 
[nomerge   ] dev-ruby/rdoc-4.0.1-r1 [3.12.2] USE=doc {-test} 
RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) 
[ebuild U  ]  dev-ruby/racc-1.4.9 [1.4.8] USE=doc {-test} 
RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) (-ree18%) 107 kB
[ebuild U  ]  dev-ruby/json-1.8.0 [1.7.7] USE=doc {-test} 
RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) (-ree18%) 146 kB
[ebuild U  ]   dev-ruby/rake-0.9.6 [0.9.2.2] USE=doc {-test} 
(-bash-completion%) RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) (-ree18%) 
121 kB
[ebuild U  ]dev-ruby/rdoc-4.0.1-r1 [3.12.2] USE=doc {-test} 
RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) 457 kB

Total: 4 packages (4 upgrades), Size of downloads: 830 kB

 * Error: circular dependencies:

(dev-ruby/rdoc-4.0.1-r1::gentoo, ebuild scheduled for merge) depends on
 (dev-ruby/racc-1.4.9::gentoo, ebuild scheduled for merge) (buildtime)
  (dev-ruby/rdoc-4.0.1-r1::gentoo, ebuild scheduled for merge) (buildtime)

It might be possible to break this cycle
by applying the following change:
- dev-ruby/racc-1.4.9 (Change USE: -doc)



I added this to /etc/portage/package.use:

=dev-ruby/racc-1.49 -doc

and have set doc in the USE flags in make.conf.

I am still getting the above output...

How can I get out of this cycle out of this cycle out of this cycles
out of... ;)

Best regards,
mcc




Re: [gentoo-user] Circular dependencies...

2014-01-05 Thread Khumba
On Mon, 6 Jan 2014 08:18:20 +0100
meino.cra...@gmx.de wrote:

 Hi,
 
 I got this:
 
 # emerge --update --newuse --deep --with-bdeps=y @world -vp
 
 These are the packages that would be merged, in order:
 
 Calculating dependencies... done!
 
 
 [nomerge   ] virtual/rubygems-6:ruby20 [1:ruby18, 4:ruby19] 
 RUBY_TARGETS=(ruby20) 
 [nomerge   ]  dev-lang/ruby-2.0.0_p353:2.0 [1.8.7_p374:1.8, 
 1.9.3_p484:1.9] USE=berkdb doc gdbm ipv6 ncurses rdoc readline ssl -debug 
 -examples -rubytests -socks5 -tk (-xemacs) 
 [nomerge   ]   dev-ruby/json-1.8.0 [1.7.7] USE=doc {-test} 
 RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) (-ree18%) 
 [nomerge   ]dev-ruby/rake-0.9.6 [0.9.2.2] USE=doc {-test} 
 (-bash-completion%) RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) (-ree18%) 
 [nomerge   ] dev-ruby/rdoc-4.0.1-r1 [3.12.2] USE=doc {-test} 
 RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) 
 [ebuild U  ]  dev-ruby/racc-1.4.9 [1.4.8] USE=doc {-test} 
 RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) (-ree18%) 107 kB
 [ebuild U  ]  dev-ruby/json-1.8.0 [1.7.7] USE=doc {-test} 
 RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) (-ree18%) 146 kB
 [ebuild U  ]   dev-ruby/rake-0.9.6 [0.9.2.2] USE=doc {-test} 
 (-bash-completion%) RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) (-ree18%) 
 121 kB
 [ebuild U  ]dev-ruby/rdoc-4.0.1-r1 [3.12.2] USE=doc {-test} 
 RUBY_TARGETS=ruby18 ruby19 ruby20%* (-jruby) 457 kB
 
 Total: 4 packages (4 upgrades), Size of downloads: 830 kB
 
  * Error: circular dependencies:
 
 (dev-ruby/rdoc-4.0.1-r1::gentoo, ebuild scheduled for merge) depends on
  (dev-ruby/racc-1.4.9::gentoo, ebuild scheduled for merge) (buildtime)
   (dev-ruby/rdoc-4.0.1-r1::gentoo, ebuild scheduled for merge) (buildtime)
 
 It might be possible to break this cycle
 by applying the following change:
 - dev-ruby/racc-1.4.9 (Change USE: -doc)
 
 
 
 I added this to /etc/portage/package.use:
 
 =dev-ruby/racc-1.49 -doc

1.49 != 1.4.9, is that not just a typo in your email?

Cheers,
Khumba

 
 and have set doc in the USE flags in make.conf.
 
 I am still getting the above output...
 
 How can I get out of this cycle out of this cycle out of this cycles
 out of... ;)
 
 Best regards,
 mcc
 
 




Re: [gentoo-user] gentoo-minimal-install software list

2014-01-14 Thread Alan McKinnon
On 14/01/2014 23:34, James wrote:
 Hello,
 
 I've beenlooking for the listing of software in the minimal
 install for amd64
 
 
 Any ideas where to find it?



Easiest is to look in /var/db/pkg inside the image file. This is for
install-amd64-minimal-20131226:

app-accessibility/brltty-4.2
app-accessibility/espeak-1.47.11-r1
app-accessibility/espeakup-0.71
app-admin/eselect-lib-bin-symlink-0.1.1
app-admin/eselect-pinentry-0.4
app-admin/eselect-python-2008
app-admin/eselect-ruby-20100603
app-admin/hddtemp-0.3_beta15-r7
app-admin/passook-20121001
app-admin/pwgen-2.06-r1
app-admin/syslog-ng-3.4.2
app-arch/bzip2-1.0.6-r3
app-arch/gzip-1.5
app-arch/tar-1.26-r1
app-arch/unzip-6.0-r3
app-arch/xz-utils-5.0.5-r1
app-crypt/gnupg-2.0.22
app-crypt/mit-krb5-1.11.4
app-crypt/pinentry-0.8.2
app-editors/mg-20110905-r1
app-editors/nano-2.3.2
app-laptop/radeontool-1.6.3
app-misc/ca-certificates-20130119
app-misc/editor-wrapper-4
app-misc/livecd-tools-2.0.3
app-misc/mime-types-9
app-misc/pax-utils-0.7
app-misc/screen-4.0.3-r6
app-misc/vlock-2.2.3
app-portage/mirrorselect-2.2.0.1
app-portage/portage-utils-0.30
app-shells/bash-4.2_p45
app-text/build-docbook-catalog-1.19.1
app-text/docbook-xml-dtd-4.1.2-r6
app-text/docbook-xml-dtd-4.2-r2
app-text/docbook-xsl-stylesheets-1.78.0
app-text/sgml-common-0.6.3-r5
app-text/wgetpaste-2.22
dev-lang/nasm-2.10.07
dev-lang/perl-5.16.3
dev-lang/python-2.7.5-r3
dev-lang/python-3.3.2-r2
dev-lang/python-exec-0.3.1
dev-lang/python-exec-2.0.1
dev-lang/ruby-1.8.7_p374
dev-lang/ruby-1.9.3_p484
dev-lang/ruby-2.0.0_p353
dev-lang/swig-2.0.9
dev-libs/boost-1.52.0-r6
dev-libs/elfutils-0.149
dev-libs/eventlog-0.2.12
dev-libs/expat-2.1.0-r3
dev-libs/glib-2.36.4-r1
dev-libs/icu-51.2-r1
dev-libs/iniparser-3.1
dev-libs/libaio-0.3.109-r4
dev-libs/libassuan-2.1.1
dev-libs/libev-4.15
dev-libs/libevent-2.0.21
dev-libs/libffi-3.0.11
dev-libs/libgcrypt-1.5.3
dev-libs/libgpg-error-1.12
dev-libs/libksba-1.3.0
dev-libs/libnl-3.2.23
dev-libs/libpcre-8.33
dev-libs/libtasn1-2.14
dev-libs/libverto-0.2.5
dev-libs/libxslt-1.1.28-r1
dev-libs/libyaml-0.1.4
dev-libs/mpc-1.0.1
dev-libs/nettle-2.7.1
dev-libs/newt-0.52.12
dev-libs/openssl-1.0.1e-r1
dev-libs/popt-1.16-r1
dev-libs/pth-2.0.7-r3
dev-perl/Locale-gettext-1.50.0
dev-perl/XML-Parser-2.410.0
dev-python/m2crypto-0.21.1-r1
dev-python/python-exec-1.1
dev-python/python-exec-1.2
dev-python/setuptools-0.8-r1
dev-ruby/json-1.8.0
dev-ruby/racc-1.4.9
dev-ruby/rake-0.9.6
dev-ruby/rdoc-4.0.1-r1
dev-ruby/rubygems-2.0.3
dev-util/boost-build-1.52.0-r1
dev-util/dialog-1.2.20130928
dev-util/gperf-3.0.4
dev-util/gtk-doc-am-1.19
dev-util/intltool-0.50.2-r1
dev-util/ragel-6.7-r1
media-gfx/fbgrab-1.0-r2
media-libs/alsa-lib-1.0.27.1
media-libs/alsa-oss-1.0.25
media-libs/libjpeg-turbo-1.3.0
media-libs/libpng-1.5.17-r1
media-libs/portaudio-19_pre2021
media-sound/alsa-utils-1.0.27.1-r1
media-sound/gsm-1.0.13
media-sound/sox-14.4.1
net-analyzer/netselect-0.3-r3
net-analyzer/traceroute-2.0.18
net-dialup/globespan-adsl-0.11-r1
net-dialup/mingetty-1.08
net-dialup/ppp-2.4.5-r3
net-dialup/pptpclient-1.7.2-r3
net-dialup/rp-pppoe-3.8-r2
net-firewall/iptables-1.4.20
net-fs/cifs-utils-6.1-r1
net-fs/nfs-utils-1.2.9
net-fs/samba-3.6.22
net-irc/irssi-0.8.15-r1
net-libs/gnutls-2.12.23-r1
net-libs/libnfsidmap-0.24
net-libs/libtirpc-0.2.2-r1
net-misc/curl-7.33.0
net-misc/dhcpcd-5.6.4
net-misc/iputils-20121221
net-misc/ndisc6-0.9.9
net-misc/netifrc-0.1
net-misc/ntp-4.2.6_p5-r7
net-misc/openssh-5.9_p1-r4
net-misc/rdate-1.4-r4
net-misc/rsync-3.0.9-r3
net-misc/vconfig-1.9
net-misc/wget-1.14
net-nds/rpcbind-0.2.0-r1
net-proxy/dante-1.1.19-r4
net-proxy/ntlmaps-0.9.9-r2
net-proxy/tsocks-1.8_beta5-r5
net-wireless/b43-fwcutter-017
net-wireless/crda-1.1.2-r3
net-wireless/rfkill-0.5
net-wireless/wireless-regdb-20130213
net-wireless/wireless-tools-30_pre9
net-wireless/wpa_supplicant-2.0-r2
sys-apps/acl-2.2.51
sys-apps/apmd-3.2.2_p14
sys-apps/attr-2.4.46-r2
sys-apps/baselayout-2.2
sys-apps/busybox-1.21.0
sys-apps/coreutils-8.21
sys-apps/dbus-1.6.12
sys-apps/dmidecode-2.11
sys-apps/ethtool-3.8
sys-apps/file-5.15
sys-apps/findutils-4.4.2-r1
sys-apps/fxload-20081013-r1
sys-apps/gawk-4.0.2
sys-apps/gptfdisk-0.8.6
sys-apps/grep-2.14
sys-apps/hdparm-9.39
sys-apps/help2man-1.40.11
sys-apps/hwdata-gentoo-0.4
sys-apps/hwids-20130915.1
sys-apps/hwsetup-1.2-r2
sys-apps/iproute2-3.8.0
sys-apps/kbd-1.15.3
sys-apps/keyutils-1.5.5
sys-apps/kmod-15-r1
sys-apps/less-457
sys-apps/man-pages-posix-2003a
sys-apps/memtester-4.3.0
sys-apps/net-tools-1.60_p20120127084908
sys-apps/netplug-1.2.9-r5
sys-apps/openrc-0.12.4
sys-apps/pciutils-3.2.0
sys-apps/pcmciautils-018_p8
sys-apps/portage-2.2.7
sys-apps/sandbox-2.6-r1
sys-apps/sdparm-1.07
sys-apps/sed-4.2.1-r1
sys-apps/shadow-4.1.5.1-r1
sys-apps/sysvinit-2.88-r4
sys-apps/tcp-wrappers-7.6-r8
sys-apps/util-linux-2.22.2
sys-apps/which-2.20
sys-auth/pambase-20120417-r3
sys-block/parted-3.1-r1
sys-block/partimage-0.6.9
sys-block/thin-provisioning-tools-0.2.8
sys-devel/bc-1.06.95
sys

Re: [gentoo-user] Ruby - 3 versions - seriously????

2017-09-03 Thread Marvin Gülker
Am 02. September 2017 um 21:18 Uhr -0500 schrieb R0b0t1 <r03...@gmail.com>:
> Seeing as the OP is saying there are 3 versions queued for merge and
> he has not installed any of them by hand it looks like Alan is
> right. Perhaps the OP is using "old" Ruby based software, but software
> of that age in another language could work on new interpreters.

I took a moment and looked up the release announcements for the minor
version releases between the versions the OP has installed:

* https://www.ruby-lang.org/en/news/2015/12/25/ruby-2-3-0-released/
* https://www.ruby-lang.org/en/news/2016/12/25/ruby-2-4-0-released/

2.4.0 saw breaking changes, 2.3.0 not. In 2.4.0, the most notable
breaking change was the unification of Fixnum and Bignum into
Integer. Other breaking changes affected the standard library (stdlib):

* Tk was dropped from the stdlib.
* XMLRPC was dropped from the stdlib.
* Support for OpenSSL <= 0.9.7 was dropped from the stdlib.

For Tk specifically, the reason for the removal was that the maintainer
got demotivated by useless and even hostile feedback[1] and since nobody
wanted step up, the library was removed from the stdlib[2].

The exact judgement of how grave these changes are is subjective. Fixnum
and Bignum were not classes commonly used in Ruby code, so it may be
viewed as a detail. They saw a more frequent use in C extensions, which
may then be viewed more grave; the release announcement iself is pretty
clear on this topic:

Ruby 2.4.0 release announcment from 2016-12-25:
> All C extensions which touch the Fixnum or Bignum class need to be
> fixed.

I was not too happy with this either, but most software continued to
work.

I don't know the reason why the OP was left with three versions of
Ruby. Given the above release announcements, there are not too many
reasons why his software should not work with newer versions of
Ruby.

All this only applies to the core language. Some RubyGems packages
release very rigorously and some even make use of undocumented features
of (the C interface of) the Ruby language. That's however a different
problem.

Am 02. September 2017 um 21:18 Uhr -0500 schrieb R0b0t1 <r03...@gmail.com>:
> One of the reasons I dislike Ruby is that there is no complete
> specification of the language available, making this statement
> (technically) untestable.

There *is* a formal complete ISO specification of the language available,
approved in 2012[3].

Marvin

[1]: Exact reasoning of the maintainer is here (in reply to me):
 http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/436401
[2]: https://bugs.ruby-lang.org/issues/8539
[3]: https://www.iso.org/standard/59579.html



Re: [gentoo-user] Logic?

2023-04-07 Thread William Kenworthy
The rubygem / webkit problem has cropped up recently - do something like 
this


1. Mask webkit (I needed to do yelp as well on one system)

2. emerge any remaining updates so you can depclean

3. emerge --depclean (this removes old ruby versions and fixes the system

4. unmask webkit etc.

4. finish the updates.

BillK


On 7/4/23 17:31, John Acree wrote:

On 2023-04-06 17:22, Alan Grimes wrote:
1. My system was basically working last time I updated it several 
months ago.


2. Now both of my main web browsers are severely if not utterly foobar.

3. It required effort to change the system from the first state to 
the second...


-> how much effort did it it take? =\


That said, the situation here was very stratge. I was looking for a
chance to insert some down time for the system to swap out the water
block on the CPU. I had gone out shopping and when I returned Chromium
had suddenly stopped working for reasons I can't fathom. Ok, so I took
the machine down and did the maintenance.

When I brought it back up, chromium was still foobar and I'm like WTF...

Apparently it inserted trillions of crash reports in its log directory
and rm -rf'ing the crash reports alone is taking a very long time.
(HDD on that volume...)

On the build side, my pain list is as follows:

tortoise /var/tmp/portage # tree -L 2
.
├── dev-lang
│   └── ruby-3.1.4  << surprised as hell... no idea...
├── dev-ruby
│  [REDACTED]
│   ├── rubygems-3.4.6 << reports can't find variable "RUBY" even
though it is definitely set.
│  [REDACTED]
├── media-libs
│   └── nas-1.9.5   <<< wtf, don't care enough to examine it.
└── net-libs
    ├── signon-ui-0.15_p20171022-r1
    └── webkit-gtk-2.40.0-r410   <<< apparently only user of Ruby no
idea what it does or why it's on my system.


Hi Alan,

Hope this helps.  The `equery` tool has a "depends" argument which 
shows packages depending on the atom argument.  `equery depends 
webkit-gtk` will show any current installed packages depending on it.


When I have a stale system to update, portage is always the first 
package I worry about getting updated.  Once that is updated start 
with system packages and then world packages.  But even with portage 
if there are emerge errors I uninstall every package causing an 
error.  In a worst case, I have to go through the handbook and find 
the instructions for installing as on a fresh install and install it, 
https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Stage. In 
portage's case, I have had to remove setuptools and certifi to get 
past a dependency loop which was preventing portage from updating.  
Removing as many packages as necessary generally helps.  The packages 
can be added back once the base components are updated.


Regards,
John







[gentoo-user] Logic?

2023-04-06 Thread Alan Grimes
1. My system was basically working last time I updated it several months 
ago.


2. Now both of my main web browsers are severely if not utterly foobar.

3. It required effort to change the system from the first state to the 
second...


-> how much effort did it it take? =\


That said, the situation here was very stratge. I was looking for a 
chance to insert some down time for the system to swap out the water 
block on the CPU. I had gone out shopping and when I returned Chromium 
had suddenly stopped working for reasons I can't fathom. Ok, so I took 
the machine down and did the maintenance.


When I brought it back up, chromium was still foobar and I'm like WTF...

Apparently it inserted trillions of crash reports in its log directory 
and rm -rf'ing the crash reports alone is taking a very long time. (HDD 
on that volume...)


On the build side, my pain list is as follows:

tortoise /var/tmp/portage # tree -L 2
.
├── dev-lang
│   └── ruby-3.1.4  << surprised as hell... no idea...
├── dev-ruby
│  [REDACTED]
│   ├── rubygems-3.4.6 << reports can't find variable "RUBY" even 
though it is definitely set.

│  [REDACTED]
├── media-libs
│   └── nas-1.9.5   <<< wtf, don't care enough to examine it.
└── net-libs
    ├── signon-ui-0.15_p20171022-r1
    └── webkit-gtk-2.40.0-r410   <<< apparently only user of Ruby no 
idea what it does or why it's on my system.


41 directories, 0 files
tortoise /var/tmp/portage #

The barf from ruby-3.1.4 is:

#

make[2]: Leaving directory 
'/var/tmp/portage/dev-lang/ruby-3.1.4/work/ruby-3.1.4'
make[2]: Entering directory 
'/var/tmp/portage/dev-lang/ruby-3.1.4/work/ruby-3.1.4'

:
make[2]: Leaving directory 
'/var/tmp/portage/dev-lang/ruby-3.1.4/work/ruby-3.1.4'
make -f exts.mk -Oline RUBY="./miniruby -I./lib -I. -I.ext/common " 
top_srcdir="." note

make[1]: Nothing to be done for 'note'.
>>> Source compiled.
>>> Test phase [not enabled]: dev-lang/ruby-3.1.4

>>> Install dev-lang/ruby-3.1.4 into 
/var/tmp/portage/dev-lang/ruby-3.1.4/image

 * Removing default gems before installation
make -j48 V=1 DESTDIR=/var/tmp/portage/dev-lang/ruby-3.1.4/image 
GEM_DESTDIR=/usr/lib64/ruby/gems/3.1.0 install

: > revision.tmp
    BASERUBY = /usr/bin/ruby --disable=gems
    CC = x86_64-pc-linux-gnu-gcc
    LD = x86_64-pc-linux-gnu-ld
    LDSHARED = x86_64-pc-linux-gnu-gcc -shared
    CFLAGS = -march=native -pipe -O3 -fno-strict-aliasing -fPIC
    XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector-strong 
-fno-strict-overflow -fvisibility=hidden -fexcess-precision=standard 
-DRUBY_EXPORT -I. -I.ext/include/x86_64-linux -I./include -I. 
-I./enc/unicode/13.0.0

    CPPFLAGS =
    DLDFLAGS = -Wl,-O1 -Wl,--as-needed 
-Wl,--compress-debug-sections=zlib -Wl,-soname,libruby31.so.3.1 
-fstack-protector-strong

    SOLIBS = -lz -lpthread -lrt -lrt -lgmp -ldl -lcrypt -lm
    LANG = en_US.utf8
    LC_ALL =
    LC_CTYPE =
    MFLAGS = -j48 -Oline 
--jobserver-auth=fifo:/var/tmp/portage/dev-lang/ruby-3.1.4/temp/GMfifo41 
--sync-mutex=fnm:/var/tmp/portage/dev-lang/ruby-3.1.4/temp/GmU4nvzS

x86_64-pc-linux-gnu-gcc (Gentoo 12.2.1_p20230304 p13) 12.2.1 20230304
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

/usr/bin/ruby --disable=gems -C "." \
    -Itool/lib -rfileutils -rbundled_gem -answ \
    -e 'BEGIN {FileUtils.mkdir_p(d = ".bundle/gems")}' \
    -e 'gem, ver, _, rev = *$F' \
    -e 'next if !ver or /^#/=~gem' \
    -e 'g = "#{gem}-#{ver}"' \
    -e 'if File.directory?("#{d}/#{g}")' \
    -e 'elsif rev and File.exist?(gs = "gems/src/#{gem}/#{gem}.gemspec")' \
    -e   'BundledGem.copy(gs, ".bundle")' \
    -e 'else' \
    -e   'BundledGem.unpack("gems/#{g}.gem", ".bundle")' \
    -e 'end' \
    -e 'FileUtils.rm_rf("#{d}/#{g}/.github")' \
    gems/bundled_gems
/usr/lib64/ruby/3.1.0/rubygems.rb:15:in `require_relative': cannot load 
such file -- /usr/lib64/ruby/3.1.0/rubygems/compatibility (LoadError)

    from /usr/lib64/ruby/3.1.0/rubygems.rb:15:in `'
    from 
/var/tmp/portage/dev-lang/ruby-3.1.4/work/ruby-3.1.4/tool/lib/bundled_gem.rb:2:in 
`require'
    from 
/var/tmp/portage/dev-lang/ruby-3.1.4/work/ruby-3.1.4/tool/lib/bundled_gem.rb:2:in 
`'

    from -e:in `require'
make: *** [uncommon.mk:1370: extract-gems-sequential] Error 1
make: *** Waiting for unfinished jobs
/usr/bin/ruby --disable=gems ./tool/file2lastrev.rb -q --revision.h 
--srcdir="." > revision.tmp

./config.status --file=-:./template/ruby.pc.in | \
sed -e 's/\$(\([A-Za-z_][A-Za-z0-9_]*\))/${\1}/g' \
    -e 's|^prefix=.*|prefix=/usr|' \
    > ruby.tmp.pc
pkg_config=x86_64-pc-linux-gnu-pkg-config 

  1   2   >