Mock Version: 2.12 Mock Version: 2.12 Mock Version: 2.12 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/dotnet5.0.spec'], chrootPath='/var/lib/mock/dist-an8_5-build-90131-45288/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=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/dotnet5.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 Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/dotnet5.0-5.0.212-1.0.1.an8_5.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/dotnet5.0.spec'], chrootPath='/var/lib/mock/dist-an8_5-build-90131-45288/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=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/dotnet5.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 Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.IpPvh4 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf dotnet-v5.0.212-SDK + /usr/bin/gzip -dc /builddir/build/SOURCES/dotnet-v5.0.212-SDK.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd dotnet-v5.0.212-SDK + /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.5.0.0-dev.tar.gz packages/archive/ + ln -s /usr/lib64/dotnet/reference-packages/Private.SourceBuild.ReferencePackages.0.tar.gz packages/archive + sed -i 's|/usr/share/dotnet|/usr/lib64/dotnet|' src/dotnet-runtime.3065735be79d6b7d17e8e3a723115810b43c9b3a/src/installer/corehost/cli/hostmisc/pal.unix.cpp + sed -i 's|skiptests|skiptests ignorewarnings|' repos/runtime.common.props + echo 'Patch #1 (source-build-remove-test-references-from-patches.patch):' Patch #1 (source-build-remove-test-references-from-patches.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file patches/runtime/0036-Add-net46-for-some-packages-to-support-Omnisharp.patch + pushd src/dotnet-runtime.3065735be79d6b7d17e8e3a723115810b43c9b3a ~/build/BUILD/dotnet-v5.0.212-SDK/src/dotnet-runtime.3065735be79d6b7d17e8e3a723115810b43c9b3a ~/build/BUILD/dotnet-v5.0.212-SDK ~/build/BUILD/dotnet-v5.0.212-SDK ~/build/BUILD/dotnet-v5.0.212-SDK/src/dotnet-sdk.983ff3c3e84516a257537c7f26c3e3d44b08afbe ~/build/BUILD/dotnet-v5.0.212-SDK Patch #500 (sdk-telemetry-optout.patch): + popd + pushd src/dotnet-sdk.983ff3c3e84516a257537c7f26c3e3d44b08afbe + echo 'Patch #500 (sdk-telemetry-optout.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/Cli/dotnet/Program.cs Hunk #1 succeeded at 29 (offset 1 line). + popd ~/build/BUILD/dotnet-v5.0.212-SDK Patch #1000 (1000-dotnet-anolis-add-distro.patch): + echo 'Patch #1000 (1000-dotnet-anolis-add-distro.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/dotnet-runtime.3065735be79d6b7d17e8e3a723115810b43c9b3a/src/libraries/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props patching file src/diagnostics.47296ca69bb66180c132f3b16667f904dfc7c6c7/eng/init-distro-rid.sh Hunk #1 FAILED at 51. 1 out of 1 hunk FAILED -- saving rejects to file src/diagnostics.47296ca69bb66180c132f3b16667f904dfc7c6c7/eng/init-distro-rid.sh.rej patching file src/dotnet-runtime.3065735be79d6b7d17e8e3a723115810b43c9b3a/eng/native/init-distro-rid.sh error: Bad exit status from /var/tmp/rpm-tmp.IpPvh4 (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.IpPvh4 (%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/dotnet5.0.spec