Bug 17345

Summary: ruby-sass does not run - Could not find 'sass' (>= 0) among 2 total gem(s) (Gem::LoadError)
Product: Mageia Reporter: Florian Hubold <doktor5000>
Component: RPM PackagesAssignee: Florian Hubold <doktor5000>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: doktor5000
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: ruby-sass-3.2.19-3.mga5.src.rpm CVE:
Status comment:

Description Florian Hubold 2015-12-17 00:20:52 CET
Description of problem:

When trying to run sass (which e.g. happens during build of openQA) I get the following error:


[user@localhost]â[17:57:45]â[~] sass
/usr/share/rubygems/rubygems/dependency.rb:315:in `to_specs': Could not find 'sass' (>= 0) among 2 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/home/user/.gem/ruby:/usr/share/gems', execute `gem env` for more information
        from /usr/share/rubygems/rubygems/dependency.rb:324:in `to_spec'
        from /usr/share/rubygems/rubygems/core_ext/kernel_gem.rb:64:in `gem'
        from /bin/sass:22:in `<main>'
[â]â[user@localhost]â[17:57:52]â[~]



Output of suggested "gem env" as follows:

[user@localhost]â[18:00:41]â[~] gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 2.4.8
  - RUBY VERSION: 2.2.3 (2015-08-18 patchlevel 173) [x86_64-linux]
  - INSTALLATION DIRECTORY: /home/user/.gem/ruby
  - RUBY EXECUTABLE: /usr/bin/ruby
  - EXECUTABLE DIRECTORY: /home/user/bin
  - SPEC CACHE DIRECTORY: /home/user/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /etc
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /home/user/.gem/ruby
     - /usr/share/gems
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /bin
     - /usr/bin
     - /usr/local/bin
     - /usr/local/games
     - /usr/games
     - /usr/lib64/qt4/bin
     - /usr/lib64/qt5/bin
     - /home/user/bin

Reproducible: 

Steps to Reproduce:
Comment 1 Florian Hubold 2015-12-17 00:55:24 CET
Running the actual ruby binary /usr/share/ruby/gems/gems/sass-3.2.19/bin/sass seems to produce the intended result:

[user@localhost]â[18:24:49]â[~] /usr/share/ruby/gems/gems/sass-3.2.19/bin/sass -v
Sass 3.2.19 (Media Mark)

Unfortunately I've no clue about ruby and this whole gems stuff, but this seems pretty much like a big mess to me.


After updating it locally to 3.4.20 which seems to be the current version, it works just fine. As the only thing that requires ruby-sass seems to be ruby-compass, I'll just update ruby-sass to the current stable version.

Status: NEW => ASSIGNED
CC: (none) => doktor5000
Assignee: bugsquad => doktor5000

Comment 2 Florian Hubold 2015-12-17 00:57:55 CET
Should be fixed via http://svnweb.mageia.org/packages?view=revision&revision=911193 and submitted as ruby-sass-3.4.20-1.mga6

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED