Mock Version: 2.17 Mock Version: 2.17 Mock Version: 2.17 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/xapi.spec'], chrootPath='/var/lib/mock/v8.3-u-gtn2-8290-24526/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=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/xapi.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: bogus date in %changelog: Wed Apr 3 2025 Guillaume Thouvenin - 24.39.1-1.3 warning: bogus date in %changelog: Wed Apr 3 2025 Guillaume Thouvenin - 24.39.1-1.2 Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/xapi-24.39.1-1.2.0.gtn.2.xcpng8.3.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/xapi.spec'], chrootPath='/var/lib/mock/v8.3-u-gtn2-8290-24526/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=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/xapi.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: bogus date in %changelog: Wed Apr 3 2025 Guillaume Thouvenin - 24.39.1-1.3 warning: bogus date in %changelog: Wed Apr 3 2025 Guillaume Thouvenin - 24.39.1-1.2 Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.kf8Zj1 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf xapi-24.39.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/xen-api-24.39.1.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd xapi-24.39.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/xapi-24.11.0-update-xapi-conf.XCP-ng.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/xenopsd-22.20.0-use-xcp-clipboardd.XCP-ng.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/xapi-24.39.0-open-openflow-port.XCP-ng.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/xapi-24.39.0-update-db-tunnel-protocol-from-other_config.XCP-ng.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/xapi-24.19.2-fix-ipv6-import.XCP-ng.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/xapi-24.19.2-more-fingerprint-field-updates-fixes.XCP-ng.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/xen-api-24.39.1-test-disable-cancellable-sleep.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/xen-api-24.39.1-debug-traces-for-is_component_enabled.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/xen-api-24.39.1-0001-CA-399669-Do-not-exit-with-error-when-IPMI-readings-.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/xen-api-24.39.1-0002-rrdp-dcmi-remove-extraneous-I-argument-from-cli-call.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/xen-api-24.39.1-0003-CA-399669-Detect-a-reason-for-IPMI-readings-being-un.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0001-CA-399757-Add-CAS-style-check-for-SR-scan.patch + /usr/bin/patch -p1 -s The text leading up to this was: -------------------------- |From 7cad41ca27314b76c9a3edf1da3d1600b5670361 Mon Sep 17 00:00:00 2001 |From: Vincent Liu |Date: Tue, 1 Oct 2024 17:18:49 +0100 |Subject: [PATCH] CA-399757: Add CAS style check for SR scan | |SR.scan is currently not an atomic operation, and this has caused |problems as during the scan itself, there might be other calls changing |the state of the database, such as VDI.db_introduce called by SM, if |using SMAPIv1. This will confuse SR.scan as it sees an outdated |snapshot. | |The proposed workaround would be add a CAS style check for SR.scan, |which will refuse to update the db if it detects changes. This is still |subject to the TOCTOU problem, but should reduce the racing window. | |Signed-off-by: Vincent Liu |--- | ocaml/xapi/xapi_sr.ml | 63 ++++++++++++++++++++++++++++++------------- | 1 file changed, 44 insertions(+), 19 deletions(-) | |diff --git ocaml/xapi/xapi_sr.ml ocaml/xapi/xapi_sr.ml |index 7a83493b2..8af5bd6e6 100644 |--- ocaml/xapi/xapi_sr.ml |+++ ocaml/xapi/xapi_sr.ml -------------------------- File to patch: Skip this patch? [y] 1 out of 1 hunk ignored RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.kf8Zj1 (%prep) bogus date in %changelog: Wed Apr 3 2025 Guillaume Thouvenin - 24.39.1-1.3 bogus date in %changelog: Wed Apr 3 2025 Guillaume Thouvenin - 24.39.1-1.2 Bad exit status from /var/tmp/rpm-tmp.kf8Zj1 (%prep) Child return code was: 1 EXCEPTION: [Error()] 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 600, 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 --target x86_64 --nodeps /builddir/build/SPECS/xapi.spec