Mock Version: 6.2 Mock Version: 6.2 Mock Version: 6.2 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/postgresql.spec'], chrootPath='/var/lib/mock/dist-an23-build-595219-102111/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=989gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock']) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/postgresql.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 setting SOURCE_DATE_EPOCH=1794873600 Wrote: /builddir/build/SRPMS/postgresql-15.20-1.an23.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/postgresql.spec'], chrootPath='/var/lib/mock/dist-an23-build-595219-102111/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=989gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock']) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/postgresql.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 setting SOURCE_DATE_EPOCH=1794873600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Bh1cYm + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf postgresql-15.20 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/postgresql-15.20.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd postgresql-15.20 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/postgresql-setup-8.10.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (rpm-pgsql.patch):' Patch #1 (rpm-pgsql.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/Makefile.global.in Hunk #1 succeeded at 82 (offset 27 lines). Hunk #2 succeeded at 100 (offset 27 lines). Patch #2 (postgresql-logging.patch): + echo 'Patch #2 (postgresql-logging.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/backend/utils/misc/postgresql.conf.sample Hunk #1 succeeded at 448 (offset -1 lines). Hunk #2 succeeded at 456 (offset -1 lines). Patch #5 (postgresql-var-run-socket.patch): + echo 'Patch #5 (postgresql-var-run-socket.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/backend/utils/misc/guc.c Hunk #1 succeeded at 4452 (offset 1256 lines). patching file src/bin/initdb/initdb.c Hunk #1 succeeded at 1047 (offset -187 lines). patching file src/include/pg_config_manual.h Hunk #1 succeeded at 224 (offset 23 lines). + echo 'Patch #12 (postgresql-no-libecpg.patch):' Patch #12 (postgresql-no-libecpg.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/interfaces/Makefile + echo 'Patch #9 (postgresql-server-pg_config.patch):' Patch #9 (postgresql-server-pg_config.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/bin/pg_config/Makefile patching file src/bin/pg_config/nls.mk Hunk #1 FAILED at 1. 1 out of 1 hunk FAILED -- saving rejects to file src/bin/pg_config/nls.mk.rej error: Bad exit status from /var/tmp/rpm-tmp.Bh1cYm (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.Bh1cYm (%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/postgresql.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 610, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/postgresql.spec'