Description of problem: when I try build swig package for F11 output rpm is unusable due spurious perl dependencies: $ rpm -i swig-1.3.36-1.fc11.x86_64.rpm error: Failed dependencies: perl(argv) is needed by swig-1.3.36-1.fc11.x86_64 perl(example) is needed by swig-1.3.36-1.fc11.x86_64 perl(it) is needed by swig-1.3.36-1.fc11.x86_64 perl(the) is needed by swig-1.3.36-1.fc11.x86_64 Version-Release number of selected component (if applicable): $ rpm -q rpm-build rpm-build-4.6.0-0.rc1.7.x86_64 How reproducible: always Steps to Reproduce: 1. download test srpm from http://atkac.fedorapeople.org/swig-1.3.36-1.fc11.src.rpm 2. build it 3. try install output rpm Actual results: installation fails due bad dependencies Expected results: no spurious perl deps Additional info: when I uncommented line 45 (rm -f Doc/Manual/Perl5.html) output rpm seems fine
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle. Changing version to '10'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
This is the problem: [pmatilai@turre Manual]$ file Perl5.html Perl5.html: Perl5 module source text Current file/libmagic thinks it's perl so rpm runs perl dependency extractor on it. The fun of automatic file classification...
Reassigning to proper component
Created attachment 325218 [details] test file file says it is "Perl5 module source text" but it is not true.
found the magic file entry which causes the problem. # by Dmitry V. Levin and Alexey Tourbin # check the first line 0 search/1 package 0 regex \^package[\ \t]+[A-Za-z_] >0 regex \^package[\ \t]+[0-9A-Za-z_:]+\ *; Perl5 module source text # not 'p', check other lines 0 search/1 !p >0 regex \^package[\ \t]+[0-9A-Za-z_:]+\ *; >>0 regex \^1\ *;|\^(use|sub|my)\ .*[(;{=] Perl5 module source text consulted upstream.
Created attachment 325653 [details] patch for perl5 module recognition one line in the magic entry was wrong
fixed in file-4.26-5.fc11