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/gnupg2.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-232690-81766/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=991gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/gnupg2.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 warning: %patchN is deprecated (8 usages found), use %patch N (or %patch -P N) Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/gnupg2-2.4.9-1.oc9.src.rpm RPM build warnings: %patchN is deprecated (8 usages found), use %patch N (or %patch -P N) Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/gnupg2.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-232690-81766/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=991gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/gnupg2.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 warning: %patchN is deprecated (8 usages found), use %patch N (or %patch -P N) Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.FoDw1X + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf gnupg-2.4.9 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/gnupg-2.4.9.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd gnupg-2.4.9 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (gnupg-2.4.7-secmem.patch):' Patch #1 (gnupg-2.4.7-secmem.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .secmem --fuzz=0 patching file g10/gpg.c Hunk #1 succeeded at 1104 (offset 1 line). Hunk #2 succeeded at 1264 (offset 1 line). patching file sm/gpgsm.c Patch #2 (gnupg-2.4.7-file-is-digest.patch): + echo 'Patch #2 (gnupg-2.4.7-file-is-digest.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .file-is-digest --fuzz=0 patching file g10/gpg.c Hunk #3 succeeded at 2510 (offset 1 line). Hunk #4 succeeded at 3150 (offset 1 line). patching file g10/options.h patching file g10/sign.c Patch #3 (gnupg-2.4.7-fips-algo.patch): + echo 'Patch #3 (gnupg-2.4.7-fips-algo.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .fips --fuzz=0 patching file common/t-sexputil.c patching file g10/mainproc.c Patch #20 (0002-gpg-accept-subkeys-with-a-good-revocation-but-no-sel.patch): + echo 'Patch #20 (0002-gpg-accept-subkeys-with-a-good-revocation-but-no-sel.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .good_revoc --fuzz=0 patching file g10/import.c Hunk #1 succeeded at 3905 (offset 17 lines). Patch #21 (0003-gpg-allow-import-of-previously-known-keys-even-witho.patch): + echo 'Patch #21 (0003-gpg-allow-import-of-previously-known-keys-even-witho.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .prev_known_key --fuzz=0 patching file g10/import.c Hunk #1 succeeded at 2000 (offset 4 lines). Hunk #2 succeeded at 2036 (offset 4 lines). Hunk #3 succeeded at 2129 (offset 16 lines). Hunk #4 succeeded at 2142 (offset 16 lines). Hunk #5 succeeded at 2206 (offset 17 lines). Patch #22 (0004-tests-add-test-cases-for-import-without-uid.patch): + echo 'Patch #22 (0004-tests-add-test-cases-for-import-without-uid.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .test_missing_uid --fuzz=0 patching file tests/openpgp/Makefile.am patching file tests/openpgp/import-incomplete.scm patching file tests/openpgp/import-incomplete/primary+revocation.asc patching file tests/openpgp/import-incomplete/primary+subkey+sub-revocation.asc patching file tests/openpgp/import-incomplete/primary+subkey+sub-sig.asc patching file tests/openpgp/import-incomplete/primary+uid-sig.asc patching file tests/openpgp/import-incomplete/primary+uid.asc Patch #23 (0005-gpg-drop-import-clean-from-default-keyserver-import-.patch): + echo 'Patch #23 (0005-gpg-drop-import-clean-from-default-keyserver-import-.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .import-clean --fuzz=0 patching file doc/gpg.texi Hunk #1 succeeded at 2188 (offset 12 lines). patching file g10/gpg.c Hunk #1 succeeded at 2487 (offset 5 lines). Patch #24 (0006-Do-not-use-OCB-mode-even-if-AEAD-OCB-key-preference-.patch): + echo 'Patch #24 (0006-Do-not-use-OCB-mode-even-if-AEAD-OCB-key-preference-.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .do-not-use-OCB --fuzz=0 patching file g10/encrypt.c patching file tests/openpgp/encrypt.scm Patch #25 (0007-Revert-the-introduction-of-the-RFC4880bis-draft-into.patch): + echo 'Patch #25 (0007-Revert-the-introduction-of-the-RFC4880bis-draft-into.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .revert-rfc4880bis --fuzz=0 patching file g10/gpg.c Hunk #2 succeeded at 646 (offset 2 lines). Hunk #3 succeeded at 997 (offset 4 lines). Hunk #4 succeeded at 2251 (offset 5 lines). Hunk #5 succeeded at 2267 (offset 5 lines). Hunk #6 succeeded at 2332 (offset 5 lines). Hunk #7 succeeded at 2536 (offset 6 lines). Hunk #8 succeeded at 3091 (offset 10 lines). Hunk #9 succeeded at 3977 (offset 14 lines). Hunk #10 succeeded at 4198 (offset 14 lines). patching file g10/keygen.c Hunk #1 succeeded at 455 (offset 34 lines). Hunk #2 succeeded at 940 (offset 34 lines). Hunk #3 succeeded at 3634 (offset 37 lines). Hunk #4 succeeded at 3896 (offset 37 lines). Hunk #5 succeeded at 4868 (offset 40 lines). Hunk #6 succeeded at 4965 (offset 40 lines). Patch #26 (0008-avoid-systemd-deprecation-warning.patch): + echo 'Patch #26 (0008-avoid-systemd-deprecation-warning.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .systemd-deprecation --fuzz=0 patching file agent/gpg-agent.c patching file dirmngr/dirmngr.c Patch #27 (0009-Add-systemd-support-for-keyboxd.patch): + echo 'Patch #27 (0009-Add-systemd-support-for-keyboxd.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .systemd-keybox --fuzz=0 patching file kbx/keyboxd.c Patch #28 (0010-Ship-sample-systemd-unit-files.patch): + echo 'Patch #28 (0010-Ship-sample-systemd-unit-files.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .systemd-units --fuzz=0 patching file doc/Makefile.am patching file doc/examples/README patching file doc/examples/systemd-user/README patching file doc/examples/systemd-user/dirmngr.service patching file doc/examples/systemd-user/dirmngr.socket patching file doc/examples/systemd-user/gpg-agent-browser.socket patching file doc/examples/systemd-user/gpg-agent-extra.socket patching file doc/examples/systemd-user/gpg-agent-ssh.socket patching file doc/examples/systemd-user/gpg-agent.service patching file doc/examples/systemd-user/gpg-agent.socket Patch #29 (0011-el-gamal-default-to-3072-bits.patch): + echo 'Patch #29 (0011-el-gamal-default-to-3072-bits.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .elgamal-3k --fuzz=0 patching file g10/keygen.c Hunk #1 succeeded at 1752 (offset 106 lines). Patch #30 (0012-gpg-default-digest-algorithm-SHA512.patch): + echo 'Patch #30 (0012-gpg-default-digest-algorithm-SHA512.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .default-sha512 --fuzz=0 patching file configure.ac patching file g10/main.h patching file g10/misc.c Patch #31 (0013-gpg-Prefer-SHA-512-and-SHA-384-in-personal-digest.patch): + echo 'Patch #31 (0013-gpg-Prefer-SHA-512-and-SHA-384-in-personal-digest.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .prefer-sha512 --fuzz=0 patching file g10/keygen.c Hunk #1 succeeded at 461 (offset 38 lines). Patch #32 (0018-Avoid-simple-memory-dumps-via-ptrace.patch): + echo 'Patch #32 (0018-Avoid-simple-memory-dumps-via-ptrace.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .dump-ptrace --fuzz=0 patching file agent/gpg-agent.c patching file configure.ac patching file scd/scdaemon.c Hunk #2 succeeded at 474 (offset -3 lines). Patch #34 (0029-Add-keyboxd-systemd-support.patch): + echo 'Patch #34 (0029-Add-keyboxd-systemd-support.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .keyboxd-units --fuzz=0 patching file doc/Makefile.am patching file doc/examples/systemd-user/keyboxd.service patching file doc/examples/systemd-user/keyboxd.socket Patch #35 (0033-Support-large-RSA-keygen-in-non-batch-mode.patch): + echo 'Patch #35 (0033-Support-large-RSA-keygen-in-non-batch-mode.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .large-rsa --fuzz=0 patching file doc/gpg.texi patching file g10/keygen.c Hunk #1 succeeded at 2671 (offset -351 lines). patching file tests/openpgp/quick-key-manipulation.scm Patch #40 (gnupg-2.4.7-coverity.patch): + echo 'Patch #40 (gnupg-2.4.7-coverity.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .coverity --fuzz=0 patching file common/server-help.c patching file dirmngr/domaininfo.c patching file g10/card-util.c patching file g10/tofu.c patching file scd/app-piv.c patching file scd/command.c patching file tools/wks-util.c Patch #45 (gnupg-2.4.8-ca-certificates-bundle.patch): + echo 'Patch #45 (gnupg-2.4.8-ca-certificates-bundle.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .ca-certificates --fuzz=0 patching file dirmngr/certcache.c Patch #3000 (gnupg-2.1.10-secmem.patch): + echo 'Patch #3000 (gnupg-2.1.10-secmem.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .tencent-secmem --fuzz=0 patching file g10/gpg.c Hunk #1 FAILED at 889. Hunk #2 FAILED at 1041. 2 out of 2 hunks FAILED -- saving rejects to file g10/gpg.c.rej patching file sm/gpgsm.c Hunk #1 FAILED at 530. 1 out of 1 hunk FAILED -- saving rejects to file sm/gpgsm.c.rej error: Bad exit status from /var/tmp/rpm-tmp.FoDw1X (%prep) %patchN is deprecated (8 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.FoDw1X (%prep) RPM build warnings: 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/gnupg2.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 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/gnupg2.spec