Bug 1203093

Summary: rpmlint cannot find symbol rpmfilesVSignature
Product: [openSUSE] openSUSE Tumbleweed Reporter: Christopher Yeleighton <giecrilj>
Component: DevelopmentAssignee: Dirk Mueller <dmueller>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
URL: https://build.opensuse.org/package/live_build_log/home:yecril71pl:branches:Base:System/bash/openSUSE_Factory/x86_64
Whiteboard:
Found By: Community User Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1203091    

Description Christopher Yeleighton 2022-09-04 15:29:18 UTC
> [    9s] [135/150] cumulate rpmlint-mini-2.3.0+git20220901.67701476-7.17
> [  239s] RPMLINT report:
> [  239s] ===============
> [  239s] Traceback (most recent call last):
> [  239s]   File "/opt/testing/bin/rpmlint.real", line 33, in <module>
> [  239s]     sys.exit(load_entry_point('rpmlint==2.3.0', 'console_scripts', 'rpmlint')())
> [  239s]   File "/opt/testing/bin/rpmlint.real", line 25, in importlib_load_entry_point
> [  239s]     return next(matches).load()
> [  239s]   File "./importlib/metadata/__init__.py", line 171, in load
> [  239s]   File "./importlib/__init__.py", line 126, in import_module
> [  239s]   File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
> [  239s]   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
> [  239s]   File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
> [  239s]   File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
> [  239s]   File "<frozen importlib._bootstrap_external>", line 883, in exec_module
> [  239s]   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
> [  239s]   File "./rpmlint/cli.py", line 6, in <module>
> [  239s]   File "./rpmlint/lint.py", line 17, in <module>
> [  239s]   File "./rpmlint/pkg.py", line 25, in <module>
> [  239s]   File "./site-packages/rpm/__init__.py", line 38, in <module>
> [  239s] ImportError: /opt/testing/lib64/python3.10/site-packages/rpm/_rpm.cpython-310-x86_64-linux-gnu.so: undefined symbol: rpmfilesVSignature
Comment 1 Christopher Yeleighton 2022-09-05 11:56:50 UTC
The library _rpm.cpython is copied from python310-rpm and requires rpm = 4.17.1 but this requirement is not explicit in rpmlint-mini.  Question: why does it contain the library instead of requiring it?
Comment 2 Christopher Yeleighton 2022-09-05 12:50:48 UTC
The tool rpmlint makes a partial chroot into the directory /opt/testing.  The chroot environment includes the library _rpm.cpython but it does not include librpm et al.  This is probably wrong.  In general, this concept really asks for running from a regular snapshot.
Comment 3 OBSbugzilla Bot 2022-09-12 08:05:06 UTC
This is an autogenerated message for OBS integration:
This bug (1203093) was mentioned in
https://build.opensuse.org/request/show/1002662 Factory / rpmlint-mini
Comment 4 Dirk Mueller 2022-09-16 13:09:27 UTC
thank you for submitting the fix!
Comment 5 Christopher Yeleighton 2022-09-16 21:11:08 UTC
I have tested the fix and it works.