Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python3-py3dns.spec'], chrootPath='/var/lib/mock/f39-build-1426194-31585/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python3-py3dns.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: Macro expanded in comment on line 12: %{distname}/%{distname}-%{version}.tar.gz warning: Macro expanded in comment on line 12: %{distname}/%{distname}-%{version}.tar.gz warning: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1674172800 Wrote: /builddir/build/SRPMS/python3-py3dns-3.2.1-9.fc39.src.rpm RPM build warnings: Macro expanded in comment on line 12: %{distname}/%{distname}-%{version}.tar.gz Macro expanded in comment on line 12: %{distname}/%{distname}-%{version}.tar.gz %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 noarch --nodeps /builddir/build/SPECS/python3-py3dns.spec'], chrootPath='/var/lib/mock/f39-build-1426194-31585/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python3-py3dns.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: Macro expanded in comment on line 12: %{distname}/%{distname}-%{version}.tar.gz warning: Macro expanded in comment on line 12: %{distname}/%{distname}-%{version}.tar.gz warning: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1674172800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Eg7Ay1 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf py3dns-3.2.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/py3dns-3.2.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd py3dns-3.2.1 + rm -rf /builddir/build/BUILD/py3dns-3.2.1-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/py3dns-3.2.1-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (python3-py3dns-handle-absent-resolv.patch):' Patch #0 (python3-py3dns-handle-absent-resolv.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file DNS/Base.py Patch #1 (python3-py3dns-py3_friendly_warning.patch): + echo 'Patch #1 (python3-py3dns-py3_friendly_warning.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file DNS/Base.py Hunk #1 succeeded at 54 (offset 1 line). + rm -rf py3dns.egg-info + for file in DNS/Lib.py DNS/Type.py + iconv -f ISO-8859-1 -t UTF-8 -o DNS/Lib.py.new DNS/Lib.py + touch -r DNS/Lib.py DNS/Lib.py.new + mv DNS/Lib.py.new DNS/Lib.py + for file in DNS/Lib.py DNS/Type.py + iconv -f ISO-8859-1 -t UTF-8 -o DNS/Type.py.new DNS/Type.py + touch -r DNS/Type.py DNS/Type.py.new + mv DNS/Type.py.new DNS/Type.py + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.yKcaqE + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd py3dns-3.2.1 + /usr/bin/python3 setup.py build /builddir/build/BUILD/py3dns-3.2.1/DNS/Base.py:463: SyntaxWarning: invalid escape sequence '\s' res_re = re.compile('^\s+nameserver[]0-9[]*\s*\:\s*(\S+)$') Traceback (most recent call last): File "/builddir/build/BUILD/py3dns-3.2.1/setup.py", line 7, in import DNS File "/builddir/build/BUILD/py3dns-3.2.1/DNS/__init__.py", line 27, in from .Base import DnsRequest File "/builddir/build/BUILD/py3dns-3.2.1/DNS/Base.py", line 17, in import asyncore ModuleNotFoundError: No module named 'asyncore' error: Bad exit status from /var/tmp/rpm-tmp.yKcaqE (%build) RPM build warnings: RPM build errors: Macro expanded in comment on line 12: %{distname}/%{distname}-%{version}.tar.gz Macro expanded in comment on line 12: %{distname}/%{distname}-%{version}.tar.gz %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.yKcaqE (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python3-py3dns.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 598, 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 noarch --nodeps /builddir/build/SPECS/python3-py3dns.spec