This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Threading and THREAD_SAFE for AIX
Type: Stage:
Components: Build Versions: Python 3.10, Python 3.9, Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: BTaskaya, Michael.Felt, kadler
Priority: normal Keywords:

Created on 2019-05-22 12:01 by Michael.Felt, last changed 2022-04-11 14:59 by admin.

Messages (3)
msg343184 - (view) Author: Michael Felt (Michael.Felt) * Date: 2019-05-22 12:01
For years Python includes the file /usr/include/pthread.h. The AIX documentation states that this needs to be the first include file included OR the define _THREAD_SAFE needs to be defined.

As this may have been true, might still be true, or might have never been true - this patch assures that the define is added to BASECFLAGS for AIX - and will not be forgotten during builds.

It may be advisable to include this in backports. This "conditional requirement" has been accurate for over 20 years.
msg365359 - (view) Author: Batuhan Taskaya (BTaskaya) * (Python committer) Date: 2020-03-30 23:27
> this patch assures that the define is added to BASECFLAGS for AIX - and will not be forgotten during builds.

@Micheal.Felt I can't see an attached patch or PR, FYI.
msg365898 - (view) Author: Michael Felt (Michael.Felt) * Date: 2020-04-07 08:58
Yes, looks like I need to find that. thx for the reminder.
History
Date User Action Args
2022-04-11 14:59:15adminsetgithub: 81190
2020-11-18 10:12:55christian.heimessetversions: + Python 3.9, Python 3.10, - Python 2.7, Python 3.5, Python 3.6, Python 3.7
2020-11-17 21:03:23kadlersetnosy: + kadler
2020-04-07 08:58:51Michael.Feltsetmessages: + msg365898
2020-03-30 23:27:22BTaskayasetnosy: + BTaskaya
messages: + msg365359
2019-05-22 12:01:09Michael.Feltcreate