Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/rubygem-pg.spec'], chrootPath='/var/lib/mock/dist-an8.9-build-337495-69710/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/rubygem-pg.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/rubygem-pg-1.0.0-3.0.1.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/rubygem-pg.spec'], chrootPath='/var/lib/mock/dist-an8.9-build-337495-69710/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/rubygem-pg.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.SoFn2q + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pg-1.0.0 + /usr/bin/gem unpack /builddir/build/SOURCES/pg-1.0.0.gem Unpacked gem: '/builddir/build/BUILD/pg-1.0.0' + /usr/bin/gem spec /builddir/build/SOURCES/pg-1.0.0.gem --ruby + STATUS=0 + '[' 0 -ne 0 ']' + cd pg-1.0.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (rubygem-pg-0.17.1-remove-rpath.patch):' Patch #0 (rubygem-pg-0.17.1-remove-rpath.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file ext/extconf.rb Patch #1 (rubygem-pg-1.1.4-add-feature-to-set-testing-port.patch): + echo 'Patch #1 (rubygem-pg-1.1.4-add-feature-to-set-testing-port.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file spec/helpers.rb patching file spec/pg/connection_spec.rb Patch #2 (rubygem-pg-1.1.3-Fix-specs-for-PostgreSQL-11.patch): + echo 'Patch #2 (rubygem-pg-1.1.3-Fix-specs-for-PostgreSQL-11.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file spec/pg/connection_spec.rb Patch #1000 (0001-rubygem-pg-anolis-changed-the-way-how-when-parameters-are-interpret.patch): + echo 'Patch #1000 (0001-rubygem-pg-anolis-changed-the-way-how-when-parameters-are-interpret.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file spec/pg/connection_spec.rb Hunk #1 FAILED at 1099. 1 out of 1 hunk FAILED -- saving rejects to file spec/pg/connection_spec.rb.rej error: Bad exit status from /var/tmp/rpm-tmp.SoFn2q (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.SoFn2q (%prep) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/rubygem-pg.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/rubygem-pg.spec