Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 287295 - =dev-libs/mini-xml-2.5's pkg-config typo in mxml.pc.in
Summary: =dev-libs/mini-xml-2.5's pkg-config typo in mxml.pc.in
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-02 03:22 UTC by Yang Zhang
Modified: 2009-10-03 15:10 UTC (History)
1 user (show)

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 Yang Zhang 2009-10-02 03:22:55 UTC
mini-xml 2.5 has a broken pkg-config file (mxml.pc, in /usr/lib/pkgconfig). When asked for the correct libs to link ('pkg-config mxml --libs'), it returns '@PHTREAD@ -lmxml', which should be '-lpthread -lmxml'.

Reproducible: Always

Steps to Reproduce:
1. emerge =dev-libs/mini-xml-2.5
2. pkg-config mxml --libs
3.

Actual Results:  
@PHTREAD@ -lmxml

Expected Results:  
-lpthread -lmxml

After digging into the problem, it turns out that the mxml.pc.in shipped in the mxml-2.5.tar.gz contains a typo. The "@PHTREAD_LIBS@" in the "Libs: ..." line should be "@PTHREAD_LIBS@". This bug has been fixed in the 2.6 version. So It can be easily fixed by bumping the new version.
Comment 1 Yang Zhang 2009-10-02 03:40:47 UTC
(In reply to comment #0)
> mini-xml 2.5 has a broken pkg-config file (mxml.pc, in /usr/lib/pkgconfig).
> When asked for the correct libs to link ('pkg-config mxml --libs'), it returns
> '@PHTREAD@ -lmxml', which should be '-lpthread -lmxml'.
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. emerge =dev-libs/mini-xml-2.5
> 2. pkg-config mxml --libs
> 3.
> 
> Actual Results:  
> @PHTREAD@ -lmxml
> 
> Expected Results:  
> -lpthread -lmxml
> 
> After digging into the problem, it turns out that the mxml.pc.in shipped in the
> mxml-2.5.tar.gz contains a typo. The "@PHTREAD_LIBS@" in the "Libs: ..." line
> should be "@PTHREAD_LIBS@". This bug has been fixed in the 2.6 version. So It
> can be easily fixed by bumping the new version.
> 

I have tried(In reply to comment #0)
> mini-xml 2.5 has a broken pkg-config file (mxml.pc, in /usr/lib/pkgconfig).
> When asked for the correct libs to link ('pkg-config mxml --libs'), it returns
> '@PHTREAD@ -lmxml', which should be '-lpthread -lmxml'.
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. emerge =dev-libs/mini-xml-2.5
> 2. pkg-config mxml --libs
> 3.
> 
> Actual Results:  
> @PHTREAD@ -lmxml
> 
> Expected Results:  
> -lpthread -lmxml
> 
> After digging into the problem, it turns out that the mxml.pc.in shipped in the
> mxml-2.5.tar.gz contains a typo. The "@PHTREAD_LIBS@" in the "Libs: ..." line
> should be "@PTHREAD_LIBS@". This bug has been fixed in the 2.6 version. So It
> can be easily fixed by bumping the new version.
> 

I have tried mini-xml-2.6 using the same ebuild as mini-xml-2.5 and it works well for my own code.
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2009-10-02 07:21:57 UTC
(In reply to comment #1)
> I have tried mini-xml-2.6 using the same ebuild as mini-xml-2.5 and it works
> well for my own code.

Please file a version bump request bug for this.
Comment 3 Víctor Ostorga (RETIRED) gentoo-dev 2009-10-03 15:10:31 UTC
Fixed in dev-libs/mini-xml-2.6
Thanks for the report!