Red Hat Bugzilla – Bug 850786
rpmlint doesn't work properly with RI files (unexpanded-macro, file-not-utf8, wrong-file-end-of-line-encoding)
Last modified: 2016-01-04 00:50:39 EST
Created attachment 606236 [details]
Patch for unexpanded macro warning when checking RI files
Description of problem:
In the current version of rpmlint, rubygems may raise warnings that are not accurate. rpmlint handles some RI files (that are always binary) as text files and does not allow percent-encoding in the path (but this is correct since Ruby use these characters in the names of methods and RDoc saves RI files with the full method names including encoded special characters).
2 attached patches solve the problem:
macro_regex.patch solves unexpanded-macro issue and
ri_files_are_binary.patch solve the rest
Steps to Reproduce:
1. install rpmlint:
yum install rpmlint
2. download Mocha rpm package from:
3. run rpmlint to check this package:
rubygem-mocha-doc.noarch: W: unexpanded-macro /usr/share/gems/doc/mocha-0.12.1/ri/Mocha/Expectation/satisfied%3f-i.ri %3f
rubygem-mocha-doc.noarch: W: file-not-utf8 /usr/share/gems/doc/mocha-0.12.1/ri/cache.ri
rubygem-mocha-doc.noarch: W: wrong-file-end-of-line-encoding /usr/share/gems/doc/mocha-0.12.1/ri/Mocha/Expectation/backtrace-i.ri
No such warnings
I am submitting the patch here as I am unsure about the current upstream of rpmlint. If you know it, please let me know.
Created attachment 606237 [details]
RI files are always binary
http://rpmlint.zarb.org/ is the current upstream.
I submitted the patch there:
rpmlint-1.4-10.fc17 has been submitted as an update for Fedora 17.
rpmlint-1.4-10.fc16 has been submitted as an update for Fedora 16.
rpmlint-1.4-10.fc18 has been submitted as an update for Fedora 18.
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing rpmlint-1.4-10.fc18'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
rpmlint-1.4-10.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.
rpmlint-1.4-10.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
rpmlint-1.4-10.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.