Bug 517875
Summary: | the same line lenght ok in one case, not ok in another case | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Karel Volný <kvolny> | ||||
Component: | rpmlint | Assignee: | Ville Skyttä <ville.skytta> | ||||
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 11 | CC: | manuel.wolfshant, tmz, ville.skytta | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2009-08-17 17:59:54 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Karel Volný
2009-08-17 16:00:29 UTC
Created attachment 357667 [details]
lingot.spec
(In reply to comment #0) > While tuning the .spec, I have found that > rpmlint passes when checking the .spec, and it fails when checking the > resulting rpms. This is expected behavior, see CAVEATS in the rpmlint man page. In this particular case, line length checks are not done when checking spec files. > "Also, please make sure that there are no lines in the description longer than > 80 characters." is ambiguous. Is it meant including the EOL character or not? I suppose it's excluding the EOL character but you can ask fedora-packaging if unsure - this is not related to rpmlint. Well, except that rpmlint currently has a hardcoded max line length of 79, I'll make it configurable for the next upstream version. > But rpmlint should be consistent, either count it or do not count it, but > please don't report pass in one case and fail in the other case with the same > input. The input in your reproducer is _not_ the same for the two runs. The first runs rpmlint on a *.spec, the other on a *.src.rpm. (In reply to comment #2) > the other on a *.src.rpm. ...and the third on a binary rpm. (In reply to comment #2) > (In reply to comment #0) > > While tuning the .spec, I have found that > > rpmlint passes when checking the .spec, and it fails when checking the > > resulting rpms. > > This is expected behavior, see CAVEATS in the rpmlint man page. In this > particular case, line length checks are not done when checking spec files. thankyou for the explanation however, I see no way how to tell what is going to be run from the documentation, therefore I filed the bug #521622 also, I consider the situation quite unfortunate, not to check for things like these in standalone .spec check but do this as part of e.g. the srpm check => bug #521624 I also mark this as duplicate of the bug #521624, as this is just specific case of the more generic problem described there and it would be much easier to see the problem if a "superverbose" output would be available => bug #521628 > Well, except that rpmlint currently has a hardcoded max line length of 79, > I'll make it configurable for the next upstream version. thankyou; so I filed the bug #521630 to track this > > But rpmlint should be consistent, either count it or do not count it, but > > please don't report pass in one case and fail in the other case with the > > same input. > > The input in your reproducer is _not_ the same for the two runs. The first > runs rpmlint on a *.spec, the other on a *.src.rpm. but the file in question should not differ, the difference is just whether it is standalone or packed inside of an archive ... I do not know how rpmlint works internally, but I'd expect to have some routine to do specfile checks, and to feed it with the file, either standalone or extracted from the archive, not to have two different routines - what is the purpose of it? *** This bug has been marked as a duplicate of bug 521624 *** (In reply to comment #4) > but the file in question should not differ, the difference is just whether it > is standalone or packed inside of an archive ... It doesn't differ but it doesn't currently matter either as this check is never run against specfiles at all (whether standalone or inside source rpms), but against description retrieved from rpm package headers. again, thanks for being patient and explaining - sometimes how the things work internally is quite different from what it seem on first, uninformed, sight ... also thanks for dealing with the other bugs |