FreeBSD porting fixes, patch by maho@openoffice.org --- Python-3.3.0/configure 2012-11-28 09:00:41.094955090 +0000 +++ Python-3.3.0/configure 2012-11-28 09:01:13.033329526 +0000 @@ -5545,11 +5545,6 @@ LDLIBRARY='libpython$(LDVERSION).so' BLDLIBRARY='-L. -lpython$(LDVERSION)' RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} - case $ac_sys_system in - FreeBSD*) - SOVERSION=`echo $SOVERSION|cut -d "." -f 1` - ;; - esac INSTSONAME="$LDLIBRARY".$SOVERSION if test "$with_pydebug" != yes then --- Python-3.3.0/Lib/test/test_threading.py 2012-11-28 09:00:41.292957412 +0000 +++ Python-3.3.0/Lib/test/test_threading.py 2012-11-28 09:01:13.017329339 +0000 @@ -451,7 +451,7 @@ # #12316 and #11870), and fork() from a worker thread is known to trigger # problems with some operating systems (issue #3863): skip problematic tests # on platforms known to behave badly. - platforms_to_skip = ('freebsd4', 'freebsd5', 'freebsd6', 'netbsd5', + platforms_to_skip = ('freebsd4', 'freebsd5', 'freebsd6', 'freebsd7', 'netbsd5', 'os2emx') def _run_and_join(self, script): --- Python-3.3.0/Python/thread_pthread.h 2012-11-28 09:00:41.097955124 +0000 +++ Python-3.3.0/Python/thread_pthread.h 2012-11-28 09:01:13.018329351 +0000 @@ -42,6 +42,10 @@ #endif #endif +#ifdef __FreeBSD__ +#include +#endif + /* The POSIX spec says that implementations supporting the sem_* family of functions must indicate this by defining _POSIX_SEMAPHORES. */ @@ -60,7 +64,6 @@ in default setting. So the process scope is preferred to get enough number of threads to work. */ #ifdef __FreeBSD__ -#include #if __FreeBSD_version >= 500000 && __FreeBSD_version < 504101 #undef PTHREAD_SYSTEM_SCHED_SUPPORTED #endif @@ -186,6 +189,9 @@ { pthread_t th; int status; +#ifdef __FreeBSD__ + sigset_t set, oset; +#endif #if defined(THREAD_STACK_SIZE) || defined(PTHREAD_SYSTEM_SCHED_SUPPORTED) pthread_attr_t attrs; #endif @@ -214,7 +220,10 @@ #if defined(PTHREAD_SYSTEM_SCHED_SUPPORTED) pthread_attr_setscope(&attrs, PTHREAD_SCOPE_SYSTEM); #endif - +#ifdef __FreeBSD__ + sigfillset(&set); + SET_THREAD_SIGMASK(SIG_BLOCK, &set, &oset); +#endif status = pthread_create(&th, #if defined(THREAD_STACK_SIZE) || defined(PTHREAD_SYSTEM_SCHED_SUPPORTED) &attrs, @@ -225,6 +234,9 @@ (void *)arg ); +#ifdef __FreeBSD__ + SET_THREAD_SIGMASK(SIG_SETMASK, &oset, NULL); +#endif #if defined(THREAD_STACK_SIZE) || defined(PTHREAD_SYSTEM_SCHED_SUPPORTED) pthread_attr_destroy(&attrs); #endif o-24.04.3'>distro/collabora/co-24.04.3 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2018-01-08uitest: add a shared helper method for selecting textMarkus Mohrhard
2018-01-08uitest: add demo showing how to select text in EditMarkus Mohrhard
2017-02-18use special method to close dialog through button clickMarkus Mohrhard
2017-02-18uitest: use the correct method to close a dialog through a buttonMarkus Mohrhard
2016-12-24uitest: write a helper method for selecting based on positionMarkus Mohrhard
2016-12-24uitest: add a helper method for typing textMarkus Mohrhard
2016-10-26normalize existing emacs/vim mode-lines in python filesMichael Stahl
2016-10-11pathlib is only in python 3.4+Markus Mohrhard
2016-09-29add missing test filesMarkus Mohrhard
2016-07-17uitest: add demo showing how to select active frameMarkus Mohrhard
2016-07-17uitest: don't hard code my path in testMarkus Mohrhard
2016-07-17uitest: add demo for handling two filesMarkus Mohrhard
2016-07-13uitest: all files moved to the new directory layoutMarkus Mohrhard
2016-07-13uitest: move more parts to the new directory structureMarkus Mohrhard
2016-07-13uitest: remove the imports for pyuno and timeMarkus Mohrhard
2016-07-13uitest: move more code into the new directory layoutMarkus Mohrhard
2016-06-26uitest: add a way to have sleeps in some test runsMarkus Mohrhard
2016-06-26uitest: move for files into the new directory layoutMarkus Mohrhard
2016-06-26uitest: bring some order into the file messMarkus Mohrhard
2016-06-25uitest: add special char widget demoMarkus Mohrhard
2016-06-22uitest: remove sleeps from demo ui partsMarkus Mohrhard
2016-06-22uitest: move the demo ui tests to the new unittest approachMarkus Mohrhard
2016-06-22uitest: add treelist demoMarkus Mohrhard
2016-06-22uitest: add tabcontrol demoMarkus Mohrhard
2016-06-20uitest: add demo for spinfieldMarkus Mohrhard
2016-06-18uitest: add the radiobutton demoMarkus Mohrhard
2016-06-18uitest: close all the documents in the testsMarkus Mohrhard
2016-06-18uitest: add the ui demo testsMarkus Mohrhard
2016-06-18uitest: move code from calc_demo to normal demo for gridwinMarkus Mohrhard
2016-06-18uitest: add close_doc to the demosMarkus Mohrhard
2016-06-18uitest: add demo for tabdialog handlingMarkus Mohrhard
2016-06-18uitest: move uitest python part from dev-toolsMarkus Mohrhard