$ rpm -Uhv ../RPMS/ruby-pkg-config-1.2.8-1.noarch.rpm

error: Failed dependencies:
        ruby(abi) = 2.3.0 is needed by ruby-pkg-config-1.2.8-1.noarch

$ rpm -q ruby-modules --provides|grep abi

ruby(abi) = 2.3

so, this used to be 2.3, but now is 2.3.0 because ruby_version is defined.

which way we want to fix this? 2.3 or 2.3.0?

https://github.com/pld-linux/rpm/blob/96a1333d14bbb384fa0a18789ec327575692dcdd/rubygems.rb#L40

# as ruby_version may be empty, take version from basename of archdir
ruby_version = RbConfig::CONFIG["ruby_version"].empty? ? File.basename(RbConfig::CONFIG["archdir"]) : RbConfig::CONFIG["ruby_version"]


in ruby.spec it's hardcoded, likely due bootstrap issues, (rubygems.rb can be probably hacked to provide it automatically, but probably not worth of it)


https://github.com/pld-linux/ruby/blob/1648a12b746adaeb729a286b917de367e1417ad6/ruby.spec#L178-L179

--
glen

_______________________________________________
pld-devel-en mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

Reply via email to