Created attachment 499788 [details] geninfo.patch replace 2 argument open with 3 argument open Description of problem: lcov cannot read "special" file names that start with '<' or '>' since it is using the two argument open function. It should use the three argument open function to provide the mode itself instead of deriving it from the filename. http://perldoc.perl.org/perlfaq5.html#How-can-I-open-a-file-with-a-leading-%22%3E%22-or-trailing-blanks? Version-Release number of selected component (if applicable): lcov.noarch 0:1.7-1.fc12 How reproducible: Always Steps to Reproduce: 1. git clone git://git.fedorahosted.org/git/elfutils 2. ./configure --enable-gcov 3. make -j8 && make check 4. lcov --directory . --capture --output-file lcov.info Actual results: [...] Processing ./tests/test-flag-nobits.gcda <built-in>:cannot open source file geninfo: ERROR: cannot read <built-in>.gcov! Expected results: [...] Writing directory view page. Overall coverage rate: lines......: 56.0% (13421 of 23947 lines) functions..: 70.1% (750 of 1070 functions) Additional info: Patch with a fix for geninfo attached.
I've found that this is fixed in the lcov upstream CVS, see http://ltp.cvs.sourceforge.net/viewvc/ltp/utils/analysis/lcov/bin/geninfo?revision=1.91&view=markup Or, here's the patch similar to Mark's: http://ltp.cvs.sourceforge.net/viewvc/ltp/utils/analysis/lcov/bin/geninfo?r1=1.90&r2=1.91
Do either of you have any interest in co-maintaining (or taking over) lcov? I haven't used it in quite a while, and failed to notice the upstream releases. It should get updated to the latest upstream release.
Fedora 14 is EOL, but this still exists in F16, so changing version
lcov-1.9-2.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/lcov-1.9-2.fc17
lcov-1.9-2.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/lcov-1.9-2.fc16
Package lcov-1.9-2.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing lcov-1.9-2.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-3611/lcov-1.9-2.fc17 then log in and leave karma (feedback).
lcov-1.9-2.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
lcov-1.9-2.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.