+ exec
+ rm -rf /rpmbuild
+ mkdir -p /rpmbuild
+ su -c 'rpmbuild -ba /builddir/build/SPECS/postgresql-plruby.spec            --define "debug_package %{nil}"            --undefine _annotated_build            --define "_missing_doc_files_terminate_build %{nil}"            --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d"            --define "_emacs_sitelispdir /usr/share/emacs/site-lisp"            --nocheck   ' mockbuild
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.AN0Efh
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf postgresql-plruby-0.5.4
+ /usr/bin/tar -xof -
+ /usr/bin/gzip -dc /builddir/build/SOURCES/postgresql-plruby-0.5.4.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd postgresql-plruby-0.5.4
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (postgresql-plruby-bitopers.patch):'
Patch #0 (postgresql-plruby-bitopers.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .biopers --fuzz=0
patching file src/conversions/bitstring/plruby_bitstring.c
patching file src/plruby.h
Hunk #1 succeeded at 317 (offset 1 line).
+ echo 'Patch #2 (postgresql-plruby-retval.patch):'
Patch #2 (postgresql-plruby-retval.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .retval --fuzz=0
patching file src/plruby.h
Hunk #1 succeeded at 303 (offset -1 lines).
+ echo 'Patch #3 (postgresql-plruby-includes.patch):'
Patch #3 (postgresql-plruby-includes.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .debug --fuzz=0
patching file src/plruby.h
Hunk #1 succeeded at 7 (offset -1 lines).
+ echo 'Patch #4 (postgresql-plruby-version.patch):'
Patch #4 (postgresql-plruby-version.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .version --fuzz=0
patching file extconf.rb
+ echo 'Patch #5 (postgresql-plruby-ruby22-rbconfig.patch):'
Patch #5 (postgresql-plruby-ruby22-rbconfig.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .rbconfig --fuzz=0
patching file extconf.rb
patching file src/conversions/basic/extconf.rb
patching file src/conversions/bitstring/extconf.rb
patching file src/conversions/datetime/extconf.rb
patching file src/conversions/geometry/extconf.rb
patching file src/conversions/network/extconf.rb
patching file test/conv_bitstring/b.rb
patching file test/conv_geometry/b.rb
patching file test/conv_network/b.rb
patching file test/plp/b.rb
patching file test/plt/b.rb
patching file test/range/b.rb
+ echo 'Patch #6 (postgresql-plruby-0.5.4-ruby-2.4.patch):'
Patch #6 (postgresql-plruby-0.5.4-ruby-2.4.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .ruby-2.4-constants --fuzz=0
patching file src/conversions/basic/conversions.h
patching file src/conversions/basic/plruby_basic.c
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.3PKdTK
+ umask 022
+ cd /builddir/build/BUILD
+ cd postgresql-plruby-0.5.4
+ ruby extconf.rb --vendor --with-safe-level=1
checking for catalog/pg_proc.h... yes
checking for rb_hash_delete() in ruby.h... yes
*** 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}/lib64
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
	--ruby=/usr/bin/$(RUBY_BASE_NAME)
	--with-pgsql-dir
	--without-pgsql-dir
	--with-pgsql-include
	--without-pgsql-include=${pgsql-dir}/include
	--with-pgsql-lib
	--without-pgsql-lib=${pgsql-dir}/lib64
	--with-pg-config
	--without-pg-config
	--with-safe-level
	--with-timeout
	--without-timeout
extconf.rb:126:in `<main>':  (RuntimeError)
============================================================
PostgreSQL 10.3
 is unsupported.  Try plruby-0.4.2.
============================================================
error: Bad exit status from /var/tmp/rpm-tmp.3PKdTK (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.3PKdTK (%build)
++ cleanup
++ set +e
++ sync
++ sleep 5
++ sync
++ poweroff
Terminated
+++ cleanup
+++ set +e
+++ sync
+++ sleep 5
++++ cleanup
++++ set +e
++++ sync
++++ sleep 5
++++ sync
++++ poweroff