ruby packages building from .gem
Jakub Bogusz
qboosh at pld-linux.org
Sat Feb 18 11:54:12 CET 2023
How is it supposed to work (taking ruby-ffi.spec as example)?
.gem itself is tar archive containing metadata.gz and data.tar.gz.
But rpm uses "gem unpack", which unpacks data.tar.gz from inside.
And build fails with:
+ cd ffi-1.9.25
+ /usr/lib/rpm/gem_helper.rb spec
/usr/lib/rpm/gem_helper.rb:77:in `open': No such file or directory @ rb_sysopen - metadata.gz (Errno::ENOENT)
from /usr/lib/rpm/gem_helper.rb:77:in `<main>'
What's wrong here, how to fix it properly/nice?
I can fix the build by adding `%{__tar} xf %{SOURCE0} metadata.gz`
but I wouldn't call it nice.
--
Jakub Bogusz http://qboosh.pl/
More information about the pld-devel-en
mailing list