These are chat archives for ged/ruby-pg

13th
Nov 2015
zerbons
@zerbons
Nov 13 2015 02:08
Any ideas when you will publish an update for pg on rubygems? We use jemalloc 4.0 and it would be great to have pr #22 available.
Michael Granger
@ged
Nov 13 2015 19:23
@larskanis : Regular gem is pushed but when I try to build the Windows ones I get this:
$ rake gem:windows
no configuration section for specified version of Ruby (rbconfig-i386-mingw32-1.9.3)
no configuration section for specified version of Ruby (rbconfig-i386-mingw32-2.0.0)
no configuration section for specified version of Ruby (rbconfig-x64-mingw32-1.9.3)
no configuration section for specified version of Ruby (rbconfig-x64-mingw32-2.0.0)
mkdir -p build/gem
cp ~/.gem/gem-*.pem build/gem/
rake-compiler-dock bash -c "    mkdir ~/.gem &&\n    cp build/gem/gem-*.pem ~/.gem/ &&\n    bundle install &&\n    rake cross native gem RUBYOPT=--disable-rubygems RUBY_CC_VERSION=1.9.3:2.0.0:2.1.6:2.2.2\n"

boot2docker is available, but not ready to use. Trying to start.
Virtual machine boot2docker-vm already exists
.....oWriting /Users/ged/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/ged/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/ged/.boot2docker/certs/boot2docker-vm/key.pem
Waiting for VM and Docker daemon to start...

Started.

To connect the Docker client to the Docker daemon, please set:
    export DOCKER_HOST=tcp://192.168.59.103:2376
    export DOCKER_CERT_PATH=/Users/ged/.boot2docker/certs/boot2docker-vm
    export DOCKER_TLS_VERIFY=1

Using above environment variables for starting rake-compiler-dock.
You are using '.rvmrc', it requires trusting, it is slower and it is not compatible with other ruby managers,
you can switch to '.ruby-version' using 'rvm rvmrc to ruby-version'
or ignore this warning with 'rvm rvmrc warning ignore /Users/ged/source/ruby/pg/.rvmrc',
'.rvmrc' will continue to be the default project file in RVM 1 and RVM 2,
to ignore the warning for all files run 'rvm rvmrc warning ignore all.rvmrcs'.

You are using '.rvmrc', it requires trusting, it is slower and it is not compatible with other ruby managers,
you can switch to '.ruby-version' using 'rvm rvmrc to ruby-version'
or ignore this warning with 'rvm rvmrc warning ignore /Users/ged/source/ruby/pg/.rvmrc',
'.rvmrc' will continue to be the default project file in RVM 1 and RVM 2,
to ignore the warning for all files run 'rvm rvmrc warning ignore all.rvmrcs'.

Fetching gem metadata from https://rubygems.org/.......
Fetching version metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 10.4.2

Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/gems/diff-lcs-1.2.5.gem)
An error occurred while installing diff-lcs (1.2.5), and Bundler cannot continue.
Make sure that `gem install diff-lcs -v '1.2.5'` succeeds before bundling.
rake aborted!
Command failed with status (5): [docker run -v /Users/ged/source/ruby/pg:/Users/ged/source/ruby/pg -e UID\=1000 -e GID\=1000 -e USER\=ged -e GROUP\=_staff -e ftp_proxy\= -e http_proxy\= -e https_proxy\= -e RCD_HOST_RUBY_PLATFORM\=x86_64-darwin14 -e RCD_HOST_RUBY_VERSION\=2.2.3 -e RCD_IMAGE\=larskanis/rake-compiler-dock:0.4.2 -w /Users/ged/source/ruby/pg --rm -i -t larskanis/rake-compiler-dock:0.4.2 runas sigfw bash -c \ \ \ \ mkdir\ \~/.gem\ \&\&'
'\ \ \ \ cp\ build/gem/gem-\*.pem\ \~/.gem/\ \&\&'
'\ \ \ \ bundle\ install\ \&\&'
'\ \ \ \ rake\ cross\ native\ gem\ RUBYOPT\=--disable-rubygems\ RUBY_CC_VERSION\=1.9.3:2.0.0:2.1.6:2.2.2'
']
/Users/ged/.rvm/gems/ruby-2.2.3@pg/gems/rake-compiler-dock-0.4.3/lib/rake_compiler_dock/starter.rb:81:in `exec'
/Users/ged/.rvm/gems/ruby-2.2.3@pg/gems/rake-compiler-dock-0.4.3/lib/rake_compiler_dock/starter.rb:14:in `sh'
/Users/ged/.rvm/gems/ruby-2.2.3@pg/gems/rake-compiler-dock-0.4.3/lib/rake_compiler_dock.rb:29:in `sh'
Rakefile.cross:295:in `block in <top (required)>'
Tasks: TOP => gem:windows
(See full trace by running task with --trace)
Looks like I need to rebuild my boot2docker VM to get updated CAs?
Michael Granger
@ged
Nov 13 2015 19:30
@zerbons : The gem with the jemalloc fix should be up.
@larskanis boot2docker upgrade seems to have worked. Windows gems building now.
Michael Granger
@ged
Nov 13 2015 19:51
Windows gems are now pushed too.