D: [iurt_root_command] chroot
Building target platforms: noarch
Building for target noarch
Installing /home/pterjan/rpmbuild/SRPMS/koschei-2.4.0-6.mga10.src.rpm
Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.QeJgc9
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/koschei-2.4.0-build
+ test -d /home/pterjan/rpmbuild/BUILD/koschei-2.4.0-build
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/koschei-2.4.0-build
+ /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILD/koschei-2.4.0-build
+ /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/koschei-2.4.0-build
+ /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/koschei-2.4.0-build/SPECPARTS
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.rupKnp
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/koschei-2.4.0-build
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/pterjan/rpmbuild/BUILD/koschei-2.4.0-build
+ rm -rf koschei-2.4.0
+ /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/koschei-2.4.0.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd koschei-2.4.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/0001-Port-to-new-hawkey.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
+ /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/koschei-2.4.0-mga-Revert-Use-local-JQuery.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
+ sed 's|@CACHEDIR@|/var/cache/koschei|g
     s|@DATADIR@|/usr/share/koschei|g
     s|@VERSION@|2.4.0-6.mga10|g
     s|@CONFDIR@|/etc/koschei|g
     s|@STATEDIR@|/var/lib/koschei|g' config.cfg.template
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.AxMnKc
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/koschei-2.4.0-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 koschei-2.4.0
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ 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'
+ /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP'
/usr/lib/python3.12/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite'
  warnings.warn(msg)
