Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/ddiskit.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS-x86_64-1722837484.449396/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/ddiskit.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) :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/ddiskit-3.6-16.20240805gitde1f684.20240805gitde1f684.src.rpm RPM build warnings: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/ddiskit.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS-x86_64-1722837484.449396/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/ddiskit.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) :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/ddiskit-3.6-16.20240805gitde1f684.20240805gitde1f684.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 --target x86_64 --nodeps /builddir/build/SPECS/ddiskit.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS-x86_64-1722837484.449396/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/ddiskit.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: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.MKKBi7 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3 + /usr/lib/rpm/rpmuncompress -x -v /builddir/build/SOURCES/ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3.tar.gz /usr/bin/gzip -dc '/builddir/build/SOURCES/ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3.tar.gz' | /usr/bin/tar -xvvof - drwxrwxr-x root/root 0 2019-07-11 12:00 ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/ -rw-rw-r-- root/root 35147 2019-07-11 12:00 ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/COPYING -rw-rw-r-- root/root 270 2019-07-11 12:00 ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/MANIFEST.in -rw-rw-r-- root/root 1372 2019-07-11 12:00 ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/README drwxrwxr-x root/root 0 2019-07-11 12:00 ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/bin/ -rw-rw-r-- root/root 107643 2019-07-11 12:00 ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/bin/ddiskit -rw-rw-r-- root/root 20433 2019-07-11 12:00 ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/ddiskit -rw-rw-r-- root/root 53398 2019-07-11 12:00 ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/ddiskit.1 -rw-rw-r-- root/root 2201 2019-07-11 12:00 ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/ddiskit.config -rw-rw-r-- root/root 2396 2019-07-11 12:00 ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/ddiskit.spec -rw-rw-r-- root/root 2213 2019-07-11 12:00 ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/doc drwxrwxr-x root/root 0 2019-07-11 12:00 ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/etc/ -rw-rw-r-- root/root 3094 2019-07-11 12:00 ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/etc/ddiskit.config drwxrwxr-x root/root 0 2019-07-11 12:00 ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/keyrings/ drwxrwxr-x root/root 0 2019-07-11 12:00 ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/keyrings/rh-release/ -rw-rw-r-- root/root 1855 2019-07-11 12:00 ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/keyrings/rh-release/fd431d51.key drwxrwxr-x root/root 0 2019-07-11 12:00 ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/profiles/ -rw-rw-r-- root/root 137 2019-07-11 12:00 ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/profiles/default -rw-rw-r-- root/root 1638 2019-07-11 12:00 ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/profiles/rh-release -rw-rw-r-- root/root 501 2019-07-11 12:00 ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/profiles/rh-testing -rwxrwxr-x root/root 996 2019-07-11 12:00 ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/setup.py drwxrwxr-x root/root 0 2019-07-11 12:00 ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/templates/ -rw-rw-r-- root/root 4121 2019-07-11 12:00 ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/templates/config -rw-rw-r-- root/root 8354 2019-07-11 12:00 ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/templates/spec + STATUS=0 + '[' 0 -ne 0 ']' + cd ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #1 (0001-kabi-stablelists.patch): + echo 'Patch #1 (0001-kabi-stablelists.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file templates/spec Patch #2 (0002-kernel-version-re-fix.patch): + echo 'Patch #2 (0002-kernel-version-re-fix.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file ddiskit.config + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.W95smZ + umask 022 + cd /builddir/build/BUILD + cd ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3 + CFLAGS='-O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection ' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' error: Multiple top-level packages discovered in a flat-layout: ['etc', 'keyrings', 'profiles', 'templates']. To avoid accidental inclusion of unwanted files or directories, setuptools will not proceed with this build. If you are trying to create a single distribution with multiple packages on purpose, you should not rely on automatic discovery. Instead, consider the following options: 1. set up custom discovery (`find` directive with `include` or `exclude`) 2. use a `src-layout` 3. explicitly set `py_modules` or `packages` with a list of names To find more information, look for "package discovery" on setuptools docs. error: Bad exit status from /var/tmp/rpm-tmp.W95smZ (%build) %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.W95smZ (%build) RPM build warnings: RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/ddiskit.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/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 --target x86_64 --nodeps /builddir/build/SPECS/ddiskit.spec