Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 719254 - dev-ruby/globalid-0.4.2: missing test dependencies
Summary: dev-ruby/globalid-0.4.2: missing test dependencies
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
: 720408 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-04-24 15:02 UTC by Rolf Eike Beer
Modified: 2020-05-19 13:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rolf Eike Beer archtester 2020-04-24 15:02:00 UTC
* Package:    dev-ruby/globalid-0.4.2
 * Repository: gentoo
 * Maintainer: ruby@gentoo.org
 * USE:        elibc_glibc kernel_linux ruby_targets_ruby25 sparc test userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox test userpriv usersandbox
>>> Unpacking source...
 * Running unpack phase for all ...
>>> Unpacking globalid-0.4.2.tar.gz to /var/tmp/portage/dev-ruby/globalid-0.4.2/work/all
>>> Source unpacked in /var/tmp/portage/dev-ruby/globalid-0.4.2/work
>>> Preparing source in /var/tmp/portage/dev-ruby/globalid-0.4.2/work ...
 * Running prepare phase for all ...
 * Running prepare phase for all ...
 * Running source copy phase for ruby25 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-ruby/globalid-0.4.2/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-ruby/globalid-0.4.2/work ...
 * Running compile phase for all ...
>>> Source compiled.
>>> Test phase: dev-ruby/globalid-0.4.2
 * Running test phase for ruby25 ...
/usr/bin/ruby25 -w -I"lib:test" -I"/usr/lib/ruby/gems/2.5.0/gems/rake-13.0.1/lib" "/usr/lib/ruby/gems/2.5.0/gems/rake-13.0.1/lib/rake/rake_test_loader.rb" "test/cases/global_id_test.rb" "test/cases/global_identification_test.rb" "test/cases/global_locator_test.rb" "test/cases/railtie_test.rb" "test/cases/signed_global_id_test.rb" "test/cases/uri_gid_test.rb" "test/cases/verifier_test.rb" 
Bundler could not find compatible versions for gem "thread_safe":
  In Gemfile:
    globalid was resolved to 0.4.2, which depends on
      activesupport (>= 4.2.0) was resolved to 6.0.2.2, which depends on
        tzinfo (~> 1.1) was resolved to 1.2.6, which depends on
          thread_safe (~> 0.1)

Could not find gem 'thread_safe (~> 0.1)', which is required by gem 'tzinfo (~> 1.1)', in any of the sources.
rake aborted!
Command failed with status (6): [ruby -w -I"lib:test" -I"/usr/lib/ruby/gems/2.5.0/gems/rake-13.0.1/lib" "/usr/lib/ruby/gems/2.5.0/gems/rake-13.0.1/lib/rake/rake_test_loader.rb" "test/cases/global_id_test.rb" "test/cases/global_identification_test.rb" "test/cases/global_locator_test.rb" "test/cases/railtie_test.rb" "test/cases/signed_global_id_test.rb" "test/cases/uri_gid_test.rb" "test/cases/verifier_test.rb" ]

Tasks: TOP => test
(See full trace by running task with --trace)
Comment 1 Rolf Eike Beer archtester 2020-04-24 15:03:21 UTC
After manually merging dev-ruby/thread_safe, then there are new failures:

Error:
RailtieTest#test_GlobalID.app_for_Blog::Application_defaults_to_blog:
LoadError: cannot load such file -- crass
    test/cases/railtie_test.rb:21:in `block in <class:RailtieTest>'


rails test test/cases/railtie_test.rb:20

E
Comment 2 Rolf Eike Beer archtester 2020-04-24 15:05:48 UTC
And the latter error does not go away even with this one merged:

chroot ~ # equery l dev-ruby/crass
 * Searching for crass in dev-ruby ...
[IP-] [  ] dev-ruby/crass-1.0.4:0
Comment 3 Hans de Graaff gentoo-dev Security 2020-05-05 09:12:46 UTC
The thread_safe issue was resolved in bug 720290
Comment 4 Hans de Graaff gentoo-dev Security 2020-05-05 09:13:18 UTC
*** Bug 720408 has been marked as a duplicate of this bug. ***
Comment 5 Hans de Graaff gentoo-dev Security 2020-05-05 09:25:32 UTC
I can't reproduce this. crass should already be installed as a dependency (via railties -> actionpack -> rails-html-sanitizer -> loofah).

If crass is installed and this error remains then it would be useful to know what this returns:

ruby -r crass -e "puts Crass.inspect"
Comment 6 Rolf Eike Beer archtester 2020-05-05 18:08:21 UTC
It just outputs "Crass".
Comment 7 Hans de Graaff gentoo-dev Security 2020-05-07 04:30:22 UTC
(In reply to Rolf Eike Beer from comment #6)
> It just outputs "Crass".

That was my expectation. So we now know it installed correctly and can be required. This also means I don't understand why this failure happens.
Comment 8 Agostino Sarubbo gentoo-dev 2020-05-13 09:45:43 UTC
(In reply to Rolf Eike Beer from comment #6)
> It just outputs "Crass".

Same here.
Comment 9 Larry the Git Cow gentoo-dev 2020-05-16 04:41:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=903f9ceadd8dc1d4a36e5d73e6547fb77560b31f

commit 903f9ceadd8dc1d4a36e5d73e6547fb77560b31f
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2020-05-16 04:20:40 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2020-05-16 04:20:40 +0000

    dev-ruby/loofah: add proper gemspec
    
    Closes: https://bugs.gentoo.org/719254
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 dev-ruby/loofah/{loofah-2.5.0.ebuild => loofah-2.5.0-r1.ebuild} | 2 ++
 1 file changed, 2 insertions(+)
Comment 10 Rolf Eike Beer archtester 2020-05-17 08:32:30 UTC
Nope, this did only change the error:

[IP-] [  ] dev-ruby/loofah-2.5.0-r1:0


Error:
RailtieTest#test_GlobalID.app_can_be_set_with_config.global_id.app_=:
LoadError: cannot load such file -- loofah
    test/cases/railtie_test.rb:27:in `block in <class:RailtieTest>'


rails test test/cases/railtie_test.rb:25
Comment 11 Hans de Graaff gentoo-dev Security 2020-05-19 13:21:35 UTC
(In reply to Rolf Eike Beer from comment #10)
> Nope, this did only change the error:

This upstream does very weird things with version numbers, it turns out.
Comment 12 Larry the Git Cow gentoo-dev 2020-05-19 13:22:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f295d004b21e35134e6a9afc5f904ad2a788bf68

commit f295d004b21e35134e6a9afc5f904ad2a788bf68
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2020-05-19 13:21:40 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2020-05-19 13:21:54 +0000

    dev-ruby/loofah: fix version in gemspec
    
    Closes: https://bugs.gentoo.org/719254
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 dev-ruby/loofah/{loofah-2.5.0-r1.ebuild => loofah-2.5.0-r2.ebuild} | 3 +++
 1 file changed, 3 insertions(+)