Red Hat Bugzilla – Bug 487075
silent ABI change in qt breaks po2xml (renamed XML parser features)
Last modified: 2009-03-03 09:02:43 EST
Description of problem:
po2xml parses an XML file by constructing an QXmlSimpleReader object
and setting the "http://trolltech.com/xml/features/report-start-end-entity"
feature on it.
Unfortunately, upstream Qt appear to have renamed that feature to
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. po2xml /dev/null /dev/null
Unknown feature http://trolltech.com/xml/features/report-start-end-entity
Some error about empty input or something similar.
"po2xml /dev/null /dev/null" is just the most simple test case
I could find. Ask me if you need a more elaborate test case
involving actual XML and po files.
I'd blame Qt for breaking backwards compatibility there. They should be converting trolltech.com URLs to qtsoftware.com URLs automatically, it's pretty easy to do.
or, probably more efficient:
feature.replace(0, 21, "http://qtsoftware.com/");
at an appropriate place in Qt should fix it.
For the record (and while I still have the file open in my editor)...
That would affect the methods
in the file
Created attachment 333412 [details]
UNTESTED patch trying to fix the issue
I could not actually test this patch yet, as qt is taking ages to compile. However, someone else might want to so something with this in the mean time...
At the very least, someone with knowledge of C++, qt's string API and how to create and prevent memory leaks and similar fun things while using the two should take a good look at the patch before it is included in any packages or even upstream qt.
Working on a newer qt snapshot (20090224), and it looks fixed upstream.
ok, qt-4.5.0-0.8 should fix this, building now... should land soon in a friendly rawhide mirror near you.
boo, the -0.8 build failed on the buildsys, more snapshot breakage. I'll try to fix that asap.
woo, qt-4.5.0-1 (final) released today, and than heroically built it for rawhide.