- * Package: dev-ruby/pg-0.14.1
- * Repository: gentoo
- * Maintainer: ruby@gentoo.org
- * USE: abi_x86_64 amd64 doc elibc_glibc kernel_linux multilib ruby_targets_ruby18 ruby_targets_ruby19 test userland_GNU
- * FEATURES: sandbox test userpriv usersandbox
- Installed LAPACK for library directory lib64
- [1] reference *
- Installed BLAS for library directory lib64
- [1] reference *
- Installed CBLAS for library directory lib64
- [1] gsl
- [2] reference *
- >>> Unpacking source...
- * Running unpack phase for all ...
- * Unpacking .gem file... ...
- [ ok ]
- * Uncompressing metadata ...
- [ ok ]
- * Unpacking data.tar.gz ...
- [ ok ]
- >>> Source unpacked in /tmp/portage/dev-ruby/pg-0.14.1/work
- >>> Preparing source in /tmp/portage/dev-ruby/pg-0.14.1/work ...
- * Running prepare phase for all ...
- * Running source copy phase for ruby18 ...
- * Running source copy phase for ruby19 ...
- >>> Source prepared.
- >>> Configuring source in /tmp/portage/dev-ruby/pg-0.14.1/work ...
- * Running configure phase for ruby18 ...
- checking for pg_config... yes
- Using config values from /usr/bin/pg_config
- checking for libpq-fe.h... yes
- checking for libpq/libpq-fs.h... yes
- checking for pg_config_manual.h... yes
- checking for PQconnectdb() in -lpq... yes
- checking for PQconnectionUsedPassword()... yes
- checking for PQisthreadsafe()... yes
- checking for PQprepare()... yes
- checking for PQexecParams()... yes
- checking for PQescapeString()... yes
- checking for PQescapeStringConn()... yes
- checking for PQescapeLiteral()... yes
- checking for PQescapeIdentifier()... yes
- checking for PQgetCancel()... yes
- checking for lo_create()... yes
- checking for pg_encoding_to_char()... yes
- checking for pg_char_to_encoding()... yes
- checking for PQsetClientEncoding()... yes
- checking for PQlibVersion()... yes
- checking for PQping()... yes
- checking for rb_encdb_alias()... no
- checking for rb_enc_alias()... no
- checking for PGRES_COPY_BOTH in libpq-fe.h... yes
- checking for PGRES_SINGLE_TUPLE in libpq-fe.h... yes
- checking for struct pgNotify.extra in libpq-fe.h... yes
- checking for unistd.h... yes
- checking for ruby/st.h... no
- checking for st.h... yes
- creating extconf.h
- creating Makefile
- * Running configure phase for ruby19 ...
- checking for pg_config... yes
- Using config values from /usr/bin/pg_config
- checking for libpq-fe.h... yes
- checking for libpq/libpq-fs.h... yes
- checking for pg_config_manual.h... yes
- checking for PQconnectdb() in -lpq... yes
- checking for PQconnectionUsedPassword()... yes
- checking for PQisthreadsafe()... yes
- checking for PQprepare()... yes
- checking for PQexecParams()... yes
- checking for PQescapeString()... yes
- checking for PQescapeStringConn()... yes
- checking for PQescapeLiteral()... yes
- checking for PQescapeIdentifier()... yes
- checking for PQgetCancel()... yes
- checking for lo_create()... yes
- checking for pg_encoding_to_char()... yes
- checking for pg_char_to_encoding()... yes
- checking for PQsetClientEncoding()... yes
- checking for PQlibVersion()... yes
- checking for PQping()... yes
- checking for rb_encdb_alias()... yes
- checking for rb_enc_alias()... no
- checking for PGRES_COPY_BOTH in libpq-fe.h... yes
- checking for PGRES_SINGLE_TUPLE in libpq-fe.h... yes
- checking for struct pgNotify.extra in libpq-fe.h... yes
- checking for unistd.h... yes
- checking for ruby/st.h... yes
- creating extconf.h
- creating Makefile
- >>> Source configured.
- >>> Compiling source in /tmp/portage/dev-ruby/pg-0.14.1/work ...
- * Running compile phase for ruby18 ...
- make -j24 -C ext 'CFLAGS=-O2 -pipe -ggdb -march=native -ftracer -frecord-gcc-switches -fPIC' 'archflag=-Wl,-O1 -Wl,--as-needed'
- make: Entering directory `/tmp/portage/dev-ruby/pg-0.14.1/work/ruby18/pg-0.14.1/ext'
- x86_64-pc-linux-gnu-gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/usr/include/postgresql-9.2 -O2 -pipe -ggdb -march=native -ftracer -frecord-gcc-switches -fPIC -c pg.c
- x86_64-pc-linux-gnu-gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/usr/include/postgresql-9.2 -O2 -pipe -ggdb -march=native -ftracer -frecord-gcc-switches -fPIC -c pg_connection.c
- x86_64-pc-linux-gnu-gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/usr/include/postgresql-9.2 -O2 -pipe -ggdb -march=native -ftracer -frecord-gcc-switches -fPIC -c pg_result.c
- x86_64-pc-linux-gnu-gcc -shared -o pg_ext.so pg.o pg_connection.o pg_result.o -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L. -Wl,-O1 -Wl,--as-needed -rdynamic -Wl,-export-dynamic -Wl,--no-undefined -L/usr/lib64/postgresql-9.2/lib64 -Wl,-O1 -Wl,--as-needed -Wl,-R -Wl,/usr/lib64 -L/usr/lib64 -lruby18 -lpq -lpthread -lrt -ldl -lcrypt -lm -lc
- make: Leaving directory `/tmp/portage/dev-ruby/pg-0.14.1/work/ruby18/pg-0.14.1/ext'
- * Running compile phase for ruby19 ...
- make -j24 -C ext 'CFLAGS=-O2 -pipe -ggdb -march=native -ftracer -frecord-gcc-switches -fPIC' 'archflag=-Wl,-O1 -Wl,--as-needed'
- make: Entering directory `/tmp/portage/dev-ruby/pg-0.14.1/work/ruby19/pg-0.14.1/ext'
- compiling pg.c
- compiling pg_connection.c
- compiling pg_result.c
- pg_connection.c: In function 'pgconn_wait_for_notify':
- pg_connection.c:2064:3: warning: 'rb_thread_select' is deprecated (declared at /usr/include/ruby-1.9.1/ruby/intern.h:380) [-Wdeprecated-declarations]
- pg_connection.c: In function 'pgconn_block':
- pg_connection.c:2594:3: warning: 'rb_thread_select' is deprecated (declared at /usr/include/ruby-1.9.1/ruby/intern.h:380) [-Wdeprecated-declarations]
- linking shared-object pg_ext.so
- make: Leaving directory `/tmp/portage/dev-ruby/pg-0.14.1/work/ruby19/pg-0.14.1/ext'
- * Running compile phase for all ...
- Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/ZenTest-4.8.4.gemspec]: Illformed requirement ["< 2.1, >= 1.8"]
- rm -r doc
- Parsing sources...
- 5% [ 1/17] lib/pg/result.rb
11% [ 2/17] lib/pg/exceptions.rb
17% [ 3/17] lib/pg/constants.rb
23% [ 4/17] lib/pg/connection.rb
29% [ 5/17] lib/pg.rb
35% [ 6/17] Manifest.txt
41% [ 7/17] README.rdoc
47% [ 8/17] README.ja.rdoc
52% [ 9/17] README-Windows.rdoc
58% [10/17] README-OS_X.rdoc
64% [11/17] History.rdoc
70% [12/17] Contributors.rdoc
76% [13/17] POSTGRES
82% [14/17] LICENSE
88% [15/17] ext/pg_result.c
94% [16/17] ext/pg_connection.c
100% [17/17] ext/pg.c
- Generating Darkfish format into /tmp/portage/dev-ruby/pg-0.14.1/work/all/pg-0.14.1/doc...
- Files: 17
- Classes: 4 (2 undocumented)
- Modules: 2 (1 undocumented)
- Constants: 59 (2 undocumented)
- Attributes: 2 (2 undocumented)
- Methods: 6 (0 undocumented)
- Total: 73 (7 undocumented)
- 90.41% documented
- Elapsed: 1.8s
- chmod -R g+w .
- >>> Source compiled.
- * Running test phase for ruby18 ...
- Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/ZenTest-4.8.4.gemspec]: Illformed requirement ["< 2.1, >= 1.8"]
- Run options: exclude {:ruby_19=>true}
- PG::Connection
- Setting up test database for PG_Connection tests
- Running initdb
- Creating the test DB
- can create a connection option string from a Hash of options
- can create a connection option string from positional parameters
- can create a connection option string from a mix of positional and hash parameters
- escapes single quotes and backslashes in connection parameters
- connects with defaults if no connection parameters are given
- connects successfully with connection string
- connects using 7 arguments converted to strings
- connects using a hash of connection parameters
- connects using a hash of optional connection parameters
- raises an exception when connecting with an invalid number of arguments
- can connect asynchronously
- can connect asynchronously for the duration of a block
- doesn't leave stale server connections after finish
- trace and untrace client-server communication
- allows a query to be cancelled
- automatically rolls back a transaction started with described_class#transaction if an exception is raised
- not read past the end of a large object
- can wait for NOTIFY events
- calls a block for NOTIFY events if one is given
- doesn't collapse sequential notifications
- returns notifications which are already in the queue before wait_for_notify is called without waiting for the socket to become readable
- yields the result if block is given to exec
- correctly finishes COPY queries passed to #async_exec
- described_class#block shouldn't block a second thread
- described_class#block should allow a timeout
- can encrypt a string given a password and username
- raises an appropriate error if either of the required arguments for encrypt_password is not valid
- allows fetching a column of values from a result by column number
- allows fetching a column of values from a result by field name
- raises an error if selecting an invalid column index
- raises an error if selecting an invalid field name
- raises an error if column index is not a number
- can connect asynchronously
- discards previous results (if any) before waiting on an #async_exec (PENDING: Not yet implemented)
- calls the block if one is provided to #async_exec
- raises a rescue-able error if #finish is called twice
- under PostgreSQL 9
- calls the block supplied to wait_for_notify with the notify payload if it accepts any number of arguments
- accepts nil as the timeout in #wait_for_notify
- sends nil as the payload if the notification wasn't given one
- calls the block supplied to wait_for_notify with the notify payload if it accepts two arguments
- calls the block supplied to wait_for_notify with the notify payload if it doesn't accept arguments
- calls the block supplied to wait_for_notify with the notify payload if it accepts three arguments
- under PostgreSQL 9.1 client library
- pings successfully with connection string
- pings using 7 arguments converted to strings
- pings using a hash of connection parameters
- returns correct response when ping connection cannot be established
- returns correct response when ping connection arguments are wrong
- Tearing down test database
- PG::Result
- No pidfile (#<Pathname:/tmp/portage/dev-ruby/pg-0.14.1/work/ruby18/pg-0.14.1/tmp_test_specs/data/postmaster.pid>)
- Setting up test database for PG_Result tests
- Creating the test DB
- should act as an array of hashes
- should insert nil AS NULL and return NULL as nil
- encapsulates errors in a PGError object (FAILED - 1)
- should detect division by zero as SQLSTATE 22012
- should return the same bytes in binary format that are sent in binary format
- should return the same bytes in binary format that are sent as inline text
- should return the same bytes in text format that are sent in binary format
- should return the same bytes in text format that are sent as inline text
- should return the parameter type of the specified prepared statement parameter (FAILED - 2)
- should raise an exception when a negative index is given to #fformat
- should raise an exception when a negative index is given to #fmod
- should raise an exception when a negative index is given to #[]
- should raise allow for conversion to an array of arrays
- can return the type modifier for a result column
- should raise an exception when an invalid index is passed to PG::Result#fmod
- should raise an exception when an invalid (negative) index is passed to PG::Result#fmod
- shouldn't raise an exception when a valid index is passed to PG::Result#fmod for a column with no typemod
- can return the oid of the table from which a result column was fetched
- should raise an exception when an invalid index is passed to PG::Result#ftable
- should raise an exception when an invalid (negative) index is passed to PG::Result#ftable
- shouldn't raise an exception when a valid index is passed to PG::Result#ftable for a column with no corresponding table
- can return the column number (within its table) of a column in a result
- should raise an exception when an invalid index is passed to PG::Result#ftablecol
- should raise an exception when an invalid (negative) index is passed to PG::Result#ftablecol
- shouldn't raise an exception when a valid index is passed to PG::Result#ftablecol for a column with no corresponding table
- can be manually checked for failed result status (async API)
- Tearing down test database
- PG
- knows what version of the libpq library is loaded
- knows whether or not the library is threadsafe
- Pending:
- PG::Connection discards previous results (if any) before waiting on an #async_exec
- # Not yet implemented
- # ./spec/pg/connection_spec.rb:521
- Failures:
- 1) PG::Result encapsulates errors in a PGError object
- Failure/Error: result.error_field( PG::PG_DIAG_SOURCE_LINE ).should == '857'
- expected: "857"
- got: "871" (using ==)
- # ./spec/pg/result_spec.rb:74
- 2) PG::Result should return the parameter type of the specified prepared statement parameter
- Failure/Error: @conn.prepare( 'queryfinder', query )
- PG::Error:
- ERROR: column "current_query" does not exist
- LINE 1: ...* FROM pg_stat_activity WHERE user = $1::name AND current_qu...
- ^
- # ./spec/pg/result_spec.rb:132:in `prepare'
- # ./spec/pg/result_spec.rb:132
- Finished in 17.7 seconds
- 75 examples, 2 failures, 1 pending
- Failed examples:
- rspec ./spec/pg/result_spec.rb:52 # PG::Result encapsulates errors in a PGError object
- rspec ./spec/pg/result_spec.rb:130 # PG::Result should return the parameter type of the specified prepared statement parameter
- * ERROR: dev-ruby/pg-0.14.1 failed (test phase):
- * rspec failed
- *
- * Call stack:
- * ebuild.sh, line 93: Called src_test
- * environment, line 4657: Called ruby-ng_src_test
- * environment, line 4336: Called _ruby_each_implementation 'each_ruby_test'
- * environment, line 628: Called _ruby_invoke_environment 'ruby18' 'each_ruby_test'
- * environment, line 680: Called each_ruby_test
- * environment, line 978: Called ruby-ng_rspec
- * environment, line 4300: Called die
- * The specific snippet of code:
- * ${RUBY} -S rspec ${rspec_params} "$@" || die "rspec failed"
- *
- * If you need support, post the output of `emerge --info '=dev-ruby/pg-0.14.1'`,
- * the complete build log and the output of `emerge -pqv '=dev-ruby/pg-0.14.1'`.
- !!! When you file a bug report, please include the following information:
- GENTOO_VM= CLASSPATH="/usr/libexec/ccp4/bin:/usr/libexec/ccp4/bin:" JAVA_HOME="/etc/java-config-2/current-system-vm"
- JAVACFLAGS="" COMPILER=""
- and of course, the output of emerge --info
- * The complete build log is located at '/var/log/portage/dev-ruby:pg-0.14.1:20130215-143933.log'.
- * The ebuild environment file is located at '/tmp/portage/dev-ruby/pg-0.14.1/temp/environment'.
- * Working directory: '/tmp/portage/dev-ruby/pg-0.14.1/work/ruby18/pg-0.14.1'
- * S: '/tmp/portage/dev-ruby/pg-0.14.1/work/ruby18/pg-0.14.1'
- >>> Install pg-0.14.1 into /tmp/portage/dev-ruby/pg-0.14.1/image/ category dev-ruby
- * Running install phase for ruby18 ...
- Invalid gemspec in [/usr/lib64/ruby/gems/1.8/specifications/ZenTest-4.8.4.gemspec]: Illformed requirement ["< 2.1, >= 1.8"]
- * Running install phase for ruby19 ...
- Invalid gemspec in [/usr/lib64/ruby/gems/1.9.1/specifications/ZenTest-4.8.4.gemspec]: Illformed requirement ["< 2.1, >= 1.8"]
- * Running install phase for all ...
- * Running check install phase for ruby18 ...
- * Running check install phase for ruby19 ...
- >>> Completed installing pg-0.14.1 into /tmp/portage/dev-ruby/pg-0.14.1/image/
- strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line
- usr/lib64/ruby/gems/1.8/gems/pg-0.14.1/lib/pg_ext.so
- usr/lib64/ruby/gems/1.9.1/gems/pg-0.14.1/lib/pg_ext.so
- ecompressdir: bzip2 -9 /usr/share/doc