On Wed, 8 Jan 2014 16:49:02 +0100 Klaus Kaempf <[email protected]> wrote:
> * Josef Reidinger <[email protected]> [Jan 08. 2014 15:21]: > > > > Ruby in 2.1 change destination where lives extensions. In ruby 2.1 > > it lives in e.g. for nokogiri > > at > > /usr/lib64/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0/nokogiri-1.6.1/nokogiri/nokogiri.so > > Josef, > > we need a couple of more rpm macros to specify gem pathes here. I am > quite far with the following set: > > %{!?gem_base: %global gem_base %(ruby -r rubygems -e 'print > Gem::BasicSpecification.new.base_dir')} %{!?gem_extensions: %global > gem_extensions %(ruby -r rubygems -e 'print > Gem::BasicSpecification.new.extensions_dir')} %{!?gem_doc_ext: > %global gem_doc_ext %(ruby -r rubygems -e 'bs = > Gem::BasicSpecification.new; rp = > bs.extensions_dir.rpartition(bs.base_dir); print rp[1]+"/doc"+rp[2]')} > > (gem native extensions doc directory is a mess since its not reflected > in Gem::BasicSpecification :-/) > > > However, I still run into > > [ 16s] rubygem-nokogiri-1.6.1-1.x86_64.rpm: directories not owned > by a package: [ 16s] > - /usr/lib64/ruby/gems/2.1.0/extensions/x86_64-linux [ 16s] > - /usr/lib64/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0 > > which apparently is a ruby21 packaging bug: > > rpm -qf /usr/lib64/ruby/gems/2.1.0/extensions/x86_64-linux > file /usr/lib64/ruby/gems/2.1.0/extensions/x86_64-linux is not owned > by any package > > @coolo: I'll submit a new ruby21 with a fixed filelist. > > > Klaus Great, thanks Klaus. Just submit it to staging project (if you do not have permission create sr and I will accept it or if I have permissions I add you there ) and I start fixing failing rubygems. It is really confusing that ruby now contain rubygems, but there is RbConfig and Gem::BasicSpecification. Josef -- To unsubscribe, e-mail: [email protected] To contact the owner, e-mail: [email protected]
