Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 428704 - =dev-ruby/tins-0.3.14: compiles okay but fails tests on ppc64
Summary: =dev-ruby/tins-0.3.14: compiles okay but fails tests on ppc64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 428454
  Show dependency tree
 
Reported: 2012-07-30 19:41 UTC by Anthony Basile
Modified: 2012-08-01 10:05 UTC (History)
0 users

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 Anthony Basile gentoo-dev 2012-07-30 19:41:50 UTC
I'll in line the failure:

 * Running test phase for ruby18 ...
Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/syntax-1.0.0.gemspec]: undefined method `prerelease?' for "1.0.0":String
Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/rspec-core-2.6.4.gemspec]: undefined method `prerelease?' for "2.6.4":String
Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/rdoc-3.12.gemspec]: undefined method `prerelease?' for "3.12":String
Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/test-unit-2.4.8.gemspec]: undefined method `prerelease?' for "2.4.8":String
Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/rspec-2.6.0.gemspec]: undefined method `prerelease?' for "2.6.0":String
Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/daemons-1.1.8.gemspec]: undefined method `prerelease?' for "1.1.8":String
Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/minitest-2.12.1.gemspec]: undefined method `prerelease?' for "2.12.1":String
Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/rake-compiler-0.8.1.gemspec]: undefined method `prerelease?' for "0.8.1":String
Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/ruby-progressbar-0.0.10.gemspec]: undefined method `prerelease?' for "0.0.10":String
Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/ZenTest-4.7.0.gemspec]: undefined method `prerelease?' for "4.7.0":String
Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/racc-1.4.6.gemspec]: undefined method `prerelease?' for "1.4.6":String
Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/json-1.5.4.gemspec]: undefined method `prerelease?' for "1.5.4":String
Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/hoe-2.12.5.gemspec]: undefined method `prerelease?' for "2.12.5":String
Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/fcgi-0.8.8.gemspec]: undefined method `prerelease?' for "0.8.8":String
Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/rexical-1.0.5.gemspec]: undefined method `prerelease?' for "1.0.5":String
Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/rspec-mocks-2.6.0.gemspec]: undefined method `prerelease?' for "2.6.0":String
Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/hoe-seattlerb-1.2.8.gemspec]: undefined method `prerelease?' for "1.2.8":String
Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/rake-0.8.7.gemspec]: undefined method `prerelease?' for "0.8.7":String
Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/rubyforge-2.0.4.gemspec]: undefined method `prerelease?' for "2.0.4":String
Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/tins-0.3.14.gemspec]: undefined method `prerelease?' for "0.3.14":String
Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/nokogiri-1.5.2.gemspec]: undefined method `prerelease?' for "1.5.2":String
Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/diff-lcs-1.1.3.gemspec]: undefined method `prerelease?' for "1.1.3":String
Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/builder-2.1.2.gemspec]: undefined method `prerelease?' for "2.1.2":String
Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/rspec-expectations-2.6.0.gemspec]: undefined method `prerelease?' for "2.6.0":String
Loaded suite [tests/ask_and_send_test.rb, tests/bijection_test.rb, tests/blank_full_test.rb, tests/count_by_test.rb, tests/date_dummy_test.rb, tests/date_time_dummy_test.rb, tests/deep_dup_test.rb, tests/extract_last_argument_options_test.rb, tests/file_binary_test.rb, tests/find_test.rb, tests/generator_test.rb, tests/hash_symbolize_keys_recursive_test.rb, tests/hash_union_test.rb, tests/if_predicate_test.rb, tests/limited_test.rb, tests/lines_file_test.rb, tests/memoize_test.rb, tests/minimize_test.rb, tests/module_group_test.rb, tests/named_test.rb, tests/null_test.rb, tests/partial_application_test.rb, tests/range_plus_test.rb, tests/require_maybe_test.rb, tests/round_test.rb, tests/secure_write_test.rb, tests/shuffle_test.rb, tests/string_camelize_test.rb, tests/string_underscore_test.rb, tests/string_version_test.rb, tests/subhash_test.rb, tests/test_helper.rb, tests/time_dummy_test.rb, tests/try_test.rb, tests/uniq_by_test.rb]
Started
....................F.............................................
Finished in 0.492244 seconds.

  1) Failure:
test_check_directory_without_access(Tins::FindTest) [./tests/find_test.rb:40]:
<["/var/tmp/portage/dev-ruby/tins-0.3.14/temp/test.28189",
 "/var/tmp/portage/dev-ruby/tins-0.3.14/temp/test.28189/foo",
 "/var/tmp/portage/dev-ruby/tins-0.3.14/temp/test.28189/foo/bar"]> expected but was
<["/var/tmp/portage/dev-ruby/tins-0.3.14/temp/test.28189",
 "/var/tmp/portage/dev-ruby/tins-0.3.14/temp/test.28189/foo",
 "/var/tmp/portage/dev-ruby/tins-0.3.14/temp/test.28189/foo/bar",
 "/var/tmp/portage/dev-ruby/tins-0.3.14/temp/test.28189/foo/bar/file"]>.

66 tests, 319 assertions, 1 failures, 0 errors
Comment 1 Anthony Basile gentoo-dev 2012-07-30 19:43:02 UTC
Interestingly enough, tins-0.4.3 passes.
Comment 2 Hans de Graaff gentoo-dev Security 2012-07-31 05:37:14 UTC
(In reply to comment #0)

>   1) Failure:
> test_check_directory_without_access(Tins::FindTest)

Can you confirm that you are not using FEATURES=userpriv (i.e., running the test as root)?
Comment 3 Anthony Basile gentoo-dev 2012-08-01 00:16:39 UTC
(In reply to comment #2)
> (In reply to comment #0)
> 
> >   1) Failure:
> > test_check_directory_without_access(Tins::FindTest)
> 
> Can you confirm that you are not using FEATURES=userpriv (i.e., running the
> test as root)?

I am not using FEATURES=userpriv.  I am doing this in a chroot, but would that matter?
Comment 4 Hans de Graaff gentoo-dev Security 2012-08-01 05:44:50 UTC
(In reply to comment #3)

> I am not using FEATURES=userpriv.  I am doing this in a chroot, but would
> that matter?

No, it matters that you are running them as root. That test tries to test file permissions, but as root you can read everything anyway. tins 0.4.3 guards against that by not running the test. I guess for tins 0.3.14 we'll just skip that test altogether.
Comment 5 Anthony Basile gentoo-dev 2012-08-01 10:05:41 UTC
(In reply to comment #4)
> (In reply to comment #3)
> 
> > I am not using FEATURES=userpriv.  I am doing this in a chroot, but would
> > that matter?
> 
> No, it matters that you are running them as root. That test tries to test
> file permissions, but as root you can read everything anyway. tins 0.4.3
> guards against that by not running the test. I guess for tins 0.3.14 we'll
> just skip that test altogether.

Not being familiar with the test I assumed it should be run as root.