Description of problem:
I built a new version of cbmc, installed it into a Rawhide x86_64 mock chroot, installed rpmlint in the mock chroot as well, and ran rpmlint:
<mock-chroot> sh-4.4# rpmlint cbmc
0 packages and 0 specfiles checked; 0 errors, 0 warnings.
Traceback (most recent call last):
File "/usr/bin/rpmlint", line 371, in <module>
File "/usr/bin/rpmlint", line 160, in main
File "/usr/bin/rpmlint", line 217, in runChecks
File "/usr/share/rpmlint/AbstractCheck.py", line 50, in check
File "/usr/share/rpmlint/DistributionCheck.py", line 40, in check_binary
for fname in pkg.files():
File "/usr/share/rpmlint/Pkg.py", line 611, in files
File "/usr/share/rpmlint/Pkg.py", line 721, in _gatherFilesInfo
pkgfile.magic = b2s(_magic.descriptor(fd))
File "/usr/share/rpmlint/Pkg.py", line 48, in b2s
AttributeError: 'str' object has no attribute 'decode'
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Build cbmc 5.7 in mock (only tried this for Rawhide x86_64)
2. Install the built cbmc and rpmlint into the mock chroot
3. Run "rpmlint cbmc" in the mock chroot
The error shown above.
Results for the cbmc package.
Should be fixed upstream with https://github.com/rpm-software-management/rpmlint/commit/4875475c43098e37a4d5d4e2ee2f9dfea643cc78
rpmlint-1.9-9.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-68af0044a0
*** Bug 1440246 has been marked as a duplicate of this bug. ***
rpmlint-1.9-9.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-68af0044a0
Is it possible to push the fix to F25 too? Thank you!
rpmlint-1.9-9.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.
*** Bug 1441988 has been marked as a duplicate of this bug. ***
*** Bug 1442317 has been marked as a duplicate of this bug. ***