Public bug reported:
The following binaries crash with the following exception:
* ec2-bundle-image –manual
* ec2-bundle-vol --manual
* ec2-migrate-bundle --manual
* ec2-migrate-manifest --manual
* ec2-unbundle --manual
```
$ ec2-bundle-vol --manual
/usr/lib/ec2-ami-tools/lib/ec2/platform/current.rb:43:in `initialize':
undefined method `exists?' for File:Class (NoMethodError)
raise Unsupported.new(base), caller unless File.exists? file
^^^^^^^^
Did you mean? exist?
from /usr/lib/ec2-ami-tools/lib/ec2/platform/current.rb:53:in
`<module:Platform>'
from /usr/lib/ec2-ami-tools/lib/ec2/platform/current.rb:16:in
`<module:EC2>'
from /usr/lib/ec2-ami-tools/lib/ec2/platform/current.rb:15:in `<top
(required)>'
from
<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:86:in
`require'
from
<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:86:in
`require'
from /usr/lib/ec2-ami-tools/lib/ec2/amitools/bundle.rb:16:in `<top
(required)>'
from
<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:86:in
`require'
from
<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:86:in
`require'
from /usr/lib/ec2-ami-tools/lib/ec2/amitools/bundlevol.rb:11:in `<main>'
```
The issue is that Ruby dropped the deprecated method `File.exists` in
upstream Ruby 3.2.0, see [1].
This issue is not fixed upstream (latest version, at the moment of
writing, is 1.5.19, see [2]) and they do not have a public issue
tracker.
Refs:
[1] https://bugs.ruby-lang.org/issues/17391
[2] https://s3.amazonaws.com/ec2-downloads/
** Affects: ec2-ami-tools (Ubuntu)
Importance: Medium
Assignee: alberto (alberto)
Status: New
** Affects: ec2-ami-tools (Ubuntu Noble)
Importance: Undecided
Status: New
** Affects: ec2-ami-tools (Ubuntu Oracular)
Importance: Medium
Assignee: alberto (alberto)
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2078046
Title:
undefined method `exists?' for File:Class
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ec2-ami-tools/+bug/2078046/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs