Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283191 - media-libs/fontconfig ebuild should use libxml2
Summary: media-libs/fontconfig ebuild should use libxml2
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-30 02:13 UTC by Pavel
Modified: 2009-11-22 23:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel 2009-08-30 02:13:11 UTC
Libxml2 is now more favoured xml backend than unmaintained expat. It should be used by default

Reproducible: Always
Comment 1 Rafał Mużyło 2009-08-30 07:25:23 UTC
What do you base this assumption on ?
Please, give a reference to fontconfig docs
or a recent post of the fontconfig devs.
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2009-08-30 10:54:32 UTC
Where do you have this information from. Please add a quote and reopen bug.
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2009-08-30 16:10:34 UTC
the comment in the ebuild says the exact opposite, and every distro packaging fontconfig uses expat, including the distros where the maintainers are fontconfig upstream.
Comment 4 Pavel 2009-08-31 11:32:04 UTC
Yes, I saw the comments, but I could only state that I don't know the reason behind writing comment exactly opposing actual state of things.

Expat is very old (2 years since last bugfix), have 2 bugs mentioned in its ebuild and some more which are known to cause unexpected parsing behaviour. And this is the main reason, but also it would server reducing desktop profile library dependency footprint. And still I think, keeping expat as an USE flag could be suitable for low ram systems
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2009-09-02 02:04:07 UTC
Well, expat is pulled in by a lot more than fontconfig so the footprint wouldn't be reduced much. ;)  We've never had a bug caused by misparsed fontconfig xml files that I know of.  Every single distro I've checked uses expat over libxml2, even Debian where Keith himself is the maintainer.

I'm puzzled.

Comment 7 Peter Volkov (RETIRED) gentoo-dev 2009-10-09 16:47:45 UTC
Still no answer:
http://lists.freedesktop.org/archives/fontconfig/2009-September/003217.html

I failed to find any distribution that uses fontconfig with libxml2 and even spec file provided with fontconfig itself suggests expat:

http://cgit.freedesktop.org/fontconfig/tree/fontconfig.spec.in


Probably we could add expat USE flag and enable it by default. Those who want use libxml2 could just disable it then. Thoughts?
Comment 8 Ryan Hill (RETIRED) gentoo-dev 2009-10-09 20:11:45 UTC
that's pretty much what we used to do, then cardoe threw a fit. ;)

if there were a reason to use libxml2 then I would say go for it.  if the only reason is theoretical parsing bugs we have no evidence of and no one in any distro has encountered, then I say no.
Comment 9 Pavel 2009-10-10 08:48:44 UTC
http://bugs.freedesktop.org/show_bug.cgi?id=22862 depends whether expat or libxml2 is used. Not a big deal but it also known that there are bugs with apache related stuff
Comment 10 Ryan Hill (RETIRED) gentoo-dev 2009-11-22 23:25:35 UTC
the default is expat, that's what we'll use.