Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 935809 - dev-lang/ruby-3.1.5 fails tests when ruby interpreter not installed: sh: line 1: ruby: command not found
Summary: dev-lang/ruby-3.1.5 fails tests when ruby interpreter not installed: sh: line...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-07-10 06:05 UTC by matoro
Modified: 2024-07-11 06:13 UTC (History)
1 user (show)

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


Attachments
build.log and emerge --info (file_935809.txt,379.09 KB, text/plain)
2024-07-10 06:05 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2024-07-10 06:05:40 UTC
Created attachment 897387 [details]
build.log and emerge --info

dev-lang/ruby tests seem to assume there is a ruby interpreter already installed.  Log from amd64 to demonstrate this is arch-independent issue.

# Running tests:


  1) Failure:
TestRelineAsReadline#test_without_tty [/var/tmp/portage/dev-lang/ruby-3.1.5/work/ruby-3.1.5/test/readline/test_readline.rb:843]:
It should work fine without tty, but it failed.
Error output:
sh: line 1: ruby: command not found


Leaked file descriptor: TestGemRemoteFetcher#test_cache_update_path: 5 : #<TCPServer:fd 5, AF_INET, 0.0.0.0, 34563>
Leaked file descriptor: TestGemRemoteFetcher#test_cache_update_path: 8 : #<TCPServer:fd 8, AF_INET6, ::, 34563>
Leaked file descriptor: TestGemRemoteFetcher#test_cache_update_path: 9 : #<IO:fd 9>
Leaked file descriptor: TestGemRemoteFetcher#test_cache_update_path: 10 : #<IO:fd 10>
Closed file descriptor: TestGemRemoteFetcher#test_fetch_s3_url_creds: 5
Closed file descriptor: TestGemRemoteFetcher#test_fetch_s3_url_creds: 8
Closed file descriptor: TestGemRemoteFetcher#test_fetch_s3_url_creds: 9
Closed file descriptor: TestGemRemoteFetcher#test_fetch_s3_url_creds: 10
Leaked file descriptor: TestGemRemoteFetcher#test_fetch_s3_config_creds_with_region: 5 : #<TCPServer:fd 5, AF_INET, 0.0.0.0, 46369>
Leaked file descriptor: TestGemRemoteFetcher#test_fetch_s3_config_creds_with_region: 8 : #<TCPServer:fd 8, AF_INET6, ::, 46369>
Leaked file descriptor: TestGemRemoteFetcher#test_fetch_s3_config_creds_with_region: 9 : #<IO:fd 9>
Leaked file descriptor: TestGemRemoteFetcher#test_fetch_s3_config_creds_with_region: 10 : #<IO:fd 10>
Closed file descriptor: TestGemRemoteFetcher#test_fetch_path_gzip: 5
Closed file descriptor: TestGemRemoteFetcher#test_fetch_path_gzip: 8
Closed file descriptor: TestGemRemoteFetcher#test_fetch_path_gzip: 9
Closed file descriptor: TestGemRemoteFetcher#test_fetch_path_gzip: 10

  2) Failure:
TestReadline#test_without_tty [/var/tmp/portage/dev-lang/ruby-3.1.5/work/ruby-3.1.5/test/readline/test_readline.rb:843]:
It should work fine without tty, but it failed.
Error output:
sh: line 1: ruby: command not found


Finished tests in 327.832069s, 64.4751 tests/s, 8398.0893 assertions/s.
21137 tests, 2753163 assertions, 2 failures, 0 errors, 48 skips

ruby -v: ruby 3.1.5p252 (2024-04-23 revision 1945f8dc0e) [x86_64-linux]
make: *** [uncommon.mk:829: yes-test-all] Error 2
Comment 1 Larry the Git Cow gentoo-dev 2024-07-11 06:13:56 UTC
The bug has been closed via the following commit(s):

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

commit 5364f7046f5083b3207d009c0b2982a69849fee8
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2024-07-11 06:12:45 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2024-07-11 06:13:41 +0000

    dev-lang/ruby: backport fix for tty test to 3.1
    
    Closes: https://bugs.gentoo.org/935809
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 .../files/3.1/012-test-readline-without-tty.patch  | 33 ++++++++++++++++++++++
 dev-lang/ruby/ruby-3.1.5.ebuild                    |  1 +
 dev-lang/ruby/ruby-3.1.6-r1.ebuild                 |  1 +
 dev-lang/ruby/ruby-3.1.6.ebuild                    |  1 +
 4 files changed, 36 insertions(+)