Bug 711485

Summary: Rpmlint drops file extension when looking for a file
Product: [openSUSE] openSUSE 12.1 Reporter: Ilya Chernykh <anixx>
Component: BasesystemAssignee: Dirk Mueller <dmueller>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None    
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Ilya Chernykh 2011-08-10 11:13:46 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; ru; rv:1.9.1.19) Gecko/20110420 SUSE/2.0.14-2.1 SeaMonkey/2.0.14

After rpm build, rpmlint script returns error saying it cannot find a file. The file has been processed well by rpmbuild without any errors reported. 

The filename cited by rpmlint lacks the extension. If to change the filename to remove the extension the build works well.

See relevant build log: https://build.opensuse.org/package/live_build_log?arch=i586&package=hal&project=home%3AAnsus%3Abranches%3AKDE%3AKDE3&repository=openSUSE_11.4

In this example, a file named hal-policy.conf is included in the package. The %files section is processed well and the packages are created. Then rpmlint says it cannot find a file named "hal-policy" (note the extension is dropped).

Is to rename the file to "hal-policy" the build finishes well.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Comment 1 Dirk Mueller 2011-08-19 16:35:41 UTC
the problem is the extension .conf. it should be one of the extensions .restrictive, .standard or .relaxed. 

anyway, I've fixed it to not strip away unknown extensions anymore.
Comment 2 Ilya Chernykh 2011-08-19 16:58:47 UTC
I thought the extension does not matter once the file is placed in this directory. Am I wrong?
Comment 3 Bernhard Wiedemann 2011-08-20 01:00:14 UTC
This is an autogenerated message for OBS integration:
This bug (711485) was mentioned in
https://build.opensuse.org/request/show/79416 Factory / rpmlint