Red Hat Bugzilla – Bug 484989
find-provides has a bug which causes python tracebacks with yum repositories
Last modified: 2009-02-11 10:20:49 EST
Created attachment 331500 [details]
SRPM file which demonstrates the problem
Description of problem:
find-provides doesn't handle quoted versions in pkgconfig properly.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. build attached srpm
2. add resulting rpm to a repository and enable it
3. run createrepo on that repository
4. yum list
glib errors about 'a bug in someone's code'
python traceback with 'TypeError: Parsing primary.xml error: attributes construct error'
normal 'yum list' output
The problem is the parsing of the "Version:" line in the attached pkgconfig file.
Just out of curiosity, is the quoted Version in .pc allowed by pkg-config?
pkg-config seems to handle it without problems and I couldn't find anything in
the man and info pages about quotes, so it looks like quotes are allowed.
Sorry, I think that allowing quoted Version would allow characters like spaces, etc. to be present in the version name what is weird and dangerous.
To allow this it needs reimplementation of the whole argv-like parser of the helper script output in rpm just because of a possibility that space will occur in the Version name (as demonstrated in your bug description). I'm not sure it has any practical sense.
Please reopen if you have different opinion or you have a case where the quoted version is unavoidable.