Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.rc > #288783
| From | Antonio Terceiro <terceiro@debian.org> |
|---|---|
| Newsgroups | linux.debian.bugs.rc |
| Subject | Bug#972702: ruby-bundler: dependency resolution fails for compiled gems |
| Date | 2020-10-29 13:40 +0100 |
| Message-ID | <B5fe2-5Xv-15@gated-at.bofh.it> (permalink) |
| References | <B2NlU-5Gm-9@gated-at.bofh.it> <B5dlT-4Pq-1@gated-at.bofh.it> <B2NlU-5Gm-9@gated-at.bofh.it> <B5dlT-4Pq-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Thu, Oct 29, 2020 at 11:17:59AM +0100, David Rodríguez wrote: > Hi! > > Just to clarify why I prefer the second solution, I think what debian does is shipping precompiled versions of extensions, so technically the gemspec shipped in the debian should include no extensions at all. This is something some upstream gems already do. Take, for example, google-protobuf. It has a precompiled version for linux: https://rubygems.org/gems/google-protobuf/versions/3.13.0-x86_64-linux. If we fetch and unpack this package, we can see it includes the prebuilt `.so` extension, but no extensions in its gemspec: > > $ gem fetch google-protobuf > Fetching google-protobuf-3.13.0-x86_64-linux.gem > Downloaded google-protobuf-3.13.0-x86_64-linux > > $ gem unpack google-protobuf-3.13.0-x86_64-linux.gem > Unpacked gem: '/home/deivid/Code/playground/google-protobuf-3.13.0-x86_64-linux' > > $ find google-protobuf-3.13.0-x86_64-linux -name '*.so' > google-protobuf-3.13.0-x86_64-linux/lib/google/2.6/protobuf_c.so > google-protobuf-3.13.0-x86_64-linux/lib/google/2.4/protobuf_c.so > google-protobuf-3.13.0-x86_64-linux/lib/google/2.7/protobuf_c.so > google-protobuf-3.13.0-x86_64-linux/lib/google/2.5/protobuf_c.so > google-protobuf-3.13.0-x86_64-linux/lib/google/2.3/protobuf_c.so > > $ gem unpack google-protobuf-3.13.0-x86_64-linux.gem --spec && grep extensions google-protobuf-3.13.0-x86_64-linux.gemspec > extensions: [] > > I think the cleanest solution would be for debian to do the same thing. Fair enough. Now that I think about it, extensions is supposed to be a list of extensions that need to be built, so indeed dropping it from the gemspec included in the Debian packages make sense. Thanks!
Back to linux.debian.bugs.rc | Previous | Next | Find similar | Unroll thread
Bug#972702: ruby-bundler: dependency resolution fails for compiled gems Antonio Terceiro <terceiro@debian.org> - 2020-10-29 13:40 +0100
csiph-web