[Python-checkins] python/dist/src configure,1.414,1.415 configure.in,1.425,1.426 pyconfig.h.in,1.82,1.83

jlt63@users.sourceforge.net jlt63@users.sourceforge.net
Tue, 22 Jul 2003 08:20:52 -0700


Update of /cvsroot/python/python/dist/src
In directory sc8-pr-cvs1:/tmp/cvs-serv8490

Modified Files:
	configure configure.in pyconfig.h.in 
Log Message:
Patch 775605: Cygwin pthread_sigmask() workaround patch

Cygwin's pthread_sigmask() implementation appears to be buggy. This
patch works around this problem by using sigprocmask() instead. 

This patch is implemented in a general way so it could be used by other
platforms too. If this approach is deemed too risky, then I can work up
a patch that just hacks Python/thread_pthread.h for Cygwin. 

Note that I tested this patch against 2.3c1 under Red Hat Linux 8.0 too.

[snip]
And finally, I need someone to regenerate pyconfig.h.in and configure
with the same versions of the autotools that are normally used by
Python.

Neal kindly regenerated pyconfig.h.in and configure for me.


Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.414
retrieving revision 1.415
diff -C2 -d -r1.414 -r1.415
*** configure	13 Jul 2003 09:46:13 -0000	1.414
--- configure	22 Jul 2003 15:20:47 -0000	1.415
***************
*** 1,4 ****
  #! /bin/sh
! # From configure.in Revision: 1.424 .
  # Guess values for system-dependent variables and create Makefiles.
  # Generated by GNU Autoconf 2.53 for python 2.3.
--- 1,4 ----
  #! /bin/sh
! # From configure.in Revision: 1.425 .
  # Guess values for system-dependent variables and create Makefiles.
  # Generated by GNU Autoconf 2.53 for python 2.3.
***************
*** 909,913 ****
  # absolute.
  ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
--- 909,913 ----
  # absolute.
  ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
  ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
***************
*** 11786,11790 ****
--- 11786,11798 ----
  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  _ACEOF
+  case $ac_sys_system in
+         CYGWIN*)
+ 
+ cat >>confdefs.h <<\_ACEOF
+ #define HAVE_BROKEN_PTHREAD_SIGMASK 1
+ _ACEOF
  
+             ;;
+         esac
  fi
  done
***************
*** 18503,18507 ****
  # absolute.
  ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
--- 18511,18515 ----
  # absolute.
  ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
  ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`

Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.425
retrieving revision 1.426
diff -C2 -d -r1.425 -r1.426
*** configure.in	13 Jul 2003 09:46:13 -0000	1.425
--- configure.in	22 Jul 2003 15:20:49 -0000	1.426
***************
*** 1702,1706 ****
          AC_DEFINE(PTHREAD_SYSTEM_SCHED_SUPPORTED, 1, [Defined if PTHREAD_SCOPE_SYSTEM supported.])
        fi
!       AC_CHECK_FUNCS(pthread_sigmask)
  fi
  
--- 1702,1712 ----
          AC_DEFINE(PTHREAD_SYSTEM_SCHED_SUPPORTED, 1, [Defined if PTHREAD_SCOPE_SYSTEM supported.])
        fi
!       AC_CHECK_FUNCS(pthread_sigmask,
!         [case $ac_sys_system in
!         CYGWIN*)
!           AC_DEFINE(HAVE_BROKEN_PTHREAD_SIGMASK, 1,
!             [Define if pthread_sigmask() does not work on your system.])
!             ;;
!         esac])
  fi
  

Index: pyconfig.h.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/pyconfig.h.in,v
retrieving revision 1.82
retrieving revision 1.83
diff -C2 -d -r1.82 -r1.83
*** pyconfig.h.in	2 Jul 2003 13:53:25 -0000	1.82
--- pyconfig.h.in	22 Jul 2003 15:20:49 -0000	1.83
***************
*** 48,51 ****
--- 48,54 ----
  #undef HAVE_BROKEN_POSIX_SEMAPHORES
  
+ /* Define if pthread_sigmask() does not work on your system. */
+ #undef HAVE_BROKEN_PTHREAD_SIGMASK
+ 
  /* Define to 1 if you have the `chown' function. */
  #undef HAVE_CHOWN
***************
*** 830,836 ****
  #undef _NETBSD_SOURCE
  
- /* Define on FreeBSD to activate all library features */
- #undef __BSD_VISIBLE
- 
  /* Define _OSF_SOURCE to get the makedev macro. */
  #undef _OSF_SOURCE
--- 833,836 ----
***************
*** 857,860 ****
--- 857,863 ----
  /* Define to activate Unix95-and-earlier features */
  #undef _XOPEN_SOURCE_EXTENDED
+ 
+ /* Define on FreeBSD to activate all library features */
+ #undef __BSD_VISIBLE
  
  /* Define to 1 if type `char' is unsigned and you are not using gcc.  */