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/dotnet6.0.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-128946-8712/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/dotnet6.0.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 (9 usages found), use %patch N (or %patch -P N) Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/dotnet6.0-6.0.126-2.ocs23.src.rpm RPM build warnings: %patchN is deprecated (9 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/dotnet6.0.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-128946-8712/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/dotnet6.0.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 (9 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.C8BUZ7 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf dotnet-v6.0.126 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/dotnet-v6.0.126.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd dotnet-v6.0.126 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + find -iname '*.dll' -type f -delete + find -iname '*.so' -type f -delete + find -iname '*.tar.gz' -type f -delete + find -iname '*.nupkg' -type f -delete + find -iname '*.zip' -type f -delete + rm -rf .dotnet/ + rm -rf packages/source-built + mkdir -p packages/archive + ln -s /usr/lib64/dotnet/source-built-artifacts/Private.SourceBuilt.Artifacts.6.0.123.opencloudos.23-x64.tar.gz packages/archive/ + sed -i 's|/usr/share/dotnet|/usr/lib64/dotnet|' src/runtime/src/native/corehost/hostmisc/pal.unix.cpp + pushd src/runtime ~/build/BUILD/dotnet-v6.0.126/src/runtime ~/build/BUILD/dotnet-v6.0.126 Patch #3000 (runtime-arm64-lld-fix.patch): + echo 'Patch #3000 (runtime-arm64-lld-fix.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file eng/native/init-compiler.sh Patch #3001 (runtime-mono-remove-ilstrip.patch): + echo 'Patch #3001 (runtime-mono-remove-ilstrip.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file src/mono/nuget/Microsoft.NET.Runtime.MonoTargets.Sdk/Microsoft.NET.Runtime.MonoTargets.Sdk.pkgproj patching file src/mono/nuget/Microsoft.NET.Runtime.MonoTargets.Sdk/Sdk/Sdk.props Patch #5000 (runtime-rid-opencloudos.patch): + echo 'Patch #5000 (runtime-rid-opencloudos.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file src/libraries/Microsoft.NETCore.Platforms/src/runtime.json Hunk #1 succeeded at 2366 (offset 375 lines). patching file src/libraries/Microsoft.NETCore.Platforms/src/runtime.compatibility.json Hunk #1 succeeded at 6391 (offset 1517 lines). patching file src/libraries/Microsoft.NETCore.Platforms/src/runtimeGroups.props Hunk #2 succeeded at 295 (offset 8 lines). ~/build/BUILD/dotnet-v6.0.126 + popd + pushd src/fsharp + echo 'Patch #3002 (fsharp-no-apphost.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 ~/build/BUILD/dotnet-v6.0.126/src/fsharp ~/build/BUILD/dotnet-v6.0.126 Patch #3002 (fsharp-no-apphost.patch): patching file tests/benchmarks/MicroPerf/MicroPerf.fsproj patching file tests/benchmarks/TaskPerf/TaskPerf.fsproj ~/build/BUILD/dotnet-v6.0.126 + popd + pushd src/arcade + echo 'Patch #3003 (arcade-no-apphost.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 ~/build/BUILD/dotnet-v6.0.126/src/arcade ~/build/BUILD/dotnet-v6.0.126 Patch #3003 (arcade-no-apphost.patch): can't find file to patch at input line 5 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |Index: a/src/Microsoft.DotNet.GitSync.CommitManager/Microsoft.DotNet.GitSync.CommitManager.csproj |=================================================================== |--- a/src/Microsoft.DotNet.GitSync.CommitManager/Microsoft.DotNet.GitSync.CommitManager.csproj |+++ b/src/Microsoft.DotNet.GitSync.CommitManager/Microsoft.DotNet.GitSync.CommitManager.csproj -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored patching file src/Microsoft.DotNet.SwaggerGenerator/Microsoft.DotNet.SwaggerGenerator.CmdLine/Microsoft.DotNet.SwaggerGenerator.CmdLine.csproj patching file src/Microsoft.DotNet.XUnitConsoleRunner/src/Microsoft.DotNet.XUnitConsoleRunner.csproj RPM build warnings: RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.C8BUZ7 (%prep) %patchN is deprecated (9 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.C8BUZ7 (%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/dotnet6.0.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/dotnet6.0.spec