Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 476928 - 'xml' and 'expat' USE flags confusing
Summary: 'xml' and 'expat' USE flags confusing
Status: UNCONFIRMED
Alias: None
Product: Quality Assurance
Classification: Unclassified
Component: Disputes/raising issues (show other bugs)
Hardware: All Linux
: Normal QA
Assignee: Gentoo Quality Assurance Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-15 15:09 UTC by Joe Breuer
Modified: 2021-07-21 01:07 UTC (History)
3 users (show)

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


Attachments
List of packages using the 'xml' USE flag (USE-xml,6.06 KB, text/plain)
2013-07-15 15:40 UTC, Joe Breuer
Details
List of packages using the 'expat' USE flag (USE-expat,969 bytes, text/plain)
2013-07-15 15:40 UTC, Joe Breuer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Breuer 2013-07-15 15:09:42 UTC
Currently, "most" packages seem to evaluate the USE flag 'xml' whether to enable XML support (i.e. wine, texlive, postgresql-server, python, imagemagick, vlc, ...).

But there are a small number of packages that control XML support through their 'expat' USE flag; most prominently 'gdb'.

I stumbled upon this when trying to understand why on a system with '+xml' globally gdb would complain about missing XML support; and only after looking thrice did I understand that gdb wants to be compiled with 'expat' for XML support.


I think this difference is unfortunate. I suggest to use the 'xml' USE flag whereever XML support is to be enabled/disabled.

If there are any packages that allow switching between different XML support implementations, 'expat' could be used there to select the implementation.
Comment 1 Julian Ospald 2013-07-15 15:35:58 UTC
can you give some more specific examples?
Comment 2 Joe Breuer 2013-07-15 15:40:19 UTC
Created attachment 353356 [details]
List of packages using the 'xml' USE flag
Comment 3 Joe Breuer 2013-07-15 15:40:38 UTC
Created attachment 353358 [details]
List of packages using the 'expat' USE flag
Comment 4 Joe Breuer 2013-07-15 16:01:31 UTC
At least sys-devel/gdb, app-arch/rpm5, x11-wm/matchbox-window-manager, media-video/kmplayer seem to use 'expat' to enable XML support.

In net-libs/neon, 'expat' toggles between expat and libxml2.

net-misc/sitecopy evaluates both 'xml' and 'expat' and apparently toggles, but to be frank I don't really understand what the intended result is.

Most of the other packages in my list I don't know well enough to be able to say what they do with expat.
Comment 5 Pacho Ramos gentoo-dev 2015-05-06 10:05:53 UTC
I guess packages should tend to use "xml" when possible and only "expat" to allow choosing between the implementations, right?