Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 461706

Summary: Provide functions to access pkgconfig access for python implementations
Product: Gentoo Linux Reporter: Tomáš Chvátal (RETIRED) <scarabeus>
Component: EclassesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: major    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to add necessary functions

Description Tomáš Chvátal (RETIRED) gentoo-dev 2013-03-14 09:10:57 UTC
Something that would provide ie pkg-config --cflags python-2.7 or pkg-config --libs python-2.7 and others.

Setting severity to major as i really really need this in libreoffice asap.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-03-14 17:13:04 UTC
Ok, what kind of flags do we exactly need? Are those for building modules or for building executables linking to Python?
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2013-03-14 17:22:18 UTC
I need exact output of the two commands I gave in #c1, as I link to the python to build some binaries.
Comment 3 Mike Gilbert gentoo-dev 2013-03-14 18:56:02 UTC
The following should work, if you are in a hurry.

python_export EPYTHON
pkg-config --cflags python-${EPYTHON#python}
pkg-config --libs python-${EPYTHON#python}
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-03-19 19:22:30 UTC
Created attachment 342664 [details, diff]
Patch to add necessary functions

Could you test this patch, please?

The ebuild should do then:

  python_export PYTHON_CFLAGS PYTHON_LIBS

plus DEPEND on pkg-config.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-03-28 12:22:17 UTC
I have committed the patch.