Fix patching of 1.6 tarball. #22

Merged
merged 1 commit into from May 11, 2011

Conversation

Projects
None yet
2 participants
Contributor

rtyler commented May 11, 2011

Add user writable permissions to the upstream tarball to allow proper patching

This will resolve the following error

Installing perftools.rb (0.5.6) with native extensions /home/tyler/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/installer.rb:533:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

        /home/tyler/.rvm/rubies/ree-1.8.7-2010.02/bin/ruby extconf.rb 
(I'm about to compile google-perftools.. this will definitely take a while)
-- tar zxvf google-perftools-1.6.tar.gz
-- patch -p1 < ../../../patches/perftools.patch
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/home/tyler/.rvm/rubies/ree-1.8.7-2010.02/bin/ruby
extconf.rb:6:in `sys': patch -p1 < ../../../patches/perftools.patch failed, please report to perftools@tmm1.net with pastie.org link to /home/tyler/.rvm/gems/ree-1.8.7-2010.02@lookout/gems/perftools.rb-0.5.6/ext/mkmf.log and /home/tyler/.rvm/gems/ree-1.8.7-2010.02@lookout/gems/perftools.rb-0.5.6/ext/src/google-perftools-1.6/config.log (RuntimeError)
        from extconf.rb:57
        from extconf.rb:47:in `each'
        from extconf.rb:47
        from extconf.rb:40:in `chdir'
        from extconf.rb:40
        from extconf.rb:36:in `chdir'
        from extconf.rb:36


Gem files will remain installed in /home/tyler/.rvm/gems/ree-1.8.7-2010.02@lookout/gems/perftools.rb-0.5.6 for inspection.
Results logged to /home/tyler/.rvm/gems/ree-1.8.7-2010.02@lookout/gems/perftools.rb-0.5.6/ext/gem_make.out
        from /home/tyler/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/installer.rb:486:in `each'
        from /home/tyler/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/installer.rb:486:in `build_extensions'
        from /home/tyler/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/installer.rb:159:in `install'
        from /home/tyler/.rvm/gems/ree-1.8.7-2010.02@lookout/gems/bundler-1.0.13/lib/bundler/source.rb:100:in `install'
        from /home/tyler/.rvm/gems/ree-1.8.7-2010.02@lookout/gems/bundler-1.0.13/lib/bundler/installer.rb:58:in `run'
        from /home/tyler/.rvm/gems/ree-1.8.7-2010.02@lookout/gems/bundler-1.0.13/lib/bundler/rubygems_integration.rb:90:in `with_build_args'
        from /home/tyler/.rvm/gems/ree-1.8.7-2010.02@lookout/gems/bundler-1.0.13/lib/bundler/installer.rb:57:in `run'
        from /home/tyler/.rvm/gems/ree-1.8.7-2010.02@lookout/gems/bundler-1.0.13/lib/bundler/spec_set.rb:12:in `each'
        from /home/tyler/.rvm/gems/ree-1.8.7-2010.02@lookout/gems/bundler-1.0.13/lib/bundler/spec_set.rb:12:in `each'
        from /home/tyler/.rvm/gems/ree-1.8.7-2010.02@lookout/gems/bundler-1.0.13/lib/bundler/installer.rb:49:in `run'
        from /home/tyler/.rvm/gems/ree-1.8.7-2010.02@lookout/gems/bundler-1.0.13/lib/bundler/installer.rb:8:in `install'
        from /home/tyler/.rvm/gems/ree-1.8.7-2010.02@lookout/gems/bundler-1.0.13/lib/bundler/cli.rb:222:in `install'
        from /home/tyler/.rvm/gems/ree-1.8.7-2010.02@lookout/gems/bundler-1.0.13/lib/bundler/vendor/thor/task.rb:22:in `send'
        from /home/tyler/.rvm/gems/ree-1.8.7-2010.02@lookout/gems/bundler-1.0.13/lib/bundler/vendor/thor/task.rb:22:in `run'
        from /home/tyler/.rvm/gems/ree-1.8.7-2010.02@lookout/gems/bundler-1.0.13/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
        from /home/tyler/.rvm/gems/ree-1.8.7-2010.02@lookout/gems/bundler-1.0.13/lib/bundler/vendor/thor.rb:246:in `dispatch'
        from /home/tyler/.rvm/gems/ree-1.8.7-2010.02@lookout/gems/bundler-1.0.13/lib/bundler/vendor/thor/base.rb:389:in `start'
        from /home/tyler/.rvm/gems/ree-1.8.7-2010.02@lookout/gems/bundler-1.0.13/bin/bundle:13
        from /home/tyler/.rvm/gems/ree-1.8.7-2010.02@lookout/bin/bundle:19:in `load'
        from /home/tyler/.rvm/gems/ree-1.8.7-2010.02@lookout/bin/bundle:19

@tmm1 tmm1 added a commit that referenced this pull request May 11, 2011

@tmm1 tmm1 Merge pull request #22 from rtyler/master
Fix patching of 1.6 tarball.
871397d

@tmm1 tmm1 merged commit 871397d into tmm1:master May 11, 2011

Owner

tmm1 commented May 11, 2011

Thanks!

Contributor

rtyler commented May 11, 2011

Just FYI, I retarballed the package after running chmod -R +w google-perftools-1.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment