Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/krb5.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-169787-10436/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=982gid=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/krb5.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/krb5-1.21.2-3.ocs23.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/krb5.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-169787-10436/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=982gid=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/krb5.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.EM9CIH + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf krb5-1.21.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/krb5-1.21.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd krb5-1.21.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/git init -q + /usr/bin/git config user.name rpm-build + /usr/bin/git config user.email '' + /usr/bin/git config gc.auto 0 + /usr/bin/git add --force . + /usr/bin/git commit -q --allow-empty -a --author 'rpm-build ' -m 'krb5-1.21.2 base' + /usr/bin/git checkout --track -b rpm-build Switched to a new branch 'rpm-build' branch 'rpm-build' set up to track 'master'. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/downstream-ksu-pam-integration.patch + /usr/bin/git am --reject -q .git/rebase-apply/patch:25: trailing whitespace. dnl .git/rebase-apply/patch:322: trailing whitespace. * .git/rebase-apply/patch:717: trailing whitespace. * Checking patch src/aclocal.m4... .git/rebase-apply/patch:88: new blank line at EOF. + Hunk #1 succeeded at 1458 (offset -219 lines). Checking patch src/clients/ksu/Makefile.in... Checking patch src/clients/ksu/main.c... Checking patch src/clients/ksu/pam.c... Checking patch src/clients/ksu/pam.h... Checking patch src/configure.ac... Hunk #1 succeeded at 1399 (offset 10 lines). Applied patch src/aclocal.m4 cleanly. Applied patch src/clients/ksu/Makefile.in cleanly. Applied patch src/clients/ksu/main.c cleanly. Applied patch src/clients/ksu/pam.c cleanly. Applied patch src/clients/ksu/pam.h cleanly. Applied patch src/configure.ac cleanly. warning: 4 lines add whitespace errors. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/downstream-SELinux-integration.patch + /usr/bin/git am --reject -q Checking patch src/aclocal.m4... Checking patch src/build-tools/krb5-config.in... Hunk #1 succeeded at 40 (offset -1 lines). Hunk #2 succeeded at 254 (offset -1 lines). Checking patch src/config/pre.in... Checking patch src/configure.ac... Hunk #1 succeeded at 1401 (offset -1 lines). Checking patch src/include/k5-int.h... Checking patch src/include/k5-label.h... Checking patch src/include/krb5/krb5.hin... Checking patch src/kadmin/dbutil/dump.c... Checking patch src/kdc/main.c... Hunk #1 succeeded at 844 (offset -4 lines). Checking patch src/kprop/kpropd.c... Checking patch src/lib/kadm5/logger.c... Hunk #1 succeeded at 310 (offset 1 line). Hunk #2 succeeded at 777 (offset 1 line). Checking patch src/lib/kdb/kdb_log.c... Checking patch src/lib/krb5/ccache/cc_dir.c... Checking patch src/lib/krb5/keytab/kt_file.c... Checking patch src/lib/krb5/os/trace.c... Hunk #1 succeeded at 460 (offset 1 line). Checking patch src/plugins/kdb/db2/adb_openclose.c... Checking patch src/plugins/kdb/db2/kdb_db2.c... Checking patch src/plugins/kdb/db2/libdb2/btree/bt_open.c... Checking patch src/plugins/kdb/db2/libdb2/hash/hash.c... Checking patch src/plugins/kdb/db2/libdb2/recno/rec_open.c... Checking patch src/plugins/kdb/ldap/ldap_util/kdb5_ldap_services.c... Checking patch src/util/profile/prof_file.c... Checking patch src/util/support/Makefile.in... Checking patch src/util/support/selinux.c... Applied patch src/aclocal.m4 cleanly. Applied patch src/build-tools/krb5-config.in cleanly. Applied patch src/config/pre.in cleanly. Applied patch src/configure.ac cleanly. Applied patch src/include/k5-int.h cleanly. Applied patch src/include/k5-label.h cleanly. Applied patch src/include/krb5/krb5.hin cleanly. Applied patch src/kadmin/dbutil/dump.c cleanly. Applied patch src/kdc/main.c cleanly. Applied patch src/kprop/kpropd.c cleanly. Applied patch src/lib/kadm5/logger.c cleanly. Applied patch src/lib/kdb/kdb_log.c cleanly. Applied patch src/lib/krb5/ccache/cc_dir.c cleanly. Applied patch src/lib/krb5/keytab/kt_file.c cleanly. Applied patch src/lib/krb5/os/trace.c cleanly. Applied patch src/plugins/kdb/db2/adb_openclose.c cleanly. Applied patch src/plugins/kdb/db2/kdb_db2.c cleanly. Applied patch src/plugins/kdb/db2/libdb2/btree/bt_open.c cleanly. Applied patch src/plugins/kdb/db2/libdb2/hash/hash.c cleanly. Applied patch src/plugins/kdb/db2/libdb2/recno/rec_open.c cleanly. Applied patch src/plugins/kdb/ldap/ldap_util/kdb5_ldap_services.c cleanly. Applied patch src/util/profile/prof_file.c cleanly. Applied patch src/util/support/Makefile.in cleanly. Applied patch src/util/support/selinux.c cleanly. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/downstream-netlib-and-dns.patch + /usr/bin/git am --reject -q Checking patch src/aclocal.m4... Hunk #1 succeeded at 702 (offset -16 lines). Applied patch src/aclocal.m4 cleanly. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/downstream-fix-debuginfo-with-y.tab.c.patch + /usr/bin/git am --reject -q .git/rebase-apply/patch:17: trailing whitespace. $(YACC.y) $< Checking patch src/kadmin/cli/Makefile.in... Checking patch src/plugins/kdb/ldap/ldap_util/Makefile.in... Applied patch src/kadmin/cli/Makefile.in cleanly. Applied patch src/plugins/kdb/ldap/ldap_util/Makefile.in cleanly. warning: 1 line adds whitespace errors. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/Fix-CVE-2024-26458-and-26461-two-unlikely-memory-leaks.patch + /usr/bin/git am --reject -q Checking patch src/lib/gssapi/krb5/k5sealv3.c... Checking patch src/lib/rpc/pmap_rmt.c... error: while searching for: caddr_t port_ptr; port_ptr = (caddr_t)(void *)crp->port_ptr; if (xdr_reference(xdrs, &port_ptr, sizeof (uint32_t), xdr_u_int32) && xdr_u_int32(xdrs, &crp->resultslen)) { crp->port_ptr = (uint32_t *)(void *)port_ptr; return ((*(crp->xdr_results))(xdrs, crp->results_ptr)); } return (FALSE); } error: patch failed: src/lib/rpc/pmap_rmt.c:160 Applied patch src/lib/gssapi/krb5/k5sealv3.c cleanly. Applying patch src/lib/rpc/pmap_rmt.c with 1 reject... Rejected hunk #1. Patch failed at 0001 Fix two unlikely memory leaks When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort". hint: Use 'git am --show-current-patch=diff' to see the failed patch error: Bad exit status from /var/tmp/rpm-tmp.EM9CIH (%prep) Bad exit status from /var/tmp/rpm-tmp.EM9CIH (%prep) RPM build errors: 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/krb5.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 597, 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/krb5.spec