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 aarch64 --nodeps /builddir/build/SPECS/rubygem-nokogiri.spec'], chrootPath='/var/lib/mock/dist-ocs23-rebuild-test-2-build-317867-33444/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=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/rubygem-nokogiri.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 (2 usages found), use %patch N (or %patch -P N) Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/rubygem-nokogiri-1.16.7-1.ocs23.src.rpm RPM build warnings: %patchN is deprecated (2 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 aarch64 --nodeps /builddir/build/SPECS/rubygem-nokogiri.spec'], chrootPath='/var/lib/mock/dist-ocs23-rebuild-test-2-build-317867-33444/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=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/rubygem-nokogiri.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 (2 usages found), use %patch N (or %patch -P N) Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.t4OJPj + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf nokogiri-1.16.7 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/nokogiri-1.16.7.gem Unpacked gem: '/builddir/build/BUILD/nokogiri-1.16.7' + STATUS=0 + '[' 0 -ne 0 ']' + cd nokogiri-1.16.7 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/rubygem-nokogiri-1.16.7-full.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mv ../nokogiri-1.16.7.gemspec . Patch #3000 (rubygem-nokogiri-1.11.0.rc4-shutdown-libxml2-warning.patch): + echo 'Patch #3000 (rubygem-nokogiri-1.11.0.rc4-shutdown-libxml2-warning.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file lib/nokogiri/version/info.rb Hunk #1 succeeded at 71 (offset 13 lines). Patch #3001 (rubygem-nokogiri-pr3177-rubyzip-dep-optional.patch): + echo 'Patch #3001 (rubygem-nokogiri-pr3177-rubyzip-dep-optional.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 can't find file to patch at input line 19 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |From 26e5ba521208706ae68f19062d4ad24ad257aa47 Mon Sep 17 00:00:00 2001 |From: Jun Aruga |Date: Mon, 15 Apr 2024 15:46:30 +0200 |Subject: [PATCH] Make a test depending on the rubyzip gem optional. | |Because I still want to pass the nokogiri's unit tests in a downstream nokogiri |package on a Linux distro such as CentOS 10 Stream and RHEL 10, where we don't |want to manage the rubyzip gem[1]. | |[1] https://rubygems.org/gems/rubyzip |--- | test/xml/test_document_encoding.rb | 6 +++++- | 1 file changed, 5 insertions(+), 1 deletion(-) | |diff --git a/test/xml/test_document_encoding.rb b/test/xml/test_document_encoding.rb |index cd8b1b4da2..c0cb93b283 100644 |--- a/test/xml/test_document_encoding.rb |+++ b/test/xml/test_document_encoding.rb -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored RPM build warnings: RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.t4OJPj (%prep) %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.t4OJPj (%prep) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/rubygem-nokogiri.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 aarch64 --nodeps /builddir/build/SPECS/rubygem-nokogiri.spec