D: [iurt_root_command] chroot
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
Building target platforms: noarch
Building for target noarch
Installing /home/pterjan/rpmbuild/SRPMS/python-openssl-23.3.0-1.mga10.src.rpm
Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.0aBrsu
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build
+ test -d /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build
+ /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build
+ /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build
+ /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/SPECPARTS
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.c04YnH
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build
+ rm -rf pyOpenSSL-23.3.0
+ /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/pyOpenSSL-23.3.0.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd pyOpenSSL-23.3.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%generate_buildrequires): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.MMDbcZ
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build
+ cd pyOpenSSL-23.3.0
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ :
+ echo pyproject-rpm-macros
+ echo python3-devel
+ echo 'python3dist(pip) >= 19'
+ echo 'python3dist(packaging)'
+ '[' -f pyproject.toml ']'
+ true
+ for f in pyproject.toml setup.py setup.cfg
+ '[' -f pyproject.toml ']'
+ 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/' pyproject.toml
+ 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/' pyproject.toml
+ 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' pyproject.toml
+ sed -i -E -e 's/(['\''"]\w+\s*)!=(\s*([0-9])+(\.[0-9]+)*\s*['\''"])/\1>\2/g' pyproject.toml
+ sed -i -E -e 's/(['\''"]\s*>=\s*[0-9]+(\.[0-9]+)*)\s*,\s*(<|!=)\s*[0-9]+(\.[0-9]+)*(\s*['\''"])/\1\5/g' pyproject.toml
+ sed -i -E -e 's/(['\''"]?\s*\S*\s*>=\s*[0-9]+(\.[0-9]+)*)\s*(,\s*(<|!=)\s*[0-9]+(\.[0-9]+)*(\.\*)*)+(\s*['\''"]?)/\1\7/g' pyproject.toml
+ sed -i -E -e 's/(['\''"]\s*)\^(\s*[0-9]+(\.[0-9]+)*\s*['\''"])/\1>=\2/g' pyproject.toml
+ sed -i -e 's/~=/>=/g' pyproject.toml
+ sed -i -E -e 's/(['\''"]\s*\S*\s*)==(\s*[0-9]+(\.[0-9]+)*)\.\*(\s*['\''"])/\1>=\2\4/g' pyproject.toml
+ sed -i -E -e 's/(['\''"]?\w*\s*>=\s*[0-9]+(\.[0-9]+)*)\s*,\s*(<|!=)[0-9]+(\.[0-9]+)*\s*(['\''"]?)/\1\5/g' 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-openssl-23.3.0-build/pyOpenSSL-23.3.0/.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'
+ 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'
+ TMPDIR=/home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0/.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-openssl-23.3.0-build/pyOpenSSL-23.3.0/pyproject-wheeldir --output /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/python-openssl-23.3.0-1.mga10.noarch-pyproject-buildrequires -x test
Handling setuptools >= 40.8 from default build backend
Requirement satisfied: setuptools >= 40.8
   (installed: setuptools 75.6.0)
Handling wheel from default build backend
Requirement satisfied: wheel
   (installed: wheel 0.43.0)
running egg_info
writing src/pyOpenSSL.egg-info/PKG-INFO
writing dependency_links to src/pyOpenSSL.egg-info/dependency_links.txt
writing requirements to src/pyOpenSSL.egg-info/requires.txt
writing top-level names to src/pyOpenSSL.egg-info/top_level.txt
reading manifest file 'src/pyOpenSSL.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching 'codecov.yml'
warning: no previously-included files found matching '.readthedocs.yml'
warning: no previously-included files found matching 'mypy.ini'
no previously-included directories found matching 'doc/_build'
adding license file 'LICENSE'
writing manifest file 'src/pyOpenSSL.egg-info/SOURCES.txt'
running dist_info
creating pyOpenSSL.egg-info
writing pyOpenSSL.egg-info/PKG-INFO
writing dependency_links to pyOpenSSL.egg-info/dependency_links.txt
writing requirements to pyOpenSSL.egg-info/requires.txt
writing top-level names to pyOpenSSL.egg-info/top_level.txt
writing manifest file 'pyOpenSSL.egg-info/SOURCES.txt'
reading manifest file 'pyOpenSSL.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching 'codecov.yml'
warning: no previously-included files found matching '.readthedocs.yml'
warning: no previously-included files found matching 'mypy.ini'
no previously-included directories found matching 'doc/_build'
adding license file 'LICENSE'
writing manifest file 'pyOpenSSL.egg-info/SOURCES.txt'
creating '/home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0/pyOpenSSL-23.3.0.dist-info'
Handling cryptography>=41.0.5 from hook generated metadata: Requires-Dist (pyOpenSSL)
Requirement satisfied: cryptography>=41.0.5
   (installed: cryptography 44.0.0)
Handling flaky; extra == "test" from hook generated metadata: Requires-Dist (pyOpenSSL)
Requirement satisfied: flaky; extra == "test"
   (installed: flaky 3.8.1)
Handling pretend; extra == "test" from hook generated metadata: Requires-Dist (pyOpenSSL)
Requirement satisfied: pretend; extra == "test"
   (installed: pretend 1.0.9)
Handling pytest>=3.0.1; extra == "test" from hook generated metadata: Requires-Dist (pyOpenSSL)
Requirement satisfied: pytest>=3.0.1; extra == "test"
   (installed: pytest 8.3.4)
