Hi all, for ansible-navigator I need the onigurumacffi module:
https://build.opensuse.org/package/show/home:ojkastl_buildservice:Branch_dev...
Building works, but the checks fail:
[ 28s] + pytest-3.9 --ignore=_build.python39 --ignore=_build.python311 --ignore=_build.python310 -v [ 29s] ============================= test session starts ============================== [ 29s] platform linux -- Python 3.9.16, pytest-7.2.0, pluggy-1.0.0 -- /usr/bin/python3.9 [ 29s] cachedir: .pytest_cache [ 29s] rootdir: /home/abuild/rpmbuild/BUILD/onigurumacffi-1.2.0 [ 29s] collecting ... collected 0 items / 1 error [ 29s] [ 29s] ==================================== ERRORS ==================================== [ 29s] _________________ ERROR collecting tests/onigurumacffi_test.py _________________ [ 29s] ImportError while importing test module '/home/abuild/rpmbuild/BUILD/onigurumacffi-1.2.0/tests/onigurumacffi_test.py'. [ 29s] Hint: make sure your test modules/packages have valid Python names. [ 29s] Traceback: [ 29s] /usr/lib64/python3.9/importlib/__init__.py:127: in import_module [ 29s] return _bootstrap._gcd_import(name[level:], package, level) [ 29s] tests/onigurumacffi_test.py:5: in <module> [ 29s] import onigurumacffi [ 29s] onigurumacffi.py:7: in <module> [ 29s] import _onigurumacffi [ 29s] E ModuleNotFoundError: No module named '_onigurumacffi' [ 29s] =========================== short test summary info ============================ [ 29s] ERROR tests/onigurumacffi_test.py [ 29s] !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!! [ 29s] =============================== 1 error in 0.14s =============================== [ 29s] error: Bad exit status from /var/tmp/rpm-tmp.A1xgqj (%check) [ 29s] [ 29s] RPM build errors: [ 29s] Bad exit status from /var/tmp/rpm-tmp.A1xgqj (%check)
For some reason the checks succeed on i586 and armv7l. Could this be related to some hiccups due to the current rebuild of many packages (that has not yet happend for armv7l)? Any ideas, anyone? Kind Regards, Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
Am 05.05.23 um 11:10 schrieb Johannes Kastl:
Hi all,
for ansible-navigator I need the onigurumacffi module:
https://build.opensuse.org/package/show/home:ojkastl_buildservice:Branch_dev...
Building works, but the checks fail:
[ 28s] + pytest-3.9 --ignore=_build.python39 --ignore=_build.python311 --ignore=_build.python310 -v
[ 29s] import _onigurumacffi [ 29s] E ModuleNotFoundError: No module named '_onigurumacffi'
The package is not pure: It installs compiled _onigurumacffi.so into %{_libdir} (%{$python_sitearch}). Use %pytest_arch instead of %pytest
For some reason the checks succeed on i586 and armv7l.
Because for 32bit everything is in /usr/lib - Ben
Hi Ben, thanks for the fast reply. On 05.05.23 at 11:14 Ben Greiner wrote:
The package is not pure: It installs compiled _onigurumacffi.so into %{_libdir} (%{$python_sitearch}).
Use %pytest_arch instead of %pytest
Thanks, that seems to work. Should the package be reworked to not be noarch? If so, is there any other package that I could copy from? Kind Regards, Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
On 05.05.23 at 11:25 Ben Greiner wrote:
Am 05.05.23 um 11:22 schrieb Johannes Kastl:
Should the package be reworked to not be noarch? If so, is there any other package that I could copy from?
It's not noarch as far as I can tell. After all there is a compiled library in it.
Thanks. I just noticed that there is no "Buildarch: noarch" set, so I hope this will be fine. I commented the SR accordingly: https://build.opensuse.org/request/show/1085010 Kind Regards, Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
participants (2)
-
Ben Greiner
-
Johannes Kastl