D: [iurt_root_command] chroot Building target platforms: noarch Building for target noarch sh: line 4: [: -j8: integer expression expected sh: line 4: [: -j8: integer expression expected sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/python-magic-0.4.27-3.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.ixZCAz + umask 022 + cd /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build + test -d /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build + /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.nS1MB6 + umask 022 + cd /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build + rm -rf python-magic-0.4.27 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/python-magic-0.4.27.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd python-magic-0.4.27 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/python-magic-0.4.27-fix-test-with-new-file.patch + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%generate_buildrequires): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.iQLn0H + umask 022 + cd /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build + cd python-magic-0.4.27 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + for f in pyproject.toml setup.py setup.cfg + '[' -f pyproject.toml ']' + for f in pyproject.toml setup.py setup.cfg + '[' -f setup.py ']' + sed -i -E -e '/^requires/s/(['\''"]\s*flit_core\s*>=\s*[0-9]+(\.[0-9]+)+)\s*,\s*<\s*[0-9]+(\.[0-9]+)*(\s*['\''"])/\1\4/' setup.py + sed -i -E -e '/python_requires/s/(['\''"]?\s*\S*\s*>=\s*[0-9]+(\.[0-9]+)*)\s*(,\s*(<|!=)\s*[0-9]+(\.[0-9]+)*(\.\*)*)+(\s*['\''"]?)/\1\7/' setup.py + sed -i -E -e 's/(['\''"]?\s*\S*\s*>=\s*[0-9]+(\.[0-9a-z]+)*)\s*,\s*(<|!=|<=)\s*[0-9]+(\.[0-9a-z]+)*(-?dev[0-9]*)?(\.\*)*(\s*['\''"]?)/\1\7/g' setup.py + sed -i -E -e 's/(['\''"]\w+\s*)!=(\s*([0-9])+(\.[0-9]+)*\s*['\''"])/\1>\2/g' setup.py + sed -i -E -e 's/(['\''"]\s*>=\s*[0-9]+(\.[0-9]+)*)\s*,\s*(<|!=)\s*[0-9]+(\.[0-9]+)*(\s*['\''"])/\1\5/g' setup.py + sed -i -E -e 's/(['\''"]?\s*\S*\s*>=\s*[0-9]+(\.[0-9]+)*)\s*(,\s*(<|!=)\s*[0-9]+(\.[0-9]+)*(\.\*)*)+(\s*['\''"]?)/\1\7/g' setup.py + sed -i -E -e 's/(['\''"]\s*)\^(\s*[0-9]+(\.[0-9]+)*\s*['\''"])/\1>=\2/g' setup.py + sed -i -e 's/~=/>=/g' setup.py + sed -i -E -e 's/(['\''"]\s*\S*\s*)==(\s*[0-9]+(\.[0-9]+)*)\.\*(\s*['\''"])/\1>=\2\4/g' setup.py + sed -i -E -e 's/(['\''"]?\w*\s*>=\s*[0-9]+(\.[0-9]+)*)\s*,\s*(<|!=)[0-9]+(\.[0-9]+)*\s*(['\''"]?)/\1\5/g' setup.py + for f in pyproject.toml setup.py setup.cfg + '[' -f setup.cfg ']' + sed -i -E -e '/^requires/s/(['\''"]\s*flit_core\s*>=\s*[0-9]+(\.[0-9]+)+)\s*,\s*<\s*[0-9]+(\.[0-9]+)*(\s*['\''"])/\1\4/' setup.cfg + sed -i -E -e '/python_requires/s/(['\''"]?\s*\S*\s*>=\s*[0-9]+(\.[0-9]+)*)\s*(,\s*(<|!=)\s*[0-9]+(\.[0-9]+)*(\.\*)*)+(\s*['\''"]?)/\1\7/' setup.cfg + sed -i -E -e 's/(['\''"]?\s*\S*\s*>=\s*[0-9]+(\.[0-9a-z]+)*)\s*,\s*(<|!=|<=)\s*[0-9]+(\.[0-9a-z]+)*(-?dev[0-9]*)?(\.\*)*(\s*['\''"]?)/\1\7/g' setup.cfg + sed -i -E -e 's/(['\''"]\w+\s*)!=(\s*([0-9])+(\.[0-9]+)*\s*['\''"])/\1>\2/g' setup.cfg + sed -i -E -e 's/(['\''"]\s*>=\s*[0-9]+(\.[0-9]+)*)\s*,\s*(<|!=)\s*[0-9]+(\.[0-9]+)*(\s*['\''"])/\1\5/g' setup.cfg + sed -i -E -e 's/(['\''"]?\s*\S*\s*>=\s*[0-9]+(\.[0-9]+)*)\s*(,\s*(<|!=)\s*[0-9]+(\.[0-9]+)*(\.\*)*)+(\s*['\''"]?)/\1\7/g' setup.cfg + sed -i -E -e 's/(['\''"]\s*)\^(\s*[0-9]+(\.[0-9]+)*\s*['\''"])/\1>=\2/g' setup.cfg + sed -i -e 's/~=/>=/g' setup.cfg + sed -i -E -e 's/(['\''"]\s*\S*\s*)==(\s*[0-9]+(\.[0-9]+)*)\.\*(\s*['\''"])/\1>=\2\4/g' setup.cfg + sed -i -E -e 's/(['\''"]?\w*\s*>=\s*[0-9]+(\.[0-9]+)*)\s*,\s*(<|!=)[0-9]+(\.[0-9]+)*\s*(['\''"]?)/\1\5/g' setup.cfg + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27/.pyproject-builddir + echo -n + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + CXX=g++ + TMPDIR=/home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27/.pyproject-builddir + RPM_TOXENV=py312 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27/pyproject-wheeldir --output /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27-3.mga10.noarch-pyproject-buildrequires Handling setuptools >= 40.8 from default build backend Requirement satisfied: setuptools >= 40.8 (installed: setuptools 75.6.0) running egg_info creating python_magic.egg-info writing python_magic.egg-info/PKG-INFO writing dependency_links to python_magic.egg-info/dependency_links.txt writing top-level names to python_magic.egg-info/top_level.txt writing manifest file 'python_magic.egg-info/SOURCES.txt' reading manifest file 'python_magic.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no directories found matching 'tests' warning: no previously-included files matching '__pycache__' found anywhere in distribution warning: no previously-included files matching '*.py[co]' found anywhere in distribution adding license file 'LICENSE' writing manifest file 'python_magic.egg-info/SOURCES.txt' running dist_info writing python_magic.egg-info/PKG-INFO writing dependency_links to python_magic.egg-info/dependency_links.txt writing top-level names to python_magic.egg-info/top_level.txt reading manifest file 'python_magic.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no directories found matching 'tests' warning: no previously-included files matching '__pycache__' found anywhere in distribution warning: no previously-included files matching '*.py[co]' found anywhere in distribution adding license file 'LICENSE' writing manifest file 'python_magic.egg-info/SOURCES.txt' creating '/home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27/python_magic-0.4.27.dist-info' /usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:111: SetuptoolsDeprecationWarning: bdist_wheel.universal is deprecated !! ******************************************************************************** With Python 2.7 end-of-life, support for building universal wheels (i.e., wheels that support both Python 2 and Python 3) is being obviated. Please discontinue using this option, or if you still need it, file an issue with pypa/setuptools describing your use case. By 2025-Aug-30, you need to update your project and remove deprecated calls or your builds will no longer be supported. ******************************************************************************** !! self.finalize_options() + cat /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27-3.mga10.noarch-pyproject-buildrequires + rm -rfv python_magic-0.4.27.dist-info/ removed 'python_magic-0.4.27.dist-info/top_level.txt' removed 'python_magic-0.4.27.dist-info/METADATA' removed 'python_magic-0.4.27.dist-info/LICENSE' removed directory 'python_magic-0.4.27.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.dW8YkL + umask 022 + cd /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd python-magic-0.4.27 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + mkdir -p /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27/.pyproject-builddir + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + CXX=g++ + TMPDIR=/home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27/.pyproject-builddir + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_wheel.py /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27/pyproject-wheeldir Processing /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) running dist_info creating /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27/.pyproject-builddir/pip-modern-metadata-xs7p823p/python_magic.egg-info writing /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27/.pyproject-builddir/pip-modern-metadata-xs7p823p/python_magic.egg-info/PKG-INFO writing dependency_links to /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27/.pyproject-builddir/pip-modern-metadata-xs7p823p/python_magic.egg-info/dependency_links.txt writing top-level names to /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27/.pyproject-builddir/pip-modern-metadata-xs7p823p/python_magic.egg-info/top_level.txt writing manifest file '/home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27/.pyproject-builddir/pip-modern-metadata-xs7p823p/python_magic.egg-info/SOURCES.txt' reading manifest file '/home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27/.pyproject-builddir/pip-modern-metadata-xs7p823p/python_magic.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no directories found matching 'tests' warning: no previously-included files matching '__pycache__' found anywhere in distribution warning: no previously-included files matching '*.py[co]' found anywhere in distribution adding license file 'LICENSE' writing manifest file '/home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27/.pyproject-builddir/pip-modern-metadata-xs7p823p/python_magic.egg-info/SOURCES.txt' creating '/home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27/.pyproject-builddir/pip-modern-metadata-xs7p823p/python_magic-0.4.27.dist-info' /usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:111: SetuptoolsDeprecationWarning: bdist_wheel.universal is deprecated !! ******************************************************************************** With Python 2.7 end-of-life, support for building universal wheels (i.e., wheels that support both Python 2 and Python 3) is being obviated. Please discontinue using this option, or if you still need it, file an issue with pypa/setuptools describing your use case. By 2025-Aug-30, you need to update your project and remove deprecated calls or your builds will no longer be supported. ******************************************************************************** !! self.finalize_options() Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: python-magic Building wheel for python-magic (pyproject.toml): started Running command Building wheel for python-magic (pyproject.toml) running bdist_wheel /usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:111: SetuptoolsDeprecationWarning: bdist_wheel.universal is deprecated !! ******************************************************************************** With Python 2.7 end-of-life, support for building universal wheels (i.e., wheels that support both Python 2 and Python 3) is being obviated. Please discontinue using this option, or if you still need it, file an issue with pypa/setuptools describing your use case. By 2025-Aug-30, you need to update your project and remove deprecated calls or your builds will no longer be supported. ******************************************************************************** !! self.finalize_options() running build running build_py creating build/lib/magic copying magic/compat.py -> build/lib/magic copying magic/loader.py -> build/lib/magic copying magic/__init__.py -> build/lib/magic copying magic/__init__.pyi -> build/lib/magic copying magic/py.typed -> build/lib/magic installing to build/bdist.linux-x86_64/wheel running install running install_lib creating build/bdist.linux-x86_64/wheel creating build/bdist.linux-x86_64/wheel/magic copying build/lib/magic/__init__.pyi -> build/bdist.linux-x86_64/wheel/./magic copying build/lib/magic/compat.py -> build/bdist.linux-x86_64/wheel/./magic copying build/lib/magic/loader.py -> build/bdist.linux-x86_64/wheel/./magic copying build/lib/magic/__init__.py -> build/bdist.linux-x86_64/wheel/./magic copying build/lib/magic/py.typed -> build/bdist.linux-x86_64/wheel/./magic running install_egg_info running egg_info writing python_magic.egg-info/PKG-INFO writing dependency_links to python_magic.egg-info/dependency_links.txt writing top-level names to python_magic.egg-info/top_level.txt reading manifest file 'python_magic.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no directories found matching 'tests' warning: no previously-included files matching '__pycache__' found anywhere in distribution warning: no previously-included files matching '*.py[co]' found anywhere in distribution adding license file 'LICENSE' writing manifest file 'python_magic.egg-info/SOURCES.txt' Copying python_magic.egg-info to build/bdist.linux-x86_64/wheel/./python_magic-0.4.27-py3.12.egg-info running install_scripts creating build/bdist.linux-x86_64/wheel/python_magic-0.4.27.dist-info/WHEEL creating '/home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27/.pyproject-builddir/pip-wheel-k44eg544/.tmp-rtwpu5a1/python_magic-0.4.27-py2.py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it adding 'magic/__init__.py' adding 'magic/__init__.pyi' adding 'magic/compat.py' adding 'magic/loader.py' adding 'magic/py.typed' adding 'python_magic-0.4.27.dist-info/LICENSE' adding 'python_magic-0.4.27.dist-info/METADATA' adding 'python_magic-0.4.27.dist-info/WHEEL' adding 'python_magic-0.4.27.dist-info/top_level.txt' adding 'python_magic-0.4.27.dist-info/RECORD' removing build/bdist.linux-x86_64/wheel Building wheel for python-magic (pyproject.toml): finished with status 'done' Created wheel for python-magic: filename=python_magic-0.4.27-py2.py3-none-any.whl size=13762 sha256=e7118af52c0cd918720a341d46edff31191d7029e167cb07ed4a975c20818607 Stored in directory: /home/pterjan/.cache/pip/wheels/bf/a7/19/6e365ff970e8411eeefe33526e562b9458cb1b499439b45650 Successfully built python-magic + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected sh: line 4: [: -j8: integer expression expected Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.Yq9UYm + umask 022 + cd /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build + '[' 1 -eq 1 ']' + '[' /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/BUILDROOT '!=' / ']' + rm -rf /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/BUILDROOT ++ dirname /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/BUILDROOT + mkdir -p /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build + mkdir /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/BUILDROOT + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd python-magic-0.4.27 + '[' 1 -eq 1 ']' ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' ++ xargs basename --multiple ++ ls /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27/pyproject-wheeldir/python_magic-0.4.27-py2.py3-none-any.whl + specifier=python_magic==0.4.27 + '[' -z python_magic==0.4.27 ']' + TMPDIR=/home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27/.pyproject-builddir + /usr/bin/python3 -m pip install --root /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/BUILDROOT --prefix /usr --no-deps --disable-pip-version-check --progress-bar off --verbose --ignore-installed --no-warn-script-location --no-index --no-cache-dir --find-links /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27/pyproject-wheeldir python_magic==0.4.27 Using pip 24.3.1 from /usr/lib/python3.12/site-packages/pip (python 3.12) Looking in links: /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27/pyproject-wheeldir Processing ./pyproject-wheeldir/python_magic-0.4.27-py2.py3-none-any.whl Installing collected packages: python_magic Successfully installed python_magic-0.4.27 + '[' -d /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/BUILDROOT/usr/bin ']' + rm -f /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27-3.mga10.noarch-pyproject-ghost-distinfo + site_dirs=() + '[' -d /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/BUILDROOT/usr/lib/python3.12/site-packages ']' + site_dirs+=("/usr/lib/python3.12/site-packages") + '[' /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/BUILDROOT/usr/lib64/python3.12/site-packages '!=' /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/BUILDROOT/usr/lib/python3.12/site-packages ']' + '[' -d /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/BUILDROOT/usr/lib64/python3.12/site-packages ']' + for site_dir in ${site_dirs[@]} + for distinfo in /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/BUILDROOT$site_dir/*.dist-info + echo '%ghost /usr/lib/python3.12/site-packages/python_magic-0.4.27.dist-info' + sed -i s/pip/rpm/ /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/BUILDROOT/usr/lib/python3.12/site-packages/python_magic-0.4.27.dist-info/INSTALLER + PYTHONPATH=/usr/lib/rpm/redhat + /usr/bin/python3 -B /usr/lib/rpm/redhat/pyproject_preprocess_record.py --buildroot /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/BUILDROOT --record /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/BUILDROOT/usr/lib/python3.12/site-packages/python_magic-0.4.27.dist-info/RECORD --output /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27-3.mga10.noarch-pyproject-record + rm -fv /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/BUILDROOT/usr/lib/python3.12/site-packages/python_magic-0.4.27.dist-info/RECORD removed '/home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/BUILDROOT/usr/lib/python3.12/site-packages/python_magic-0.4.27.dist-info/RECORD' + rm -fv /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/BUILDROOT/usr/lib/python3.12/site-packages/python_magic-0.4.27.dist-info/REQUESTED removed '/home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/BUILDROOT/usr/lib/python3.12/site-packages/python_magic-0.4.27.dist-info/REQUESTED' ++ cut -f1 '-d ' ++ wc -l /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27-3.mga10.noarch-pyproject-ghost-distinfo + lines=1 + '[' 1 -ne 1 ']' + RPM_FILES_ESCAPE=4.19 + /usr/bin/python3 /usr/lib/rpm/redhat/pyproject_save_files.py --output-files /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27-3.mga10.noarch-pyproject-files --output-modules /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27-3.mga10.noarch-pyproject-modules --buildroot /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/BUILDROOT --sitelib /usr/lib/python3.12/site-packages --sitearch /usr/lib64/python3.12/site-packages --python-version 3.12 --pyproject-record /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27-3.mga10.noarch-pyproject-record --prefix /usr magic + /usr/lib/rpm/check-buildroot + '[' -n '' ']' + /usr/share/spec-helper/clean_files + '[' -n '' ']' + /usr/share/spec-helper/compress_files .xz + '[' -n '' ']' + /usr/share/spec-helper/relink_symlinks + '[' -n '' ']' + /usr/share/spec-helper/clean_perl + '[' -n '' ']' + /usr/share/spec-helper/lib_symlinks + '[' -n '' ']' + /usr/share/spec-helper/gprintify + '[' -n '' ']' + /usr/share/spec-helper/fix_mo + '[' -n '' ']' + /usr/share/spec-helper/fix_pamd + '[' -n '' ']' + /usr/share/spec-helper/remove_info_dir + '[' -n '' ']' + /usr/share/spec-helper/fix_eol + '[' -n '' ']' + /usr/share/spec-helper/check_desktop_files + '[' -n '' ']' + /usr/share/spec-helper/check_elf_files + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-mangle-shebangs + env -u SOURCE_DATE_EPOCH /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j48 Bytecompiling .py files below /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/BUILDROOT/usr/lib/python3.12 using python3.12 Not clamping source mtimes, $SOURCE_DATE_EPOCH not set + /usr/lib/rpm/redhat/brp-python-hardlink sh: line 4: [: -j8: integer expression expected Executing(%check): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.EGNyyy + umask 022 + cd /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd python-magic-0.4.27 + '[' 1 -eq 1 ']' + export LC_ALL=en_US.UTF-8 + LC_ALL=en_US.UTF-8 + export PYTHONPATH=. + PYTHONPATH=. + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + PATH=/home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/BUILDROOT/usr/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/pterjan/.local/bin:/home/pterjan/bin + PYTHONPATH=. + PYTHONDONTWRITEBYTECODE=1 + PYTEST_ADDOPTS=' --ignore=/home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27/.pyproject-builddir' + PYTEST_XDIST_AUTO_NUM_WORKERS=48 + /usr/bin/pytest ============================= test session starts ============================== platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0 rootdir: /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27 collected 20 items test/libmagic_test.py FFF [ 15%] test/python_magic_test.py F.............ss. [100%] =================================== FAILURES =================================== ____________________ MagicTestCase.test_detect_from_content ____________________ self = def test_detect_from_content(self): # differ from upstream by opening file in binary mode, # this avoids hitting a bug in python3+libfile bindings # see https://github.com/ahupp/python-magic/issues/152 # for a similar issue with open(self.filename, 'rb') as fobj: result = magic.detect_from_content(fobj.read(4096)) > self.assert_result(result) test/libmagic_test.py:46: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test/libmagic_test.py:23: in assert_result self.assertIn(result.name, self.expected_name) E AssertionError: 'PDF document, version 1.2, 2 page(s)' not found in ('PDF document, version 1.2', 'PDF document, version 1.2, 2 pages') ___________________ MagicTestCase.test_detect_from_filename ____________________ self = def test_detect_from_filename(self): result = magic.detect_from_filename(self.filename) > self.assert_result(result) test/libmagic_test.py:27: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test/libmagic_test.py:23: in assert_result self.assertIn(result.name, self.expected_name) E AssertionError: 'PDF document, version 1.2, 2 page(s)' not found in ('PDF document, version 1.2', 'PDF document, version 1.2, 2 pages') _____________________ MagicTestCase.test_detect_from_fobj ______________________ self = def test_detect_from_fobj(self): if SKIP_FROM_DESCRIPTOR: self.skipTest("magic_descriptor is broken in this version of libmagic") with open(self.filename) as fobj: result = magic.detect_from_fobj(fobj) > self.assert_result(result) test/libmagic_test.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test/libmagic_test.py:23: in assert_result self.assertIn(result.name, self.expected_name) E AssertionError: 'PDF document, version 1.2, 2 page(s)' not found in ('PDF document, version 1.2', 'PDF document, version 1.2, 2 pages') _________________________ MagicTest.test_descriptions __________________________ self = def test_descriptions(self): m = magic.Magic() os.environ['TZ'] = 'UTC' # To get last modified date of test.gz in UTC try: > self.assert_values(m, { 'magic._pyc_': 'python 2.4 byte-compiled', 'test.pdf': ('PDF document, version 1.2', 'PDF document, version 1.2, 2 pages'), 'test.gz': ('gzip compressed data, was "test", from Unix, last ' 'modified: Sun Jun 29 01:32:52 2008', 'gzip compressed data, was "test", last modified' ': Sun Jun 29 01:32:52 2008, from Unix', 'gzip compressed data, was "test", last modified' ': Sun Jun 29 01:32:52 2008, from Unix, original size 15', 'gzip compressed data, was "test", ' 'last modified: Sun Jun 29 01:32:52 2008, ' 'from Unix, original size modulo 2^32 15', 'gzip compressed data, was "test", last modified' ': Sun Jun 29 01:32:52 2008, from Unix, truncated' ), 'text.txt': 'ASCII text', 'test.snappy.parquet': ('Apache Parquet', 'Par archive data'), }, buf_equals_file=False) test/python_magic_test.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test/python_magic_test.py:53: in assert_values self.assertIn(value, expected_value) E AssertionError: 'PDF document, version 1.2, 2 page(s)' not found in ('PDF document, version 1.2', 'PDF document, version 1.2, 2 pages') =============================== warnings summary =============================== test/libmagic_test.py::MagicTestCase::test_detect_from_content test/libmagic_test.py::MagicTestCase::test_detect_from_filename test/libmagic_test.py::MagicTestCase::test_detect_from_fobj /home/pterjan/rpmbuild/BUILD/python-magic-0.4.27-build/python-magic-0.4.27/magic/__init__.py:437: PendingDeprecationWarning: Using compatibility mode with libmagic's python binding. See https://github.com/ahupp/python-magic/blob/master/COMPAT.md for details. warnings.warn( -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED test/libmagic_test.py::MagicTestCase::test_detect_from_content - Asser... FAILED test/libmagic_test.py::MagicTestCase::test_detect_from_filename - Asse... FAILED test/libmagic_test.py::MagicTestCase::test_detect_from_fobj - Assertio... FAILED test/python_magic_test.py::MagicTest::test_descriptions - AssertionErr... ============= 4 failed, 14 passed, 2 skipped, 3 warnings in 0.12s ============== error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.EGNyyy (%check) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.EGNyyy (%check) I: [iurt_root_command] ERROR: chroot