Handling sphinx!=5.2.0,!=5.2.0.post0,!=7.2.5; extra == "docs" from hook generated metadata: Requires-Dist (pyOpenSSL)
Ignoring alien requirement: sphinx!=5.2.0,!=5.2.0.post0,!=7.2.5; extra == "docs"
Handling sphinx_rtd_theme; extra == "docs" from hook generated metadata: Requires-Dist (pyOpenSSL)
Ignoring alien requirement: sphinx_rtd_theme; extra == "docs"
+ cat /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/python-openssl-23.3.0-1.mga10.noarch-pyproject-buildrequires
+ rm -rfv pyOpenSSL-23.3.0.dist-info/
removed 'pyOpenSSL-23.3.0.dist-info/top_level.txt'
removed 'pyOpenSSL-23.3.0.dist-info/METADATA'
removed 'pyOpenSSL-23.3.0.dist-info/LICENSE'
removed directory 'pyOpenSSL-23.3.0.dist-info/'
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.tPv5Vw
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build
+ cd pyOpenSSL-23.3.0
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ export '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 -fno-strict-aliasing'
+ 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 -fno-strict-aliasing'
+ mkdir -p /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0/.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 -fno-strict-aliasing'
+ 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'
+ TMPDIR=/home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0/.pyproject-builddir
+ /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_wheel.py /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0/pyproject-wheeldir
Processing /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0
  Preparing metadata (pyproject.toml): started
  Running command Preparing metadata (pyproject.toml)
  running dist_info
  creating /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0/.pyproject-builddir/pip-modern-metadata-3v3wvl0e/pyOpenSSL.egg-info
  writing /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0/.pyproject-builddir/pip-modern-metadata-3v3wvl0e/pyOpenSSL.egg-info/PKG-INFO
  writing dependency_links to /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0/.pyproject-builddir/pip-modern-metadata-3v3wvl0e/pyOpenSSL.egg-info/dependency_links.txt
  writing requirements to /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0/.pyproject-builddir/pip-modern-metadata-3v3wvl0e/pyOpenSSL.egg-info/requires.txt
  writing top-level names to /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0/.pyproject-builddir/pip-modern-metadata-3v3wvl0e/pyOpenSSL.egg-info/top_level.txt
  writing manifest file '/home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0/.pyproject-builddir/pip-modern-metadata-3v3wvl0e/pyOpenSSL.egg-info/SOURCES.txt'
  reading manifest file '/home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0/.pyproject-builddir/pip-modern-metadata-3v3wvl0e/pyOpenSSL.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no previously-included files found matching 'codecov.yml'
  warning: no previously-included files found matching '.readthedocs.yml'
  warning: no previously-included files found matching 'mypy.ini'
  no previously-included directories found matching 'doc/_build'
  adding license file 'LICENSE'
  writing manifest file '/home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0/.pyproject-builddir/pip-modern-metadata-3v3wvl0e/pyOpenSSL.egg-info/SOURCES.txt'
  creating '/home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0/.pyproject-builddir/pip-modern-metadata-3v3wvl0e/pyOpenSSL-23.3.0.dist-info'
  Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: pyOpenSSL
  Building wheel for pyOpenSSL (pyproject.toml): started
  Running command Building wheel for pyOpenSSL (pyproject.toml)
  running bdist_wheel
  running build
  running build_py
  creating build/lib/OpenSSL
  copying src/OpenSSL/version.py -> build/lib/OpenSSL
  copying src/OpenSSL/crypto.py -> build/lib/OpenSSL
  copying src/OpenSSL/debug.py -> build/lib/OpenSSL
  copying src/OpenSSL/_util.py -> build/lib/OpenSSL
  copying src/OpenSSL/__init__.py -> build/lib/OpenSSL
  copying src/OpenSSL/rand.py -> build/lib/OpenSSL
  copying src/OpenSSL/SSL.py -> build/lib/OpenSSL
  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/OpenSSL
  copying build/lib/OpenSSL/version.py -> build/bdist.linux-x86_64/wheel/./OpenSSL
  copying build/lib/OpenSSL/crypto.py -> build/bdist.linux-x86_64/wheel/./OpenSSL
  copying build/lib/OpenSSL/debug.py -> build/bdist.linux-x86_64/wheel/./OpenSSL
  copying build/lib/OpenSSL/_util.py -> build/bdist.linux-x86_64/wheel/./OpenSSL
  copying build/lib/OpenSSL/__init__.py -> build/bdist.linux-x86_64/wheel/./OpenSSL
  copying build/lib/OpenSSL/rand.py -> build/bdist.linux-x86_64/wheel/./OpenSSL
  copying build/lib/OpenSSL/SSL.py -> build/bdist.linux-x86_64/wheel/./OpenSSL
  running install_egg_info
  running egg_info
  writing src/pyOpenSSL.egg-info/PKG-INFO
  writing dependency_links to src/pyOpenSSL.egg-info/dependency_links.txt
  writing requirements to src/pyOpenSSL.egg-info/requires.txt
  writing top-level names to src/pyOpenSSL.egg-info/top_level.txt
  reading manifest file 'src/pyOpenSSL.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no previously-included files found matching 'codecov.yml'
  warning: no previously-included files found matching '.readthedocs.yml'
  warning: no previously-included files found matching 'mypy.ini'
  no previously-included directories found matching 'doc/_build'
  adding license file 'LICENSE'
  writing manifest file 'src/pyOpenSSL.egg-info/SOURCES.txt'
  Copying src/pyOpenSSL.egg-info to build/bdist.linux-x86_64/wheel/./pyOpenSSL-23.3.0-py3.12.egg-info
  running install_scripts
  creating build/bdist.linux-x86_64/wheel/pyOpenSSL-23.3.0.dist-info/WHEEL
  creating '/home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0/.pyproject-builddir/pip-wheel-1hsnde7g/.tmp-1a0rt2l9/pyOpenSSL-23.3.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
  adding 'OpenSSL/SSL.py'
  adding 'OpenSSL/__init__.py'
  adding 'OpenSSL/_util.py'
  adding 'OpenSSL/crypto.py'
  adding 'OpenSSL/debug.py'
  adding 'OpenSSL/rand.py'
  adding 'OpenSSL/version.py'
  adding 'pyOpenSSL-23.3.0.dist-info/LICENSE'
  adding 'pyOpenSSL-23.3.0.dist-info/METADATA'
  adding 'pyOpenSSL-23.3.0.dist-info/WHEEL'
  adding 'pyOpenSSL-23.3.0.dist-info/top_level.txt'
  adding 'pyOpenSSL-23.3.0.dist-info/RECORD'
  removing build/bdist.linux-x86_64/wheel
  Building wheel for pyOpenSSL (pyproject.toml): finished with status 'done'
  Created wheel for pyOpenSSL: filename=pyOpenSSL-23.3.0-py3-none-any.whl size=58779 sha256=f532c92ebe5479c6186cad827f56289f1e17d599f2b297f2379876e557925720
  Stored in directory: /home/pterjan/.cache/pip/wheels/20/7a/9e/257560aa2b5cefe3dca1d7f1323ed10396ce6574ebc614baa8
