summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* autogen: add default patch prefixHEADmasterMihail Konev2022-07-241-0/+3
| | | | | Signed-off-by: Mihail Konev <k.mvc@ya.ru> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer2022-07-241-1/+1
| | | | | | | | Syncs the invocation of configure with the one from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* gitlab CI: add a basic build testAlan Coopersmith2022-07-201-0/+98
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Build xz tarballs instead of bzip2Alan Coopersmith2022-07-201-1/+1
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* pthread-stubs.pc: remove no longer used variablesEric Engestrom2017-09-101-4/+0
| | | | | | | | | | These are unused since 8340ebd656c7e1a5b6d3 ("Rework the pthread-stub design") Cc: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Uli Schlachter <psychon@znc.in>
* Release libpthread-stubs 0.40.4Uli Schlachter2017-03-141-1/+1
|
* Remove no longer used list.m4Emil Velikov2017-03-021-15/+0
| | | | | | Cc: Uli Schlachter <psychon@znc.in> Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Uli Schlachter <psychon@znc.in>
* configure: drop various AC_macrosEmil Velikov2017-03-011-5/+0
| | | | | | | | | As of last commit we no longer create any binaries, thus config.h, CC and libtool are no longer required. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Acked-by: Eric Anholt <eric@anholt.net> Signed-off-by: Uli Schlachter <psychon@znc.in>
* Rework the pthread-stub designEmil Velikov2017-03-015-141/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current design handles the most common use-cases, although it causes breakage on others (when a pthreads liked library is dlopened). Refer to the README for further details. The new design, makes pthread-stubs a "meta" package which _never_ provides a library but only a .pc file. pthread-stubs checks if the run-time (libc or otherwise) expose lightweight pthread symbols to link against and defaults to a full blown pthread. This way projects can use the Cflags/Libs without having to know the details. Alternatively they can directly link against the pthread implementation, although that might bring unwarranted overhead. v2: - Remove m4 macro, always use -pthread and document why. - Sort the symbol list, document how it's derived what is allowed and what not. - Rework the README to start from current state of afairs to past ones. - Document platforms that are 'safe' and ones that are not. v3: - Add SVN note about -pthread + Cygwin/mingw/mingw-w64 Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Acked-by: Eric Anholt <eric@anholt.net> Signed-off-by: Uli Schlachter <psychon@znc.in>
* Revert "list.m4: Add some new pthread symbols"Emil Velikov2017-03-011-3/+0
| | | | | | | | | | | | | | | | | | | | This reverts commit fa6db2f9c018c54a47e94c0175450303d700aa92. This commit causes pthread-stubs to provide a library (with stubs) for most platforms. This by itself is the goal of the project, although unveiled severe design issue with the project as a whole. That will be covered and addressed in a later commit. In other words: pthread-stubs won't provide/guarantee these symbols any more. That is perfectly fine since a) there has been no pthread-stubs release that provides the API, and b) these should be provided by a full blown pthreads implementation. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98048 Acked-by: Eric Anholt <eric@anholt.net> Signed-off-by: Uli Schlachter <psychon@znc.in>
* autogen.sh: quote path variablesEmil Velikov2017-03-011-3/+3
| | | | | | | | | If the pathname has space things will explode in various ways. Avoid that by adding quotation marks where applicable. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Acked-by: Eric Anholt <eric@anholt.net> Signed-off-by: Uli Schlachter <psychon@znc.in>
* list.m4: Add some new pthread symbolsBen Widawsky2016-05-291-0/+3
| | | | | | | | | | | | | | Lots of symbols are still missing, but this is required to build mesa as a result of using pthread-stubs with the latest mesa, specifically: commit 8aeb6d768b4285f600d09f38d0b406adf46c251d Author: Rob Herring <robh@kernel.org> Date: Tue May 3 21:02:47 2016 -0500 gbm: Add map/unmap functions Cc: Rob Clark <robclark@freedesktop.org> Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Signed-off-by: Uli Schlachter <psychon@znc.in>
* autogen.sh: Implement GNOME Build APIbaserock/morphColin Walters2013-01-161-1/+3
| | | | | | http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Adam Jackson <ajax@redhat.com>
* pthread_equal(): do not assume pthread_t is a comparable typeRémi Denis-Courmont2010-12-231-1/+1
| | | | | | | | | Anyway, the return value from pthread_self() being the only legal pthread_t value in the case of stubs, all threads are one and the same. In other words, pthread_equal() is always true. Reviewed-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Peter Harris <pharris@opentext.com>
* pthread_self(): do not assume pthread_t and int are compatibleRémi Denis-Courmont2010-12-232-1/+12
| | | | | | | | | POSIX does not warrant much about pthread_t. It is not necessarily the same convertible to int as far as the calling conventions are concerned. Reviewed-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Peter Harris <pharris@opentext.com>
* Fix `distcheck' targetJulien Danjou2010-06-221-2/+4
| | | | Signed-off-by: Julien Danjou <julien@danjou.info>
* Generate stubs.c via MakefileJulien Danjou2010-05-052-2/+3
| | | | | Signed-off-by: Julien Danjou <julien@danjou.info> Reviewed-by: Jamey Sharp <jamey@minilop.net>
* Generate stubs.c at autogen time from a template file.M Joonas Pihlaja2010-05-056-194/+107
| | | | | | | | It's easier to add a line to a list of functions in a template file than copy-pasting five lines of template from other entries and editing configure.ac. Reviewed-by: Jamey Sharp <jamey@minilop.net>
* fix pthread_exit protoSamuel Thibault2009-11-061-1/+1
| | | | Signed-off-by: Julien Danjou <julien@danjou.info>
* Release libpthread-stubs 0.30.3Julien Danjou2009-10-141-1/+1
| | | | Signed-off-by: Julien Danjou <julien@danjou.info>
* Add additional pthread_* stubs and abort() on pthread_cond_*wait.Samuel Thibault2009-10-102-4/+55
| | | | | | | | | | | | | | | | | | | | Here is a patch that adds only pthread_condattr_init/destroy, pthread_cond_timedwait, pthread_exit, and makes both cond_*wait abort instead of just returning 0. Jamey Sharp gave rationale for cond_wait aborting: > In hindsight, I'm concerned about the fact that we provide > pthread_cond_wait as a stub returning 0. If it's ever called in a > single-threaded application, that function should probably call abort(). > The real implementation would be guaranteed to hang in that > circumstance, after all. In XCB, we need this to be available as a stub, > but I can prove that it won't be called unless there are really multiple > threads. Further discussion leading to this patch was in the thread here: http://lists.freedesktop.org/archives/xcb/2009-October/005110.html Signed-off-by: Jamey Sharp <jamey@minilop.net>
* Revert "Provide sem_* functions"Julien Danjou2009-10-092-104/+1
| | | | | | This reverts commit 3d8dfe9a9ad0a22bdcec555bd3d0d9b5950a6dab. Signed-off-by: Julien Danjou <julien@danjou.info>
* Release libpthread-stubs 0.20.2Julien Danjou2009-09-231-1/+1
| | | | Signed-off-by: Julien Danjou <julien@danjou.info>
* Provide sem_* functionsSamuel Thibault2009-08-202-1/+104
| | | | | | | Some applications, instead of using pthread_mutex_t, use anonymous semaphores (sem_init) for locking. Signed-off-by: Julien Danjou <julien@danjou.info>
* Update autogen.sh to one that does objdir != srcdirMatthias Hopf2007-04-111-1/+10
|
* Add README0.1Josh Triplett2006-11-231-0/+9
|
* Quote argument of test in AM_CONDITIONAL.Josh Triplett2006-11-211-1/+1
|
* Library that provides pthread stubs that are missing from your platform libc.Jamey Sharp2006-11-217-0/+251