[DRE-maint] Bug#914771: bundler: cannot load such file -- bundler-1.16.1/exe/bundle

Antonio Terceiro terceiro at debian.org
Fri Mar 8 15:31:05 GMT 2019


Hello,

On Thu, Nov 29, 2018 at 02:06:29AM +0800, Andrew Lee wrote:
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Run tests for ruby2.5 from debian/ruby-tests.rake                            │
> └──────────────────────────────────────────────────────────────────────────────┘
> 
> RUBYLIB=/home/alee/sources/rubygems/ruby-team/ruby-appraisal/debian/ruby-appraisal/usr/lib/ruby/vendor_ruby:. GEM_PATH=debian/ruby-appraisal/usr/share/rubygems-integration/all:/home/alee/.gem/ruby/2.5.0:/var/lib/gems/2.5.0:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.5.0:/usr/share/rubygems-integration/2.5.0:/usr/share/rubygems-integration/all ruby2.5 -S rake -f debian/ruby-tests.rake
> /usr/bin/ruby2.5 /usr/bin/rspec --pattern ./spec/\*\*/\*_spec.rb
> bin/bundle:104:in `load': cannot load such file -- /usr/share/rubygems-integration/all/gems/bundler-1.17.1/exe/bundle (LoadError)
> 	from bin/bundle:104:in `<main>'
[...]

On Mon, Jan 21, 2019 at 01:48:53PM -0500, arpin.hugo at gmail.com wrote:
[...]
> # This will fail: No such file or directory -- /usr/lib/ruby/exe/bundle
> (LoadError)
> bundle exec rails new . <<< "y"
> 
> I'm on buster, since the new release is coming soon, I think this is a
> good time to update bundler.
[...]

On Thu, Mar 07, 2019 at 04:22:15PM +0100, Daniel Leidert wrote:
> Package: ruby-bundler
> Version: 1.17.3-2
> Followup-For: Bug #914771
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> 
> If ruby-bundler is installed, `jekyll new` fails with this error:
> 
> jekyll new . --force
> Running bundle install in /tmp/test... 
>   Bundler: ruby: No such file or directory -- /usr/share/rubygems-integration/all/gems/bundler-1.17.3/exe/bundle (LoadError)
> 
> If ruby-bundler is removed. Everything works fine. This seems odd
> and might be related o the issue discussed here. IMHO this is an
> important issue and should be fixed before the next stable relase.
[...]

I did some testing and this is caused by bundle not being installed
using the Rubygems layout. That is assumed by a few other packages,
which causes this problems.

However, switching the installation layout at this point in time is too
risky as the fallout could be large (I tried locally and even bundler
itself would need more work). So it won't be possible to fix this before
buster is released.

If you need to workaround this issue for the time being, look for places
where your packages call something like `Gem.bin_path("bundler",
"bundle")` and replace that with a hardcoded "/usr/bin/bundle".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20190308/6067fb90/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list