Successfully built pyOpenSSL
++ pwd
+ export PYTHONPATH=/home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0
+ PYTHONPATH=/home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0
+ sphinx-build doc html
Running Sphinx v7.3.7
making output directory... done
loading intersphinx inventory from https://docs.python.org/3/objects.inv...
WARNING: failed to reach any of the inventories with the following issues:
intersphinx inventory 'https://docs.python.org/3/objects.inv' not fetchable due to <class 'requests.exceptions.ConnectionError'>: HTTPSConnectionPool(host='docs.python.org', port=443): Max retries exceeded with url: /3/objects.inv (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f1eefeba630>: Failed to resolve 'docs.python.org' ([Errno -2] Name or service not known)"))
loading intersphinx inventory from https://cryptography.io/en/latest/objects.inv...
WARNING: failed to reach any of the inventories with the following issues:
intersphinx inventory 'https://cryptography.io/en/latest/objects.inv' not fetchable due to <class 'requests.exceptions.ConnectionError'>: HTTPSConnectionPool(host='cryptography.io', port=443): Max retries exceeded with url: /en/latest/objects.inv (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f1eefebb1d0>: Failed to resolve 'cryptography.io' ([Errno -2] Name or service not known)"))
building [mo]: targets for 0 po files that are out of date
writing output... 
building [html]: targets for 9 source files that are out of date
updating environment: [new config] 9 added, 0 changed, 0 removed
reading sources... [ 11%] api
reading sources... [ 22%] api/crypto
reading sources... [ 33%] api/ssl
reading sources... [ 44%] backward-compatibility
reading sources... [ 56%] changelog
reading sources... [ 67%] index
reading sources... [ 78%] install
reading sources... [ 89%] internals
reading sources... [100%] introduction

WARNING: autodoc: failed to import function 'crypto.get_elliptic_curves' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.get_elliptic_curve' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.dump_certificate' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.load_certificate' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.dump_certificate_request' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.load_certificate_request' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.dump_privatekey' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.load_privatekey' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.dump_publickey' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.load_publickey' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.dump_crl' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.load_crl' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.sign' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.verify' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.X509' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.X509Name' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.X509Req' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.X509Store' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.X509StoreContextError' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.X509StoreContext' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.X509StoreFlags' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.PKey' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.PKCS12' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.X509Extension' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.NetscapeSPKI' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.CRL' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.Revoked' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'SSL.OpenSSL_version' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'SSL.Context' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'SSL.Session' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'SSL.Context' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'SSL.Connection' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
copying assets... copying static files... done
copying extra files... done
done
writing output... [ 11%] api
writing output... [ 22%] api/crypto
writing output... [ 33%] api/ssl
writing output... [ 44%] backward-compatibility
writing output... [ 56%] changelog
writing output... [ 67%] index
writing output... [ 78%] install
writing output... [ 89%] internals
writing output... [100%] introduction

generating indices... genindex py-modindex done
writing additional pages... search done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded, 34 warnings.

The HTML pages are in html.
+ sphinx-build -b man doc man
Running Sphinx v7.3.7
making output directory... done
loading intersphinx inventory from https://docs.python.org/3/objects.inv...
WARNING: failed to reach any of the inventories with the following issues:
intersphinx inventory 'https://docs.python.org/3/objects.inv' not fetchable due to <class 'requests.exceptions.ConnectionError'>: HTTPSConnectionPool(host='docs.python.org', port=443): Max retries exceeded with url: /3/objects.inv (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f9a9e49c6b0>: Failed to resolve 'docs.python.org' ([Errno -2] Name or service not known)"))
loading intersphinx inventory from https://cryptography.io/en/latest/objects.inv...
WARNING: failed to reach any of the inventories with the following issues:
intersphinx inventory 'https://cryptography.io/en/latest/objects.inv' not fetchable due to <class 'requests.exceptions.ConnectionError'>: HTTPSConnectionPool(host='cryptography.io', port=443): Max retries exceeded with url: /en/latest/objects.inv (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f9a9e49d010>: Failed to resolve 'cryptography.io' ([Errno -2] Name or service not known)"))
building [mo]: targets for 0 po files that are out of date
writing output... 
building [man]: all manpages
updating environment: [new config] 9 added, 0 changed, 0 removed
reading sources... [ 11%] api
reading sources... [ 22%] api/crypto
reading sources... [ 33%] api/ssl
reading sources... [ 44%] backward-compatibility
reading sources... [ 56%] changelog
reading sources... [ 67%] index
reading sources... [ 78%] install
reading sources... [ 89%] internals
reading sources... [100%] introduction

WARNING: autodoc: failed to import function 'crypto.get_elliptic_curves' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.get_elliptic_curve' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.dump_certificate' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.load_certificate' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.dump_certificate_request' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.load_certificate_request' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.dump_privatekey' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.load_privatekey' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.dump_publickey' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.load_publickey' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.dump_crl' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.load_crl' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.sign' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'crypto.verify' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.X509' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.X509Name' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.X509Req' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.X509Store' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.X509StoreContextError' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.X509StoreContext' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.X509StoreFlags' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.PKey' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.PKCS12' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.X509Extension' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.NetscapeSPKI' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.CRL' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'crypto.Revoked' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import function 'SSL.OpenSSL_version' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'SSL.Context' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'SSL.Session' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'SSL.Context' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
WARNING: autodoc: failed to import class 'SSL.Connection' from module 'OpenSSL'; the following exception was raised:
No module named 'OpenSSL'
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
writing... pyopenssl.1 { introduction install api api/crypto api/ssl internals backward-compatibility changelog } done
build succeeded, 34 warnings.

The manual pages are in man.
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.17Eynm
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build
+ '[' 1 -eq 1 ']'
+ '[' /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/BUILDROOT '!=' / ']'
+ rm -rf /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/BUILDROOT
++ dirname /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/BUILDROOT
+ mkdir -p /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build
+ mkdir /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/BUILDROOT
+ cd pyOpenSSL-23.3.0
+ '[' 1 -eq 1 ']'
++ xargs basename --multiple
++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/'
++ ls /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0/pyproject-wheeldir/pyOpenSSL-23.3.0-py3-none-any.whl
+ specifier=pyOpenSSL==23.3.0
+ '[' -z pyOpenSSL==23.3.0 ']'
+ TMPDIR=/home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0/.pyproject-builddir
+ /usr/bin/python3 -m pip install --root /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-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-openssl-23.3.0-build/pyOpenSSL-23.3.0/pyproject-wheeldir pyOpenSSL==23.3.0
Using pip 24.3.1 from /usr/lib/python3.12/site-packages/pip (python 3.12)
Looking in links: /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0/pyproject-wheeldir
Processing ./pyproject-wheeldir/pyOpenSSL-23.3.0-py3-none-any.whl
Installing collected packages: pyOpenSSL
Successfully installed pyOpenSSL-23.3.0
+ '[' -d /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/BUILDROOT/usr/bin ']'
+ rm -f /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/python-openssl-23.3.0-1.mga10.noarch-pyproject-ghost-distinfo
+ site_dirs=()
+ '[' -d /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/BUILDROOT/usr/lib/python3.12/site-packages ']'
+ site_dirs+=("/usr/lib/python3.12/site-packages")
+ '[' /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/BUILDROOT/usr/lib64/python3.12/site-packages '!=' /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/BUILDROOT/usr/lib/python3.12/site-packages ']'
+ '[' -d /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/BUILDROOT/usr/lib64/python3.12/site-packages ']'
+ for site_dir in ${site_dirs[@]}
+ for distinfo in /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/BUILDROOT$site_dir/*.dist-info
+ echo '%ghost /usr/lib/python3.12/site-packages/pyOpenSSL-23.3.0.dist-info'
+ sed -i s/pip/rpm/ /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/BUILDROOT/usr/lib/python3.12/site-packages/pyOpenSSL-23.3.0.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-openssl-23.3.0-build/BUILDROOT --record /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/BUILDROOT/usr/lib/python3.12/site-packages/pyOpenSSL-23.3.0.dist-info/RECORD --output /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/python-openssl-23.3.0-1.mga10.noarch-pyproject-record
+ rm -fv /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/BUILDROOT/usr/lib/python3.12/site-packages/pyOpenSSL-23.3.0.dist-info/RECORD
removed '/home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/BUILDROOT/usr/lib/python3.12/site-packages/pyOpenSSL-23.3.0.dist-info/RECORD'
+ rm -fv /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/BUILDROOT/usr/lib/python3.12/site-packages/pyOpenSSL-23.3.0.dist-info/REQUESTED
removed '/home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/BUILDROOT/usr/lib/python3.12/site-packages/pyOpenSSL-23.3.0.dist-info/REQUESTED'
++ wc -l /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/python-openssl-23.3.0-1.mga10.noarch-pyproject-ghost-distinfo
++ cut -f1 '-d '
+ 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-openssl-23.3.0-build/python-openssl-23.3.0-1.mga10.noarch-pyproject-files --output-modules /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/python-openssl-23.3.0-1.mga10.noarch-pyproject-modules --buildroot /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-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-openssl-23.3.0-build/python-openssl-23.3.0-1.mga10.noarch-pyproject-record --prefix /usr OpenSSL
+ /usr/bin/install -Dm 0644 man/pyopenssl.1 /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/BUILDROOT/usr/share/man/man1/pyopenssl.1
+ /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 -j16
Bytecompiling .py files below /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-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
Executing(%check): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.zEC3B1
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build
+ cd pyOpenSSL-23.3.0
+ '[' 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'
+ PATH=/home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/BUILDROOT/usr/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/pterjan/.local/bin:/home/pterjan/bin
+ PYTHONPATH=/home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/BUILDROOT/usr/lib64/python3.12/site-packages:/home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/BUILDROOT/usr/lib/python3.12/site-packages
+ PYTHONDONTWRITEBYTECODE=1
+ PYTEST_ADDOPTS=' --ignore=/home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0/.pyproject-builddir'
+ PYTEST_XDIST_AUTO_NUM_WORKERS=16
+ /usr/bin/pytest
============================= test session starts ==============================
platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0
OpenSSL: b'OpenSSL 3.3.2 3 Sep 2024'
cryptography: 44.0.0
rootdir: /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0
configfile: setup.cfg
testpaths: tests
plugins: flaky-3.8.1
collected 526 items

tests/test_crypto.py ................................................... [  9%]
........................................................................ [ 23%]
.........FF.FF.FFFFFF.......................................FFFFFFFF.... [ 37%]
........................................................................ [ 50%]
.........                                                                [ 52%]
tests/test_debug.py .                                                    [ 52%]
tests/test_rand.py ....                                                  [ 53%]
tests/test_ssl.py ...................................................... [ 63%]
..s..................................................................... [ 77%]
........................................................................ [ 91%]
..............................................                           [ 99%]
tests/test_util.py .                                                     [100%]

=================================== FAILURES ===================================
___________________________ TestPKCS12.test_key_only ___________________________

self = <tests.test_crypto.TestPKCS12 object at 0x7f76ad1d7020>

    def test_key_only(self):
        """
        A `PKCS12` with only a private key can be exported using
        `PKCS12.export`.
        """
        passwd = b"blah"
        p12 = PKCS12()
        pkey = load_privatekey(FILETYPE_PEM, root_key_pem)
        p12.set_privatekey(pkey)
        assert None is p12.get_certificate()
        assert pkey == p12.get_privatekey()
>       p12.export(passphrase=passwd, iter=2, maciter=3)

tests/test_crypto.py:2393: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <OpenSSL.crypto.PKCS12 object at 0x7f76acf62a80>, passphrase = b'blah'
iter = 2, maciter = 3

    def export(
        self,
        passphrase: Optional[bytes] = None,
        iter: int = 2048,
        maciter: int = 1,
    ) -> bytes:
        """
        Dump a PKCS12 object as a string.
    
        For more information, see the :c:func:`PKCS12_create` man page.
    
        :param passphrase: The passphrase used to encrypt the structure. Unlike
            some other passphrase arguments, this *must* be a string, not a
            callback.
        :type passphrase: :py:data:`bytes`
    
        :param iter: Number of times to repeat the encryption step.
        :type iter: :py:data:`int`
    
        :param maciter: Number of times to repeat the MAC step.
        :type maciter: :py:data:`int`
    
        :return: The string representation of the PKCS #12 structure.
        :rtype:
        """
        passphrase = _text_to_bytes_and_warn("passphrase", passphrase)
    
        if self._cacerts is None:
            cacerts = _ffi.NULL
        else:
            cacerts = _lib.sk_X509_new_null()
            cacerts = _ffi.gc(cacerts, _lib.sk_X509_free)
            for cert in self._cacerts:
                _lib.sk_X509_push(cacerts, cert._x509)
    
        if passphrase is None:
            passphrase = _ffi.NULL
    
        friendlyname = self._friendlyname
        if friendlyname is None:
            friendlyname = _ffi.NULL
    
        if self._pkey is None:
            pkey = _ffi.NULL
        else:
            pkey = self._pkey._pkey
    
        if self._cert is None:
            cert = _ffi.NULL
        else:
            cert = self._cert._x509
    
>       pkcs12 = _lib.PKCS12_create(
            passphrase,
            friendlyname,
            pkey,
            cert,
            cacerts,
            _lib.NID_pbe_WithSHA1And3_Key_TripleDES_CBC,
            _lib.NID_pbe_WithSHA1And3_Key_TripleDES_CBC,
            iter,
            maciter,
            0,
        )
E       AttributeError: module 'lib' has no attribute 'PKCS12_create'

../BUILDROOT/usr/lib/python3.12/site-packages/OpenSSL/crypto.py:2815: AttributeError
__________________________ TestPKCS12.test_cert_only ___________________________

self = <tests.test_crypto.TestPKCS12 object at 0x7f76ad1d6030>

    def test_cert_only(self):
        """
        A `PKCS12` with only a certificate can be exported using
        `PKCS12.export`.
        """
        passwd = b"blah"
        p12 = PKCS12()
        cert = load_certificate(FILETYPE_PEM, root_cert_pem)
        p12.set_certificate(cert)
        assert cert == p12.get_certificate()
        assert None is p12.get_privatekey()
>       p12.export(passphrase=passwd, iter=2, maciter=3)

tests/test_crypto.py:2406: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <OpenSSL.crypto.PKCS12 object at 0x7f76acfae990>, passphrase = b'blah'
iter = 2, maciter = 3

    def export(
        self,
        passphrase: Optional[bytes] = None,
        iter: int = 2048,
        maciter: int = 1,
    ) -> bytes:
        """
        Dump a PKCS12 object as a string.
    
        For more information, see the :c:func:`PKCS12_create` man page.
    
        :param passphrase: The passphrase used to encrypt the structure. Unlike
            some other passphrase arguments, this *must* be a string, not a
            callback.
        :type passphrase: :py:data:`bytes`
    
        :param iter: Number of times to repeat the encryption step.
        :type iter: :py:data:`int`
    
        :param maciter: Number of times to repeat the MAC step.
        :type maciter: :py:data:`int`
    
        :return: The string representation of the PKCS #12 structure.
        :rtype:
        """
        passphrase = _text_to_bytes_and_warn("passphrase", passphrase)
    
        if self._cacerts is None:
            cacerts = _ffi.NULL
        else:
            cacerts = _lib.sk_X509_new_null()
            cacerts = _ffi.gc(cacerts, _lib.sk_X509_free)
            for cert in self._cacerts:
                _lib.sk_X509_push(cacerts, cert._x509)
    
        if passphrase is None:
            passphrase = _ffi.NULL
    
        friendlyname = self._friendlyname
        if friendlyname is None:
            friendlyname = _ffi.NULL
    
        if self._pkey is None:
            pkey = _ffi.NULL
        else:
            pkey = self._pkey._pkey
    
        if self._cert is None:
            cert = _ffi.NULL
        else:
            cert = self._cert._x509
    
>       pkcs12 = _lib.PKCS12_create(
            passphrase,
            friendlyname,
            pkey,
            cert,
            cacerts,
            _lib.NID_pbe_WithSHA1And3_Key_TripleDES_CBC,
            _lib.NID_pbe_WithSHA1And3_Key_TripleDES_CBC,
            iter,
            maciter,
            0,
        )
E       AttributeError: module 'lib' has no attribute 'PKCS12_create'

../BUILDROOT/usr/lib/python3.12/site-packages/OpenSSL/crypto.py:2815: AttributeError
________________________ TestPKCS12.test_friendly_name _________________________

self = <tests.test_crypto.TestPKCS12 object at 0x7f76ad1d6420>

    def test_friendly_name(self):
        """
        The *friendlyName* of a PKCS12 can be set and retrieved via
        `PKCS12.get_friendlyname` and `PKCS12_set_friendlyname`, and a
        `PKCS12` with a friendly name set can be dumped with `PKCS12.export`.
        """
        passwd = b'Dogmeat[]{}!@#$%^&*()~`?/.,<>-_+=";:'
        p12 = self.gen_pkcs12(server_cert_pem, server_key_pem, root_cert_pem)
        for friendly_name in [b"Serverlicious", None, b"###"]:
            p12.set_friendlyname(friendly_name)
            assert p12.get_friendlyname() == friendly_name
>           p12.export(passphrase=passwd, iter=2, maciter=3)

tests/test_crypto.py:2501: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <OpenSSL.crypto.PKCS12 object at 0x7f76acfafe60>
passphrase = b'Dogmeat[]{}!@#$%^&*()~`?/.,<>-_+=";:', iter = 2, maciter = 3

    def export(
        self,
        passphrase: Optional[bytes] = None,
        iter: int = 2048,
        maciter: int = 1,
    ) -> bytes:
        """
        Dump a PKCS12 object as a string.
    
        For more information, see the :c:func:`PKCS12_create` man page.
    
        :param passphrase: The passphrase used to encrypt the structure. Unlike
            some other passphrase arguments, this *must* be a string, not a
            callback.
        :type passphrase: :py:data:`bytes`
    
        :param iter: Number of times to repeat the encryption step.
        :type iter: :py:data:`int`
    
        :param maciter: Number of times to repeat the MAC step.
        :type maciter: :py:data:`int`
    
        :return: The string representation of the PKCS #12 structure.
        :rtype:
        """
        passphrase = _text_to_bytes_and_warn("passphrase", passphrase)
    
        if self._cacerts is None:
            cacerts = _ffi.NULL
        else:
            cacerts = _lib.sk_X509_new_null()
            cacerts = _ffi.gc(cacerts, _lib.sk_X509_free)
            for cert in self._cacerts:
                _lib.sk_X509_push(cacerts, cert._x509)
    
        if passphrase is None:
            passphrase = _ffi.NULL
    
        friendlyname = self._friendlyname
        if friendlyname is None:
            friendlyname = _ffi.NULL
    
        if self._pkey is None:
            pkey = _ffi.NULL
        else:
            pkey = self._pkey._pkey
    
        if self._cert is None:
            cert = _ffi.NULL
        else:
            cert = self._cert._x509
    
>       pkcs12 = _lib.PKCS12_create(
            passphrase,
            friendlyname,
            pkey,
            cert,
            cacerts,
            _lib.NID_pbe_WithSHA1And3_Key_TripleDES_CBC,
            _lib.NID_pbe_WithSHA1And3_Key_TripleDES_CBC,
            iter,
            maciter,
            0,
        )
E       AttributeError: module 'lib' has no attribute 'PKCS12_create'

../BUILDROOT/usr/lib/python3.12/site-packages/OpenSSL/crypto.py:2815: AttributeError
__________________ TestPKCS12.test_various_empty_passphrases ___________________

self = <tests.test_crypto.TestPKCS12 object at 0x7f76ad1d65a0>

    def test_various_empty_passphrases(self):
        """
        Test that missing, None, and '' passphrases are identical for PKCS12
        export.
        """
        p12 = self.gen_pkcs12(client_cert_pem, client_key_pem, root_cert_pem)
        passwd = b""
>       dumped_p12_empty = p12.export(iter=2, maciter=0, passphrase=passwd)

tests/test_crypto.py:2510: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <OpenSSL.crypto.PKCS12 object at 0x7f76acf7e600>, passphrase = b''
iter = 2, maciter = 0

    def export(
        self,
        passphrase: Optional[bytes] = None,
        iter: int = 2048,
        maciter: int = 1,
    ) -> bytes:
        """
        Dump a PKCS12 object as a string.
    
        For more information, see the :c:func:`PKCS12_create` man page.
    
        :param passphrase: The passphrase used to encrypt the structure. Unlike
            some other passphrase arguments, this *must* be a string, not a
            callback.
        :type passphrase: :py:data:`bytes`
    
        :param iter: Number of times to repeat the encryption step.
        :type iter: :py:data:`int`
    
        :param maciter: Number of times to repeat the MAC step.
        :type maciter: :py:data:`int`
    
        :return: The string representation of the PKCS #12 structure.
        :rtype:
        """
        passphrase = _text_to_bytes_and_warn("passphrase", passphrase)
    
        if self._cacerts is None:
            cacerts = _ffi.NULL
        else:
            cacerts = _lib.sk_X509_new_null()
            cacerts = _ffi.gc(cacerts, _lib.sk_X509_free)
            for cert in self._cacerts:
                _lib.sk_X509_push(cacerts, cert._x509)
    
        if passphrase is None:
            passphrase = _ffi.NULL
    
        friendlyname = self._friendlyname
        if friendlyname is None:
            friendlyname = _ffi.NULL
    
        if self._pkey is None:
            pkey = _ffi.NULL
        else:
            pkey = self._pkey._pkey
    
        if self._cert is None:
            cert = _ffi.NULL
        else:
            cert = self._cert._x509
    
>       pkcs12 = _lib.PKCS12_create(
            passphrase,
            friendlyname,
            pkey,
            cert,
            cacerts,
            _lib.NID_pbe_WithSHA1And3_Key_TripleDES_CBC,
            _lib.NID_pbe_WithSHA1And3_Key_TripleDES_CBC,
            iter,
            maciter,
            0,
        )
E       AttributeError: module 'lib' has no attribute 'PKCS12_create'

../BUILDROOT/usr/lib/python3.12/site-packages/OpenSSL/crypto.py:2815: AttributeError
______________________ TestPKCS12.test_export_without_mac ______________________

self = <tests.test_crypto.TestPKCS12 object at 0x7f76ad1d6870>

    def test_export_without_mac(self):
        """
        Exporting a PKCS12 with a `maciter` of `-1` excludes the MAC entirely.
        """
        passwd = b"Lake Michigan"
        p12 = self.gen_pkcs12(server_cert_pem, server_key_pem, root_cert_pem)
>       dumped_p12 = p12.export(maciter=-1, passphrase=passwd, iter=2)

tests/test_crypto.py:2537: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <OpenSSL.crypto.PKCS12 object at 0x7f76acf7fb60>
passphrase = b'Lake Michigan', iter = 2, maciter = -1

    def export(
        self,
        passphrase: Optional[bytes] = None,
        iter: int = 2048,
        maciter: int = 1,
    ) -> bytes:
        """
        Dump a PKCS12 object as a string.
    
        For more information, see the :c:func:`PKCS12_create` man page.
    
        :param passphrase: The passphrase used to encrypt the structure. Unlike
            some other passphrase arguments, this *must* be a string, not a
            callback.
        :type passphrase: :py:data:`bytes`
    
        :param iter: Number of times to repeat the encryption step.
        :type iter: :py:data:`int`
    
        :param maciter: Number of times to repeat the MAC step.
        :type maciter: :py:data:`int`
    
        :return: The string representation of the PKCS #12 structure.
        :rtype:
        """
        passphrase = _text_to_bytes_and_warn("passphrase", passphrase)
    
        if self._cacerts is None:
            cacerts = _ffi.NULL
        else:
            cacerts = _lib.sk_X509_new_null()
            cacerts = _ffi.gc(cacerts, _lib.sk_X509_free)
            for cert in self._cacerts:
                _lib.sk_X509_push(cacerts, cert._x509)
    
        if passphrase is None:
            passphrase = _ffi.NULL
    
        friendlyname = self._friendlyname
        if friendlyname is None:
            friendlyname = _ffi.NULL
    
        if self._pkey is None:
            pkey = _ffi.NULL
        else:
            pkey = self._pkey._pkey
    
        if self._cert is None:
            cert = _ffi.NULL
        else:
            cert = self._cert._x509
    
>       pkcs12 = _lib.PKCS12_create(
            passphrase,
            friendlyname,
            pkey,
            cert,
            cacerts,
            _lib.NID_pbe_WithSHA1And3_Key_TripleDES_CBC,
            _lib.NID_pbe_WithSHA1And3_Key_TripleDES_CBC,
            iter,
            maciter,
            0,
        )
E       AttributeError: module 'lib' has no attribute 'PKCS12_create'

../BUILDROOT/usr/lib/python3.12/site-packages/OpenSSL/crypto.py:2815: AttributeError
_______________________ TestPKCS12.test_load_without_mac _______________________

self = <tests.test_crypto.TestPKCS12 object at 0x7f76ad1d6a50>

    def test_load_without_mac(self):
        """
        Loading a PKCS12 without a MAC does something other than crash.
        """
        passwd = b"Lake Michigan"
        p12 = self.gen_pkcs12(server_cert_pem, server_key_pem, root_cert_pem)
>       p12.export(maciter=-1, passphrase=passwd, iter=2)

tests/test_crypto.py:2552: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <OpenSSL.crypto.PKCS12 object at 0x7f76acf7ce00>
passphrase = b'Lake Michigan', iter = 2, maciter = -1

    def export(
        self,
        passphrase: Optional[bytes] = None,
        iter: int = 2048,
        maciter: int = 1,
    ) -> bytes:
        """
        Dump a PKCS12 object as a string.
    
        For more information, see the :c:func:`PKCS12_create` man page.
    
        :param passphrase: The passphrase used to encrypt the structure. Unlike
            some other passphrase arguments, this *must* be a string, not a
            callback.
        :type passphrase: :py:data:`bytes`
    
        :param iter: Number of times to repeat the encryption step.
        :type iter: :py:data:`int`
    
        :param maciter: Number of times to repeat the MAC step.
        :type maciter: :py:data:`int`
    
        :return: The string representation of the PKCS #12 structure.
        :rtype:
        """
        passphrase = _text_to_bytes_and_warn("passphrase", passphrase)
    
        if self._cacerts is None:
            cacerts = _ffi.NULL
        else:
            cacerts = _lib.sk_X509_new_null()
            cacerts = _ffi.gc(cacerts, _lib.sk_X509_free)
            for cert in self._cacerts:
                _lib.sk_X509_push(cacerts, cert._x509)
    
        if passphrase is None:
            passphrase = _ffi.NULL
    
        friendlyname = self._friendlyname
        if friendlyname is None:
            friendlyname = _ffi.NULL
    
        if self._pkey is None:
            pkey = _ffi.NULL
        else:
            pkey = self._pkey._pkey
    
        if self._cert is None:
            cert = _ffi.NULL
        else:
            cert = self._cert._x509
    
>       pkcs12 = _lib.PKCS12_create(
            passphrase,
            friendlyname,
            pkey,
            cert,
            cacerts,
            _lib.NID_pbe_WithSHA1And3_Key_TripleDES_CBC,
            _lib.NID_pbe_WithSHA1And3_Key_TripleDES_CBC,
            iter,
            maciter,
            0,
        )
E       AttributeError: module 'lib' has no attribute 'PKCS12_create'

../BUILDROOT/usr/lib/python3.12/site-packages/OpenSSL/crypto.py:2815: AttributeError
_____________________ TestPKCS12.test_zero_len_list_for_ca _____________________

self = <tests.test_crypto.TestPKCS12 object at 0x7f76ad1d5e20>

    def test_zero_len_list_for_ca(self):
        """
        A PKCS12 with an empty CA certificates list can be exported.
        """
        passwd = b"Hobie 18"
        p12 = self.gen_pkcs12(server_cert_pem, server_key_pem)
        p12.set_ca_certificates([])
        assert () == p12.get_ca_certificates()
>       dumped_p12 = p12.export(passphrase=passwd, iter=3)

tests/test_crypto.py:2562: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <OpenSSL.crypto.PKCS12 object at 0x7f76acf7dfa0>
passphrase = b'Hobie 18', iter = 3, maciter = 1

    def export(
        self,
        passphrase: Optional[bytes] = None,
        iter: int = 2048,
        maciter: int = 1,
    ) -> bytes:
        """
        Dump a PKCS12 object as a string.
    
        For more information, see the :c:func:`PKCS12_create` man page.
    
        :param passphrase: The passphrase used to encrypt the structure. Unlike
            some other passphrase arguments, this *must* be a string, not a
            callback.
        :type passphrase: :py:data:`bytes`
    
        :param iter: Number of times to repeat the encryption step.
        :type iter: :py:data:`int`
    
        :param maciter: Number of times to repeat the MAC step.
        :type maciter: :py:data:`int`
    
        :return: The string representation of the PKCS #12 structure.
        :rtype:
        """
        passphrase = _text_to_bytes_and_warn("passphrase", passphrase)
    
        if self._cacerts is None:
            cacerts = _ffi.NULL
        else:
            cacerts = _lib.sk_X509_new_null()
            cacerts = _ffi.gc(cacerts, _lib.sk_X509_free)
            for cert in self._cacerts:
                _lib.sk_X509_push(cacerts, cert._x509)
    
        if passphrase is None:
            passphrase = _ffi.NULL
    
        friendlyname = self._friendlyname
        if friendlyname is None:
            friendlyname = _ffi.NULL
    
        if self._pkey is None:
            pkey = _ffi.NULL
        else:
            pkey = self._pkey._pkey
    
        if self._cert is None:
            cert = _ffi.NULL
        else:
            cert = self._cert._x509
    
>       pkcs12 = _lib.PKCS12_create(
            passphrase,
            friendlyname,
            pkey,
            cert,
            cacerts,
            _lib.NID_pbe_WithSHA1And3_Key_TripleDES_CBC,
            _lib.NID_pbe_WithSHA1And3_Key_TripleDES_CBC,
            iter,
            maciter,
            0,
        )
E       AttributeError: module 'lib' has no attribute 'PKCS12_create'

../BUILDROOT/usr/lib/python3.12/site-packages/OpenSSL/crypto.py:2815: AttributeError
_____________________ TestPKCS12.test_export_without_args ______________________

self = <tests.test_crypto.TestPKCS12 object at 0x7f76ad1d5d90>

    def test_export_without_args(self):
        """
        All the arguments to `PKCS12.export` are optional.
        """
        p12 = self.gen_pkcs12(server_cert_pem, server_key_pem, root_cert_pem)
>       dumped_p12 = p12.export()  # no args

tests/test_crypto.py:2572: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <OpenSSL.crypto.PKCS12 object at 0x7f76acf7f080>
passphrase = <cdata 'void *' NULL>, iter = 2048, maciter = 1

    def export(
        self,
        passphrase: Optional[bytes] = None,
        iter: int = 2048,
        maciter: int = 1,
    ) -> bytes:
        """
        Dump a PKCS12 object as a string.
    
        For more information, see the :c:func:`PKCS12_create` man page.
    
        :param passphrase: The passphrase used to encrypt the structure. Unlike
            some other passphrase arguments, this *must* be a string, not a
            callback.
        :type passphrase: :py:data:`bytes`
    
        :param iter: Number of times to repeat the encryption step.
        :type iter: :py:data:`int`
    
        :param maciter: Number of times to repeat the MAC step.
        :type maciter: :py:data:`int`
    
        :return: The string representation of the PKCS #12 structure.
        :rtype:
        """
        passphrase = _text_to_bytes_and_warn("passphrase", passphrase)
    
        if self._cacerts is None:
            cacerts = _ffi.NULL
        else:
            cacerts = _lib.sk_X509_new_null()
            cacerts = _ffi.gc(cacerts, _lib.sk_X509_free)
            for cert in self._cacerts:
                _lib.sk_X509_push(cacerts, cert._x509)
    
        if passphrase is None:
            passphrase = _ffi.NULL
    
        friendlyname = self._friendlyname
        if friendlyname is None:
            friendlyname = _ffi.NULL
    
        if self._pkey is None:
            pkey = _ffi.NULL
        else:
            pkey = self._pkey._pkey
    
        if self._cert is None:
            cert = _ffi.NULL
        else:
            cert = self._cert._x509
    
>       pkcs12 = _lib.PKCS12_create(
            passphrase,
            friendlyname,
            pkey,
            cert,
            cacerts,
            _lib.NID_pbe_WithSHA1And3_Key_TripleDES_CBC,
            _lib.NID_pbe_WithSHA1And3_Key_TripleDES_CBC,
            iter,
            maciter,
            0,
        )
E       AttributeError: module 'lib' has no attribute 'PKCS12_create'

../BUILDROOT/usr/lib/python3.12/site-packages/OpenSSL/crypto.py:2815: AttributeError
_____________________ TestPKCS12.test_export_without_bytes _____________________

self = <tests.test_crypto.TestPKCS12 object at 0x7f76ad1d5d00>

    def test_export_without_bytes(self):
        """
        Test `PKCS12.export` with text not bytes as passphrase
        """
        p12 = self.gen_pkcs12(server_cert_pem, server_key_pem, root_cert_pem)
    
        with pytest.warns(DeprecationWarning) as w:
            warnings.simplefilter("always")
>           dumped_p12 = p12.export(passphrase=b"randomtext".decode("ascii"))

tests/test_crypto.py:2585: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <OpenSSL.crypto.PKCS12 object at 0x7f76acfabc50>
passphrase = b'randomtext', iter = 2048, maciter = 1

    def export(
        self,
        passphrase: Optional[bytes] = None,
        iter: int = 2048,
        maciter: int = 1,
    ) -> bytes:
        """
        Dump a PKCS12 object as a string.
    
        For more information, see the :c:func:`PKCS12_create` man page.
    
        :param passphrase: The passphrase used to encrypt the structure. Unlike
            some other passphrase arguments, this *must* be a string, not a
            callback.
        :type passphrase: :py:data:`bytes`
    
        :param iter: Number of times to repeat the encryption step.
        :type iter: :py:data:`int`
    
        :param maciter: Number of times to repeat the MAC step.
        :type maciter: :py:data:`int`
    
        :return: The string representation of the PKCS #12 structure.
        :rtype:
        """
        passphrase = _text_to_bytes_and_warn("passphrase", passphrase)
    
        if self._cacerts is None:
            cacerts = _ffi.NULL
        else:
            cacerts = _lib.sk_X509_new_null()
            cacerts = _ffi.gc(cacerts, _lib.sk_X509_free)
            for cert in self._cacerts:
                _lib.sk_X509_push(cacerts, cert._x509)
    
        if passphrase is None:
            passphrase = _ffi.NULL
    
        friendlyname = self._friendlyname
        if friendlyname is None:
            friendlyname = _ffi.NULL
    
        if self._pkey is None:
            pkey = _ffi.NULL
        else:
            pkey = self._pkey._pkey
    
        if self._cert is None:
            cert = _ffi.NULL
        else:
            cert = self._cert._x509
    
>       pkcs12 = _lib.PKCS12_create(
            passphrase,
            friendlyname,
            pkey,
            cert,
            cacerts,
            _lib.NID_pbe_WithSHA1And3_Key_TripleDES_CBC,
            _lib.NID_pbe_WithSHA1And3_Key_TripleDES_CBC,
            iter,
            maciter,
            0,
        )
E       AttributeError: module 'lib' has no attribute 'PKCS12_create'

../BUILDROOT/usr/lib/python3.12/site-packages/OpenSSL/crypto.py:2815: AttributeError
______________________ TestPKCS12.test_key_cert_mismatch _______________________

self = <tests.test_crypto.TestPKCS12 object at 0x7f76ad1d5a90>

    def test_key_cert_mismatch(self):
        """
        `PKCS12.export` raises an exception when a key and certificate
        mismatch.
        """
        p12 = self.gen_pkcs12(server_cert_pem, client_key_pem, root_cert_pem)
        with pytest.raises(Error):
>           p12.export()

tests/test_crypto.py:2604: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <OpenSSL.crypto.PKCS12 object at 0x7f76acfaade0>
passphrase = <cdata 'void *' NULL>, iter = 2048, maciter = 1

    def export(
        self,
        passphrase: Optional[bytes] = None,
        iter: int = 2048,
        maciter: int = 1,
    ) -> bytes:
        """
        Dump a PKCS12 object as a string.
    
        For more information, see the :c:func:`PKCS12_create` man page.
    
        :param passphrase: The passphrase used to encrypt the structure. Unlike
            some other passphrase arguments, this *must* be a string, not a
            callback.
        :type passphrase: :py:data:`bytes`
    
        :param iter: Number of times to repeat the encryption step.
        :type iter: :py:data:`int`
    
        :param maciter: Number of times to repeat the MAC step.
        :type maciter: :py:data:`int`
    
        :return: The string representation of the PKCS #12 structure.
        :rtype:
        """
        passphrase = _text_to_bytes_and_warn("passphrase", passphrase)
    
        if self._cacerts is None:
            cacerts = _ffi.NULL
        else:
            cacerts = _lib.sk_X509_new_null()
            cacerts = _ffi.gc(cacerts, _lib.sk_X509_free)
            for cert in self._cacerts:
                _lib.sk_X509_push(cacerts, cert._x509)
    
        if passphrase is None:
            passphrase = _ffi.NULL
    
        friendlyname = self._friendlyname
        if friendlyname is None:
            friendlyname = _ffi.NULL
    
        if self._pkey is None:
            pkey = _ffi.NULL
        else:
            pkey = self._pkey._pkey
    
        if self._cert is None:
            cert = _ffi.NULL
        else:
            cert = self._cert._x509
    
>       pkcs12 = _lib.PKCS12_create(
            passphrase,
            friendlyname,
            pkey,
            cert,
            cacerts,
            _lib.NID_pbe_WithSHA1And3_Key_TripleDES_CBC,
            _lib.NID_pbe_WithSHA1And3_Key_TripleDES_CBC,
            iter,
            maciter,
            0,
        )
E       AttributeError: module 'lib' has no attribute 'PKCS12_create'

../BUILDROOT/usr/lib/python3.12/site-packages/OpenSSL/crypto.py:2815: AttributeError
_________________ TestNetscapeSPKI.test_sign_with_ungenerated __________________

self = <tests.test_crypto.TestNetscapeSPKI object at 0x7f76ad095a60>

    def test_sign_with_ungenerated(self):
        """
        `X509Req.sign` raises `ValueError` when passed a `PKey` with no parts.
        """
>       request = self.signable()

tests/test_crypto.py:1478: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_crypto.py:3085: in signable
    return NetscapeSPKI()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <OpenSSL.crypto.NetscapeSPKI object at 0x7f76acfa8c50>

    def __init__(self) -> None:
>       spki = _lib.NETSCAPE_SPKI_new()
E       AttributeError: module 'lib' has no attribute 'NETSCAPE_SPKI_new'

../BUILDROOT/usr/lib/python3.12/site-packages/OpenSSL/crypto.py:2854: AttributeError
__________________ TestNetscapeSPKI.test_sign_with_public_key __________________

self = <tests.test_crypto.TestNetscapeSPKI object at 0x7f76ad096480>

    def test_sign_with_public_key(self):
        """
        `X509Req.sign` raises `ValueError` when passed a `PKey` with no private
        part as the signing key.
        """
>       request = self.signable()

tests/test_crypto.py:1488: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_crypto.py:3085: in signable
    return NetscapeSPKI()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <OpenSSL.crypto.NetscapeSPKI object at 0x7f76acfa9b80>

    def __init__(self) -> None:
>       spki = _lib.NETSCAPE_SPKI_new()
E       AttributeError: module 'lib' has no attribute 'NETSCAPE_SPKI_new'

../BUILDROOT/usr/lib/python3.12/site-packages/OpenSSL/crypto.py:2854: AttributeError
________________ TestNetscapeSPKI.test_sign_with_unknown_digest ________________

self = <tests.test_crypto.TestNetscapeSPKI object at 0x7f76ad096060>

    def test_sign_with_unknown_digest(self):
        """
        `X509Req.sign` raises `ValueError` when passed a digest name which is
        not known.
        """
>       request = self.signable()

tests/test_crypto.py:1501: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_crypto.py:3085: in signable
    return NetscapeSPKI()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <OpenSSL.crypto.NetscapeSPKI object at 0x7f76acfab650>

    def __init__(self) -> None:
>       spki = _lib.NETSCAPE_SPKI_new()
E       AttributeError: module 'lib' has no attribute 'NETSCAPE_SPKI_new'

../BUILDROOT/usr/lib/python3.12/site-packages/OpenSSL/crypto.py:2854: AttributeError
__________________________ TestNetscapeSPKI.test_sign __________________________

self = <tests.test_crypto.TestNetscapeSPKI object at 0x7f76ad0961e0>

    def test_sign(self):
        """
        `X509Req.sign` succeeds when passed a private key object and a
        valid digest function. `X509Req.verify` can be used to check
        the signature.
        """
>       request = self.signable()

tests/test_crypto.py:1513: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_crypto.py:3085: in signable
    return NetscapeSPKI()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <OpenSSL.crypto.NetscapeSPKI object at 0x7f76acedd1f0>

    def __init__(self) -> None:
>       spki = _lib.NETSCAPE_SPKI_new()
E       AttributeError: module 'lib' has no attribute 'NETSCAPE_SPKI_new'

../BUILDROOT/usr/lib/python3.12/site-packages/OpenSSL/crypto.py:2854: AttributeError
__________________________ TestNetscapeSPKI.test_type __________________________

self = <tests.test_crypto.TestNetscapeSPKI object at 0x7f76ad091d90>

    def test_type(self):
        """
        `NetscapeSPKI` can be used to create instances of that type.
        """
>       assert is_consistent_type(NetscapeSPKI, "NetscapeSPKI")

tests/test_crypto.py:3091: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/util.py:28: in is_consistent_type
    instance = theType(*constructionArgs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <OpenSSL.crypto.NetscapeSPKI object at 0x7f76acede750>

    def __init__(self) -> None:
>       spki = _lib.NETSCAPE_SPKI_new()
E       AttributeError: module 'lib' has no attribute 'NETSCAPE_SPKI_new'

../BUILDROOT/usr/lib/python3.12/site-packages/OpenSSL/crypto.py:2854: AttributeError
______________________ TestNetscapeSPKI.test_construction ______________________

self = <tests.test_crypto.TestNetscapeSPKI object at 0x7f76ad08e1b0>

    def test_construction(self):
        """
        `NetscapeSPKI` returns an instance of `NetscapeSPKI`.
        """
>       nspki = NetscapeSPKI()

tests/test_crypto.py:3097: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <OpenSSL.crypto.NetscapeSPKI object at 0x7f76acedd340>

    def __init__(self) -> None:
>       spki = _lib.NETSCAPE_SPKI_new()
E       AttributeError: module 'lib' has no attribute 'NETSCAPE_SPKI_new'

../BUILDROOT/usr/lib/python3.12/site-packages/OpenSSL/crypto.py:2854: AttributeError
___________________ TestNetscapeSPKI.test_invalid_attribute ____________________

self = <tests.test_crypto.TestNetscapeSPKI object at 0x7f76ad08fb90>

    def test_invalid_attribute(self):
        """
        Accessing a non-existent attribute of a `NetscapeSPKI` instance
        causes an `AttributeError` to be raised.
        """
>       nspki = NetscapeSPKI()

tests/test_crypto.py:3105: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <OpenSSL.crypto.NetscapeSPKI object at 0x7f76acedff20>

    def __init__(self) -> None:
>       spki = _lib.NETSCAPE_SPKI_new()
E       AttributeError: module 'lib' has no attribute 'NETSCAPE_SPKI_new'

../BUILDROOT/usr/lib/python3.12/site-packages/OpenSSL/crypto.py:2854: AttributeError
_______________________ TestNetscapeSPKI.test_b64_encode _______________________

self = <tests.test_crypto.TestNetscapeSPKI object at 0x7f76ad0878c0>

    def test_b64_encode(self):
        """
        `NetscapeSPKI.b64_encode` encodes the certificate to a base64 blob.
        """
>       nspki = NetscapeSPKI()

tests/test_crypto.py:3113: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <OpenSSL.crypto.NetscapeSPKI object at 0x7f76acedca10>

    def __init__(self) -> None:
>       spki = _lib.NETSCAPE_SPKI_new()
E       AttributeError: module 'lib' has no attribute 'NETSCAPE_SPKI_new'

../BUILDROOT/usr/lib/python3.12/site-packages/OpenSSL/crypto.py:2854: AttributeError
=============================== warnings summary ===============================
tests/test_crypto.py:21
  /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0/tests/test_crypto.py:21: DeprecationWarning: sign() is deprecated. Use the equivilant APIs in cryptography.
    from OpenSSL.crypto import (

tests/test_crypto.py:21
  /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0/tests/test_crypto.py:21: DeprecationWarning: verify() is deprecated. Use the equivilant APIs in cryptography.
    from OpenSSL.crypto import (

tests/test_ssl.py::TestContext::test_set_cipher_list[hello world:AES128-SHA1]
  /home/pterjan/rpmbuild/BUILD/python-openssl-23.3.0-build/pyOpenSSL-23.3.0/tests/test_ssl.py:500: DeprecationWarning: str for cipher_list is no longer accepted, use bytes
    context.set_cipher_list(cipher_string)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
===Flaky Test Report===

test_gmtime_adj_notBefore passed 1 out of the required 1 times. Success!
test_gmtime_adj_notAfter passed 1 out of the required 1 times. Success!
test_set_cipher_list_no_cipher_match passed 1 out of the required 1 times. Success!

===End Flaky Test Report===
=========================== short test summary info ============================
SKIPPED [1] tests/test_ssl.py:1276: cannot connect to encrypted.google.com
FAILED tests/test_crypto.py::TestPKCS12::test_key_only - AttributeError: modu...
FAILED tests/test_crypto.py::TestPKCS12::test_cert_only - AttributeError: mod...
FAILED tests/test_crypto.py::TestPKCS12::test_friendly_name - AttributeError:...
FAILED tests/test_crypto.py::TestPKCS12::test_various_empty_passphrases - Att...
FAILED tests/test_crypto.py::TestPKCS12::test_export_without_mac - AttributeE...
FAILED tests/test_crypto.py::TestPKCS12::test_load_without_mac - AttributeErr...
FAILED tests/test_crypto.py::TestPKCS12::test_zero_len_list_for_ca - Attribut...
FAILED tests/test_crypto.py::TestPKCS12::test_export_without_args - Attribute...
FAILED tests/test_crypto.py::TestPKCS12::test_export_without_bytes - Attribut...
FAILED tests/test_crypto.py::TestPKCS12::test_key_cert_mismatch - AttributeEr...
FAILED tests/test_crypto.py::TestNetscapeSPKI::test_sign_with_ungenerated - A...
FAILED tests/test_crypto.py::TestNetscapeSPKI::test_sign_with_public_key - At...
FAILED tests/test_crypto.py::TestNetscapeSPKI::test_sign_with_unknown_digest
FAILED tests/test_crypto.py::TestNetscapeSPKI::test_sign - AttributeError: mo...
FAILED tests/test_crypto.py::TestNetscapeSPKI::test_type - AttributeError: mo...
FAILED tests/test_crypto.py::TestNetscapeSPKI::test_construction - AttributeE...
FAILED tests/test_crypto.py::TestNetscapeSPKI::test_invalid_attribute - Attri...
FAILED tests/test_crypto.py::TestNetscapeSPKI::test_b64_encode - AttributeErr...
============ 18 failed, 507 passed, 1 skipped, 3 warnings in 8.37s =============
error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.zEC3B1 (%check)

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