Bug 186399 - rpmlint tracebacks on SRPMS
Summary: rpmlint tracebacks on SRPMS
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: rpmlint
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ville Skyttä
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-03-23 11:58 UTC by Sarantis Paskalis
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-03-24 08:24:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Sarantis Paskalis 2006-03-23 11:58:33 UTC
Description of problem:
rpmlint of FE5 tracebacks when run on any srpm

Version-Release number of selected component (if applicable):
rpmlint-0.75-1.fc5

How reproducible:
Always

Steps to Reproduce:
1. Run rpmlint on any srpm
2. rpmlint tracebacks
3.

Actual results:


Expected results:


Additional info:
For example a the acpid srpm as shipped with FC5:
$ rpmlint acpid-1.0.4-2.src.rpm
W: acpid strange-permission acpid.init 0775
Traceback (most recent call last):
  File "/usr/share/rpmlint/rpmlint.py", line 248, in ?
    main()
  File "/usr/share/rpmlint/rpmlint.py", line 83, in main
    runChecks(pkg)
  File "/usr/share/rpmlint/rpmlint.py", line 138, in runChecks
    c.check(pkg)
  File "/usr/share/rpmlint/SpecCheck.py", line 88, in check
    spec=file2string(spec_file)
  File "/usr/share/rpmlint/SpecCheck.py", line 60, in file2string
    fd=open(file, "r")
IOError: [Errno 2] No such file or directory:
'/tmp/acpid-1.0.4-2.src.rpm.31590/acpid.spec

Comment 1 Ville Skyttä 2006-03-23 19:29:05 UTC
I can't reproduce, so I'm afraid you'll need to try to debug this yourself  
(eg. by adding some print statements here and there and trying to find out  
where exactly things go wrong; a first thing to check would be to see if 
rpm2cpio in Pkg.py succeeds):  
   
$ rpm -q rpmlint   
rpmlint-0.75-1.fc5   
$ rpmlint acpid-1.0.4-2.src.rpm   
W: acpid strange-permission acpid.init 0775   
W: acpid prereq-use /sbin/chkconfig, /sbin/service   
$   
  

Comment 2 Sarantis Paskalis 2006-03-24 08:24:27 UTC
Strange, I cannot reproduce it today.

The only hint is from /var/log/yum.log, where the 2 packages updated during the
night were:
Mar 24 05:26:46 Updated: file.i386 4.17-2.fc5
Mar 24 05:26:49 Updated: cpio.i386 2.6-15.FC5

I did install the old versions of them, but could not make rpmlint break again.
 So, I have no idea what it was.

Anyway, thanks and sorry for the noise.

Comment 3 Ville Skyttä 2006-03-24 18:59:50 UTC
Broken cpio sounds like a likely culprit; I had already updated it when trying 
to reproduce.  Good to hear that it works for you too now. 


Note You need to log in before you can comment on or make changes to this bug.