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>
main()
File "/usr/bin/rpmlint", line 160, in main
runChecks(pkg)
File "/usr/bin/rpmlint", line 217, in runChecks
check.check(pkg)
File "/usr/share/rpmlint/AbstractCheck.py", line 50, in check
return self.check_binary(pkg)
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
self._gatherFilesInfo()
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
return b.decode(errors='replace')
AttributeError: 'str' object has no attribute 'decode'
Version-Release number of selected component (if applicable):
rpmlint-1.9-8.fc27.noarch
How reproducible:
Always
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
Actual results:
The error shown above.
Expected results:
Results for the cbmc package.
Additional info:
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> main() File "/usr/bin/rpmlint", line 160, in main runChecks(pkg) File "/usr/bin/rpmlint", line 217, in runChecks check.check(pkg) File "/usr/share/rpmlint/AbstractCheck.py", line 50, in check return self.check_binary(pkg) 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 self._gatherFilesInfo() 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 return b.decode(errors='replace') AttributeError: 'str' object has no attribute 'decode' Version-Release number of selected component (if applicable): rpmlint-1.9-8.fc27.noarch How reproducible: Always 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 Actual results: The error shown above. Expected results: Results for the cbmc package. Additional info: