Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 461706 - Provide functions to access pkgconfig access for python implementations
Summary: Provide functions to access pkgconfig access for python implementations
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-14 09:10 UTC by Tomáš Chvátal (RETIRED)
Modified: 2013-03-28 12:22 UTC (History)
0 users

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


Attachments
Patch to add necessary functions (0001-Support-obtaining-PYTHON_CFLAGS-and-PYTHON_LIBS.patch,4.47 KB, patch)
2013-03-19 19:22 UTC, Michał Górny
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.