1 FreeBSD porting fixes, patch by maho@openoffice.org
3 --- Python-3.3.0/configure 2012-11-28 09:00:41.094955090 +0000
4 +++ Python-3.3.0/configure 2012-11-28 09:01:13.033329526 +0000
6 LDLIBRARY='libpython$(LDVERSION).so'
7 BLDLIBRARY='-L. -lpython$(LDVERSION)'
8 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
9 - case $ac_sys_system in
11 - SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
14 INSTSONAME="$LDLIBRARY".$SOVERSION
15 if test "$with_pydebug" != yes
17 --- Python-3.3.0/Lib/test/test_threading.py 2012-11-28 09:00:41.292957412 +0000
18 +++ Python-3.3.0/Lib/test/test_threading.py 2012-11-28 09:01:13.017329339 +0000
20 # #12316 and #11870), and fork() from a worker thread is known to trigger
21 # problems with some operating systems (issue #3863): skip problematic tests
22 # on platforms known to behave badly.
23 - platforms_to_skip = ('freebsd4', 'freebsd5', 'freebsd6', 'netbsd5',
24 + platforms_to_skip = ('freebsd4', 'freebsd5', 'freebsd6', 'freebsd7', 'netbsd5',
27 def _run_and_join(self, script):
28 --- Python-3.3.0/Python/thread_pthread.h 2012-11-28 09:00:41.097955124 +0000
29 +++ Python-3.3.0/Python/thread_pthread.h 2012-11-28 09:01:13.018329351 +0000
35 +#include <osreldate.h>
38 /* The POSIX spec says that implementations supporting the sem_*
39 family of functions must indicate this by defining
42 in default setting. So the process scope is preferred to get
43 enough number of threads to work. */
45 -#include <osreldate.h>
46 #if __FreeBSD_version >= 500000 && __FreeBSD_version < 504101
47 #undef PTHREAD_SYSTEM_SCHED_SUPPORTED
56 #if defined(THREAD_STACK_SIZE) || defined(PTHREAD_SYSTEM_SCHED_SUPPORTED)
60 #if defined(PTHREAD_SYSTEM_SCHED_SUPPORTED)
61 pthread_attr_setscope(&attrs, PTHREAD_SCOPE_SYSTEM);
66 + SET_THREAD_SIGMASK(SIG_BLOCK, &set, &oset);
68 status = pthread_create(&th,
69 #if defined(THREAD_STACK_SIZE) || defined(PTHREAD_SYSTEM_SCHED_SUPPORTED)
76 + SET_THREAD_SIGMASK(SIG_SETMASK, &oset, NULL);
78 #if defined(THREAD_STACK_SIZE) || defined(PTHREAD_SYSTEM_SCHED_SUPPORTED)
79 pthread_attr_destroy(&attrs);