Public bug reported:

This issue is related only to the Ubuntu Focal and below, in case of
installing gem as a deb package and add it into Gemfile, we get missed
gem issue:

```
$ cat Gemfile
source 'https://rubygems.org'
gem 'text-format'

$ bundler2.7 install --local
Resolving dependencies...
Bundler could not find compatible versions for gem "text-hyphen":
  In Gemfile:
    text-format was resolved to 1.0.0, which depends on
      text-hyphen (~> 1.0.0)

Could not find gem 'text-hyphen (~> 1.0.0)', which is required by gem
'text-format', in any of the sources.

$ apt show ruby-text-hyphen
N: Unable to locate package ruby-text-hyphen
N: Unable to locate package ruby-text-hyphen
E: No packages found

$ apt show ruby-text-format
Package: ruby-text-format
Version: 1.0.0-4build1
Priority: optional
Section: universe/ruby
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com>
Original-Maintainer: Debian Ruby Extras Maintainers 
<pkg-ruby-extras-maintain...@lists.alioth.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 74.8 kB
Depends: ruby | ruby-interpreter
Homepage: https://rubygems.org/gems/text-format
Ruby-Versions: all
Download-Size: 16.0 kB
APT-Manual-Installed: yes
APT-Sources: http://ubuntu-mirror.inca.infoblox.com/ubuntu focal/universe amd64 
Packages
Description: Ruby library for text formatting
 Text::Format is provides the ability to nicely format fixed-width
 text with knowledge of the writable space (number of columns),
 margins, and indentation settings. Text::Format can work with either
 TeX::Hyphen or Text::Hyphen to hyphenate words when formatting.
```

In fact this issue is already fixed in the version 1.0.0-5 which was
pushed to the Ubuntu Impish and above and all required patches for this
change are present in the Ubuntu and Debian repositories.

** Affects: ruby-text-format (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  This issue is related only to the Ubuntu Focal and below, in case of
  installing gem as a deb package and add it into Gemfile, we get missed
  gem issue:
  
  ```
- $ cat Gemfile 
+ $ cat Gemfile
  source 'https://rubygems.org'
  gem 'text-format'
  
  $ bundler2.7 install --local
  Resolving dependencies...
  Bundler could not find compatible versions for gem "text-hyphen":
-   In Gemfile:
-     text-format was resolved to 1.0.0, which depends on
-       text-hyphen (~> 1.0.0)
+   In Gemfile:
+     text-format was resolved to 1.0.0, which depends on
+       text-hyphen (~> 1.0.0)
  
  Could not find gem 'text-hyphen (~> 1.0.0)', which is required by gem
  'text-format', in any of the sources.
  
- $ apt show ruby-text-hypen
- N: Unable to locate package ruby-text-hypen
- N: Unable to locate package ruby-text-hypen
+ $ apt show ruby-text-hyphen
+ N: Unable to locate package ruby-text-hyphen
+ N: Unable to locate package ruby-text-hyphen
  E: No packages found
  
  $ apt show ruby-text-format
  Package: ruby-text-format
  Version: 1.0.0-4build1
  Priority: optional
  Section: universe/ruby
  Origin: Ubuntu
  Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com>
  Original-Maintainer: Debian Ruby Extras Maintainers 
<pkg-ruby-extras-maintain...@lists.alioth.debian.org>
  Bugs: https://bugs.launchpad.net/ubuntu/+filebug
  Installed-Size: 74.8 kB
  Depends: ruby | ruby-interpreter
  Homepage: https://rubygems.org/gems/text-format
  Ruby-Versions: all
  Download-Size: 16.0 kB
  APT-Manual-Installed: yes
  APT-Sources: http://ubuntu-mirror.inca.infoblox.com/ubuntu focal/universe 
amd64 Packages
  Description: Ruby library for text formatting
-  Text::Format is provides the ability to nicely format fixed-width
-  text with knowledge of the writable space (number of columns),
-  margins, and indentation settings. Text::Format can work with either
-  TeX::Hyphen or Text::Hyphen to hyphenate words when formatting.
+  Text::Format is provides the ability to nicely format fixed-width
+  text with knowledge of the writable space (number of columns),
+  margins, and indentation settings. Text::Format can work with either
+  TeX::Hyphen or Text::Hyphen to hyphenate words when formatting.
  ```
  
  In fact this issue is already fixed in the version 1.0.0-5 which was
  pushed to the Ubuntu Impish and above and all required patches for this
  change are present in the Ubuntu and Debian repositories.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2091132

Title:
  text-format gem depends on text-hypen, but text-hyphen was never
  packaged

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ruby-text-format/+bug/2091132/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to