running build
running build_py
creating build/lib/koschei
copying koschei/data.py -> build/lib/koschei
copying koschei/admin.py -> build/lib/koschei
copying koschei/locks.py -> build/lib/koschei
copying koschei/config.py -> build/lib/koschei
copying koschei/__init__.py -> build/lib/koschei
copying koschei/db.py -> build/lib/koschei
copying koschei/util.py -> build/lib/koschei
copying koschei/plugin.py -> build/lib/koschei
copying koschei/session.py -> build/lib/koschei
copying koschei/models.py -> build/lib/koschei
creating build/lib/koschei/plugins
copying koschei/plugins/__init__.py -> build/lib/koschei/plugins
creating build/lib/koschei/frontend
copying koschei/frontend/template_functions.py -> build/lib/koschei/frontend
copying koschei/frontend/auth.py -> build/lib/koschei/frontend
copying koschei/frontend/filters.py -> build/lib/koschei/frontend
copying koschei/frontend/tabs.py -> build/lib/koschei/frontend
copying koschei/frontend/model_additions.py -> build/lib/koschei/frontend
copying koschei/frontend/views.py -> build/lib/koschei/frontend
copying koschei/frontend/__init__.py -> build/lib/koschei/frontend
copying koschei/frontend/util.py -> build/lib/koschei/frontend
copying koschei/frontend/api.py -> build/lib/koschei/frontend
copying koschei/frontend/base.py -> build/lib/koschei/frontend
copying koschei/frontend/forms.py -> build/lib/koschei/frontend
creating build/lib/koschei/backend
copying koschei/backend/depsolve.py -> build/lib/koschei/backend
copying koschei/backend/main.py -> build/lib/koschei/backend
copying koschei/backend/repo_util.py -> build/lib/koschei/backend
copying koschei/backend/file_cache.py -> build/lib/koschei/backend
copying koschei/backend/service.py -> build/lib/koschei/backend
copying koschei/backend/__init__.py -> build/lib/koschei/backend
copying koschei/backend/repo_cache.py -> build/lib/koschei/backend
copying koschei/backend/koji_util.py -> build/lib/koschei/backend
creating build/lib/koschei/plugins/fedmsg_plugin
copying koschei/plugins/fedmsg_plugin/__init__.py -> build/lib/koschei/plugins/fedmsg_plugin
creating build/lib/koschei/plugins/repo_regen_plugin
copying koschei/plugins/repo_regen_plugin/__init__.py -> build/lib/koschei/plugins/repo_regen_plugin
copying koschei/plugins/repo_regen_plugin/backend.py -> build/lib/koschei/plugins/repo_regen_plugin
creating build/lib/koschei/plugins/pagure_plugin
copying koschei/plugins/pagure_plugin/frontend.py -> build/lib/koschei/plugins/pagure_plugin
copying koschei/plugins/pagure_plugin/__init__.py -> build/lib/koschei/plugins/pagure_plugin
creating build/lib/koschei/plugins/copr_plugin
copying koschei/plugins/copr_plugin/frontend.py -> build/lib/koschei/plugins/copr_plugin
copying koschei/plugins/copr_plugin/__init__.py -> build/lib/koschei/plugins/copr_plugin
creating build/lib/koschei/plugins/fedmsg_plugin/backend
copying koschei/plugins/fedmsg_plugin/backend/publisher.py -> build/lib/koschei/plugins/fedmsg_plugin/backend
copying koschei/plugins/fedmsg_plugin/backend/__init__.py -> build/lib/koschei/plugins/fedmsg_plugin/backend
creating build/lib/koschei/plugins/fedmsg_plugin/backend/services
copying koschei/plugins/fedmsg_plugin/backend/services/__init__.py -> build/lib/koschei/plugins/fedmsg_plugin/backend/services
copying koschei/plugins/fedmsg_plugin/backend/services/watcher.py -> build/lib/koschei/plugins/fedmsg_plugin/backend/services
creating build/lib/koschei/plugins/copr_plugin/backend
copying koschei/plugins/copr_plugin/backend/copr_polling.py -> build/lib/koschei/plugins/copr_plugin/backend
copying koschei/plugins/copr_plugin/backend/common.py -> build/lib/koschei/plugins/copr_plugin/backend
copying koschei/plugins/copr_plugin/backend/__init__.py -> build/lib/koschei/plugins/copr_plugin/backend
copying koschei/plugins/copr_plugin/backend/cleanup.py -> build/lib/koschei/plugins/copr_plugin/backend
creating build/lib/koschei/plugins/copr_plugin/backend/services
copying koschei/plugins/copr_plugin/backend/services/copr_resolver.py -> build/lib/koschei/plugins/copr_plugin/backend/services
copying koschei/plugins/copr_plugin/backend/services/__init__.py -> build/lib/koschei/plugins/copr_plugin/backend/services
copying koschei/plugins/copr_plugin/backend/services/copr_scheduler.py -> build/lib/koschei/plugins/copr_plugin/backend/services
creating build/lib/koschei/backend/services
copying koschei/backend/services/scheduler.py -> build/lib/koschei/backend/services
copying koschei/backend/services/polling.py -> build/lib/koschei/backend/services
copying koschei/backend/services/__init__.py -> build/lib/koschei/backend/services
copying koschei/backend/services/resolver.py -> build/lib/koschei/backend/services
copying koschei/backend/services/repo_resolver.py -> build/lib/koschei/backend/services
copying koschei/backend/services/build_resolver.py -> build/lib/koschei/backend/services
running egg_info
creating koschei.egg-info
writing koschei.egg-info/PKG-INFO
writing dependency_links to koschei.egg-info/dependency_links.txt
writing top-level names to koschei.egg-info/top_level.txt
writing manifest file 'koschei.egg-info/SOURCES.txt'
reading manifest file 'koschei.egg-info/SOURCES.txt'
adding license file 'LICENSE.txt'
adding license file 'AUTHORS'
writing manifest file 'koschei.egg-info/SOURCES.txt'
+ PYTHONPATH=.:
+ /usr/bin/python3 aux/gen-bash-completion.py
Traceback (most recent call last):
  File "/home/pterjan/rpmbuild/BUILD/koschei-2.4.0-build/koschei-2.4.0/aux/gen-bash-completion.py", line 22, in <module>
    from koschei.admin import Command
  File "/home/pterjan/rpmbuild/BUILD/koschei-2.4.0-build/koschei-2.4.0/koschei/admin.py", line 28, in <module>
    from koschei import data, backend, plugin
  File "/home/pterjan/rpmbuild/BUILD/koschei-2.4.0-build/koschei-2.4.0/koschei/data.py", line 22, in <module>
    from koschei.models import (
  File "/home/pterjan/rpmbuild/BUILD/koschei-2.4.0-build/koschei-2.4.0/koschei/models.py", line 1119, in <module>
    class ScalarStats(MaterializedView):
  File "/home/pterjan/rpmbuild/BUILD/koschei-2.4.0-build/koschei-2.4.0/koschei/models.py", line 1127, in ScalarStats
    count_query(Package).label('packages'),
    ^^^^^^^^^^^^^^^^^^^^
  File "/home/pterjan/rpmbuild/BUILD/koschei-2.4.0-build/koschei-2.4.0/koschei/models.py", line 1116, in count_query
    return select([func.count(entity.id)]).select_from(entity)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/site-packages/sqlalchemy/sql/_selectable_constructors.py", line 482, in select
    return Select(*entities)
           ^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/site-packages/sqlalchemy/sql/selectable.py", line 5196, in __init__
    coercions.expect(
  File "/usr/lib64/python3.12/site-packages/sqlalchemy/sql/coercions.py", line 395, in expect
    resolved = impl._literal_coercion(
               ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/site-packages/sqlalchemy/sql/coercions.py", line 634, in _literal_coercion
    self._raise_for_expected(element, argname)
  File "/usr/lib64/python3.12/site-packages/sqlalchemy/sql/coercions.py", line 1134, in _raise_for_expected
    return super()._raise_for_expected(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/site-packages/sqlalchemy/sql/coercions.py", line 695, in _raise_for_expected
    super()._raise_for_expected(
  File "/usr/lib64/python3.12/site-packages/sqlalchemy/sql/coercions.py", line 518, in _raise_for_expected
    raise exc.ArgumentError(msg, code=code) from err
sqlalchemy.exc.ArgumentError: Column expression, FROM clause, or other columns clause element expected, got [<sqlalchemy.sql.functions.count at 0x7f37a22612b0; count>]. Did you mean to say select(<sqlalchemy.sql.functions.count at 0x7f37a22612b0; count>)?
error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.AxMnKc (%build)

RPM build errors:
    Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.AxMnKc (%build)
I: [iurt_root_command] ERROR: chroot