Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 633962 - distutils-r1.eclass should append -pthread to the CC and CCX environment variables
Summary: distutils-r1.eclass should append -pthread to the CC and CCX environment vari...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-10 18:55 UTC by Mike Gilbert
Modified: 2021-07-27 05:02 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 Mike Gilbert gentoo-dev 2017-10-10 18:55:25 UTC
From #gentoo-python:

<floppym> [Arfrever]: Regarding bug 630578, I wonder if a more general solution is needed or if we should just fix ebuilds needing "-pthread" as they pop up. Thoughts?
<willikins> floppym: https://bugs.gentoo.org/630578 "=dev-python/cryptography-2.0.3 is underlinking against pthread on powerpc64 : cryptography-2.0.3-python2_7/lib/cryptography/hazmat/bindings/_openssl.so: undefined symbol: pthread_atfork"; Gentoo Linux, Current packages; CONF; slyfox:python
<[Arfrever]> floppym: I would think that it is a bug in distutils-r1.eclass :) .
<floppym> [Arfrever]: It's a bug that we export CC?
<floppym> Unfortunately, the cpython configure script automagically appends -pthread to CC and saves that in sysconfig.
<floppym> Exporting the CC envvar overrides that in distutils.sysconfig.
<floppym> So this seems like a bug that anyone might run into if they set CC.
<[Arfrever]> floppym: https://sourceforge.net/p/gentoo-progress/code/HEAD/tree/eclass/python.eclass#l1382
<floppym> Ah, I see.
<floppym> Thanks for that.
<[Arfrever]> floppym: https://gitweb.gentoo.org/repo/gentoo.git/tree/eclass/distutils-r1.eclass#n642
<[Arfrever]> floppym: So I think that values of CC and CXX in distutils-r1.eclass should be improved.
<[Arfrever]> floppym: (And LDSHARED + LDCXXSHARED)