Provides in rubygem pkgs
Hi, via https://www.reddit.com/r/openSUSE/comments/q84874/how_to_get_all_software_on... I noticed that a user had trouble finding+installing the lolcat program, even though it is part of Tumbleweed. When you do zypper in lolcat it even checks for Provides and normally, binaries in packages automatically generate Provides. That is the first strange thing there. Then I tried to add an explicit Provides line in https://build.opensuse.org/package/rdiff/home:bmwiedemann:ruby/rubygem-lolcat?linkrev=base&rev=4 but still, the resulting ruby2.7-rubygem-lolcat-100.0.1-lp153.26.1.x86_64.rpm does not have it. Is there something in the multi-ruby-magic that loses this? Is there some good reason to not have it? Ciao Bernhard M.
On 10/15/21 6:56 AM, Bernhard M. Wiedemann wrote:
Hi,
via https://www.reddit.com/r/openSUSE/comments/q84874/how_to_get_all_software_on... I noticed that a user had trouble finding+installing the lolcat program, even though it is part of Tumbleweed.
When you do zypper in lolcat it even checks for Provides and normally, binaries in packages automatically generate Provides. That is the first strange thing there.
Then I tried to add an explicit Provides line in https://build.opensuse.org/package/rdiff/home:bmwiedemann:ruby/rubygem-lolcat?linkrev=base&rev=4
but still, the resulting ruby2.7-rubygem-lolcat-100.0.1-lp153.26.1.x86_64.rpm does not have it. Is there something in the multi-ruby-magic that loses this? Is there some good reason to not have it?
You need to add it to the preamble in cpanspec.yaml - the spec files for the ruby specific packages are generated dynamically. And binaries in packages do not automatically generate provides. That's why tools like cnf read the file lists. Greetings, Stephan
participants (2)
-
Bernhard M. Wiedemann
-
Stephan Kulow