Uploaded image for project: 'Community Package Repository'
  1. Community Package Repository
  2. CPR-294

gem installs fail with local engine

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2017/08/02
    • Component/s: Vanagon
    • Labels:
      None

      Description

      Trying to build puppet-agent using the local engine and gem installs fail due to BUNDLER environment variables being set when 'bundle exec build ...' is executed.

      unsetting the following variables allow the below command to succeed

      BUNDLE_BIN_PATH
      BUNDLE_GEMFILE
      GEM_HOME
      GEM_PATH
      RUBYOPT
      RUBYLIB

      cd ./ && \
      export GEM_HOME="/opt/puppetlabs/puppet/lib/ruby/gems/2.1.0" RUBYLIB="/opt/puppetlabs/puppet/lib/ruby/vendor_ruby:$RUBYLIB" && \
      /opt/puppetlabs/puppet/bin/gem install --no-rdoc --no-ri --local  deep_merge-1.0.1.gem
      /opt/pl-ruby/lib64/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/source/git.rb:191:in `rescue in load_spec_files': git://github.com/puppetlabs/packaging.git (at master@73d5e50) is not yet checked out. Run `bundle install` first. (Bundler::GitError)
              from /opt/pl-ruby/lib64/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/source/git.rb:188:in `load_spec_files'
              from /opt/pl-ruby/lib64/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/source/path.rb:92:in `local_specs'
              from /opt/pl-ruby/lib64/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/source/git.rb:159:in `specs'
              from /opt/pl-ruby/lib64/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/lazy_specification.rb:53:in `__materialize__'
              from /opt/pl-ruby/lib64/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/spec_set.rb:90:in `block in materialize'
              from /opt/pl-ruby/lib64/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/spec_set.rb:87:in `map!'
              from /opt/pl-ruby/lib64/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/spec_set.rb:87:in `materialize'
              from /opt/pl-ruby/lib64/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/definition.rb:137:in `specs'
              from /opt/pl-ruby/lib64/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/definition.rb:182:in `specs_for'
              from /opt/pl-ruby/lib64/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/definition.rb:171:in `requested_specs'
              from /opt/pl-ruby/lib64/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/environment.rb:18:in `requested_specs'
              from /opt/pl-ruby/lib64/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:13:in `setup'
              from /opt/pl-ruby/lib64/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler.rb:92:in `setup'
              from /opt/pl-ruby/lib64/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/setup.rb:18:in `<top (required)>'
              from /opt/puppetlabs/puppet/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
              from /opt/puppetlabs/puppet/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
      make: *** [rubygem-deep-merge-install] Error 1
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ryan.mckern Ryan McKern
              Reporter:
              pyther Matthew Gyurgyik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support