[mythtv] [mythtv-commits] Ticket #9442: configure libxml2 with pkg-config

Lawrence Rust lvr at softsystem.co.uk
Thu Jan 6 08:59:47 UTC 2011


On Tue, 2011-01-04 at 17:49 -0500, Michael T. Dean wrote:
> On 01/04/2011 04:14 PM, MythTV wrote:
> > #9442: configure libxml2 with pkg-config
> >
> > Comment (by Lawrence Rust<lvr@…>):
> >
> >   Just found a minor problem.  The output of pkg-config has a trailing space
> >   which is passed onto gcc as an include path and so gcc fails to find the
> >   xml headers.  Need to massage the output to remove the trailing space:
> >
> >   +        libxml2_path=`pkg-config --cflags-only-I libxml-2.0|sed -n
> >   "s/-I\([^ ]*\) *$/\1/p"`
> 
> Any chance you could send a patch to upstream libxml to remove 
> the--obviously, as you've found--incorrect end-of-line space at the end 
> of the "Cflags: -I${includedir}/libxml2 " line (as well as the 
> Libs.private line, while you're at it--just for prettiness) in 
> libxml-2.0.pc (no idea where that lives in Windows).

Submitted here:
https://bugzilla.gnome.org/show_bug.cgi?id=638801

-- Lawrence




More information about the mythtv-dev mailing list