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.

Title: multiprocessing: switch to autoconf detection of platform values
Type: enhancement Stage: patch review
Components: Versions: Python 3.1, Python 2.7
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: jnoller Nosy List: christian.heimes, jnoller, rpetrov
Priority: normal Keywords: patch

Created on 2009-03-23 17:15 by jnoller, last changed 2022-04-11 14:56 by admin. This issue is now closed.

File name Uploaded Description Edit
mp_autoconf.patch christian.heimes, 2009-03-23 17:56 rpetrov, 2009-03-29 20:33
Messages (10)
msg84019 - (view) Author: Jesse Noller (jnoller) * (Python committer) Date: 2009-03-23 17:15
See mail thread:

And Christian's checkin to the back port:

Need to take into the account information here (for my own notes):
msg84022 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2009-03-23 17:56
I've correct some smaller issues and integrated the autoconf code into
multiprocessing and A working patch is appended.
msg84039 - (view) Author: Roumen Petrov (rpetrov) * Date: 2009-03-23 21:27
What about AC_CHECK_FUNC* macros ?
msg84097 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2009-03-24 17:24
AC_CHECK_FUNC works only for trivial checks that do not require
additional headers.
msg84230 - (view) Author: Roumen Petrov (rpetrov) * Date: 2009-03-26 22:51
AC_CHECK_FUNC* check for function .
AC_CHECK_DECL check for declaration .

The check for functions sem_xxx() is incorrect in proposed patch. It has
to check for function.

I didn't review next part of the patch.
msg84239 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2009-03-27 00:45
Dear Roumen, please do my a favor and stop throwing in random ideas and
accusations. I appreciate any help but your replies don't help at all.
They are just causing frustration on either side.

I know about AC_CHECK_DECL and AC_CHECK_FUNC. As I already said I can't
use AC_CHECK_FUNC because I can't easily include the necessary header file. 
AC_CHECK_DECL emits almost the same code as my check for sem_open and
sem_timedwait. However I'm planing to add more sanity checks for exotic
platforms in the future.
My check for sem_open does exactly what it suppose to do (and exactly
what AC_CHECK_DECL does, by the way). Why do you think it's not right?
msg84240 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2009-03-27 00:46
Jesse, have fun with
during the sprint.
msg84429 - (view) Author: Roumen Petrov (rpetrov) * Date: 2009-03-29 20:33
Cchristian it is not about random idea. It is how to write simple
readable and correct autoconf script. Compare my check for functions
(see attached with you. Also some of macros in you patch
are marked as obsolete.

$ CC=g++ ./
#define HAVE_SEM_OPEN 1

So you propose check that fail in some cases.
msg85128 - (view) Author: Jesse Noller (jnoller) * (Python committer) Date: 2009-04-02 01:25
This is committed as of CL 71007 on trunk.
msg85133 - (view) Author: Jesse Noller (jnoller) * (Python committer) Date: 2009-04-02 01:42
Closing as fixed until the buildbots prove otherwise
Date User Action Args
2022-04-11 14:56:46adminsetgithub: 49795
2009-04-02 01:42:28jnollersetstatus: open -> closed
resolution: fixed
messages: + msg85133
2009-04-02 01:25:14jnollersetmessages: + msg85128
2009-03-29 20:33:33rpetrovsetfiles: +

messages: + msg84429
2009-03-27 00:46:35christian.heimessetmessages: + msg84240
stage: needs patch -> patch review
2009-03-27 00:45:33christian.heimessetmessages: + msg84239
2009-03-26 22:51:53rpetrovsetmessages: + msg84230
2009-03-24 17:24:21christian.heimessetmessages: + msg84097
2009-03-23 21:27:09rpetrovsetnosy: + rpetrov
messages: + msg84039
2009-03-23 17:56:07christian.heimessetfiles: + mp_autoconf.patch
keywords: + patch
messages: + msg84022
2009-03-23 17:15:03jnollercreate