Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 702382 - dev-lang/python-3.8.0 : pkg-config --libs python-3.8 returns an empty line
Summary: dev-lang/python-3.8.0 : pkg-config --libs python-3.8 returns an empty line
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-09 19:42 UTC by Chris Mayo
Modified: 2019-12-09 21:30 UTC (History)
0 users

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 Chris Mayo 2019-12-09 19:42:06 UTC
$ pkg-config --libs python-3.8


Expected to return -lpython3.8 similar to:

$ pkg-config --libs python-3.7
-lpython3.7m

Also:

$ python3.8-config --ldflags
-L/usr/lib64  -lcrypt -lpthread -ldl  -lutil -lm -lm 

$ python3.7-config --ldflags
-L/usr/lib64 -lpython3.7m -lcrypt -lpthread -ldl  -lutil -lm 


Found while trying to run tests for dev-python/setproctitle against Python 3.8, hardcoding PYLIB=-lpython3.8 got them working.
Comment 1 Mike Gilbert gentoo-dev 2019-12-09 21:30:25 UTC
Per the release notes, if you need libpython, you need to use the "embed" option.

https://docs.python.org/3/whatsnew/3.8.html#debug-build-uses-the-same-abi-as-release-build

> python3.8-config --ldflags --embed
> pkg-config --libs python-3.8-embed