Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 642390 - =dev-ruby/fast_gettext-1.5.1 is missing test dependency on sqlite3 (or exception backtrace?)
Summary: =dev-ruby/fast_gettext-1.5.1 is missing test dependency on sqlite3 (or except...
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: TESTFAILURE
Depends on:
Blocks: 639472
  Show dependency tree
 
Reported: 2017-12-27 11:23 UTC by Sergei Trofimovich (RETIRED)
Modified: 2017-12-28 06:44 UTC (History)
0 users

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


Attachments
dev-ruby-fast_gettext-1.5.1-build.log (dev-ruby-fast_gettext-1.5.1-build.log,7.50 KB, text/x-log)
2017-12-27 11:40 UTC, Sergei Trofimovich (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2017-12-27 11:23:12 UTC
The failure is the following:


>>> Test phase: dev-ruby/fast_gettext-1.5.1
 * Running test phase for ruby22 ...
....................................................................................................*.........................................................................................$
......................Could not find gem 'sqlite3' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.
F..............

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) FastGettext::TranslationRepository::Merge can work in SAFE mode
     # No reason given
     Failure/Error: `ruby spec/cases/safe_mode_can_handle_locales.rb 2>&1`.should == 'true'
     
       expected: "true"
            got: "/usr/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:59:in `require': Insecure operatio...tion_repository.rb:11:in `build'\n\tfrom spec/cases/safe_mode_can_han$
le_locales.rb:4:in `<main>'\n" (using ==)
       Diff:
       @@ -1,2 +1,5 @@
       -true
       +/usr/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:59:in `require': Insecure operation - gem_original_require (SecurityError)
       +        from /usr/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:59:in `require'
       +        from /var/tmp/portage/dev-ruby/fast_gettext-1.5.1/work/ruby22/fast_gettext-1.5.1/lib/fast_gettext/translation_repository.rb:11:in `build'
       +        from spec/cases/safe_mode_can_handle_locales.rb:4:in `<main>'
       
     # ./spec/fast_gettext/translation_repository/merge_spec.rb:142:in `block (3 levels) in <top (required)>'
     # ./spec/spec_helper.rb:37:in `pending_if'
     # ./spec/fast_gettext/translation_repository/merge_spec.rb:141:in `block (2 levels) in <top (required)>'

Failures:

  1) Iconv also works when Iconv was not found locally
     Failure/Error: system("bundle exec /usr/bin/ruby22 spec/cases/iconv_fallback.rb").should == true
     
       expected: true
            got: false (using ==)
     # ./spec/fast_gettext/vendor/iconv_spec.rb:5:in `block (2 levels) in <top (required)>'

Finished in 21.17 seconds (files took 4.56 seconds to load)
228 examples, 1 failure, 1 pending

Failed examples:

rspec ./spec/fast_gettext/vendor/iconv_spec.rb:4 # Iconv also works when Iconv was not found locally

 * ERROR: dev-ruby/fast_gettext-1.5.1::gentoo failed (test phase):
 *   rspec failed
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2017-12-27 11:40:17 UTC
Created attachment 511732 [details]
dev-ruby-fast_gettext-1.5.1-build.log
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2017-12-27 12:28:44 UTC
After dev-ruby/sqlite3 being installed test suite complains about activerecord:

 * Running test phase for ruby22 ...
....................................................................................................*..........................................................................................
......................Could not find gem 'activerecord' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.
F..............

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) FastGettext::TranslationRepository::Merge can work in SAFE mode
     # No reason given
     Failure/Error: `ruby spec/cases/safe_mode_can_handle_locales.rb 2>&1`.should == 'true'
     
       expected: "true"
            got: "/usr/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:59:in `require': Insecure operatio...tion_repository.rb:11:in `build'\n\tfrom spec/cases/safe_mode_can_hand
le_locales.rb:4:in `<main>'\n" (using ==)
       Diff:
       @@ -1,2 +1,5 @@
       -true
       +/usr/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:59:in `require': Insecure operation - gem_original_require (SecurityError)
       +        from /usr/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:59:in `require'
       +        from /var/tmp/portage/dev-ruby/fast_gettext-1.5.1/work/ruby22/fast_gettext-1.5.1/lib/fast_gettext/translation_repository.rb:11:in `build'
       +        from spec/cases/safe_mode_can_handle_locales.rb:4:in `<main>'
       
     # ./spec/fast_gettext/translation_repository/merge_spec.rb:142:in `block (3 levels) in <top (required)>'
     # ./spec/spec_helper.rb:37:in `pending_if'
     # ./spec/fast_gettext/translation_repository/merge_spec.rb:141:in `block (2 levels) in <top (required)>'

Failures:

  1) Iconv also works when Iconv was not found locally
     Failure/Error: system("bundle exec /usr/bin/ruby22 spec/cases/iconv_fallback.rb").should == true
     
       expected: true
            got: false (using ==)
     # ./spec/fast_gettext/vendor/iconv_spec.rb:5:in `block (2 levels) in <top (required)>'

Finished in 22.15 seconds (files took 4.93 seconds to load)
228 examples, 1 failure, 1 pending
Comment 3 Larry the Git Cow gentoo-dev 2017-12-28 06:44:11 UTC
The bug has been closed via the following commit(s):

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

commit ff3c3e2f426c896e41c7ef06aa906f8592a391b5
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2017-12-28 06:44:02 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2017-12-28 06:44:02 +0000

    dev-ruby/fast_gettext: fix tests, bug 642390
    
    Also remove activerecord and associated rails dependencies from the
    gemspec, otherwise bundler will still require them even if they are no
    longer needed.
    
    Closes: https://bugs.gentoo.org/642390
    Package-Manager: Portage-2.3.13, Repoman-2.3.3

 dev-ruby/fast_gettext/fast_gettext-1.5.1.ebuild | 2 +-
 dev-ruby/fast_gettext/fast_gettext-1.6.0.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)