glib2 checks for __sync_bool_compare_and_swap, and requires
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 to be defined if the function is
available... except with special cases like Linux armv5. base gcc
implements __sync_bool_compare_and_swap on many of our archs but doesn't
provide __GCC_HAVE_* macros, so glib2 is confused. Extend the
existing workaround to unbreak.
ok ajacoutot@ (maintainer)
The old autoconf build has the following additional check after
determining a valid type for gsize, which is not present in meson.build.:
dnl If int/long are the same size, we see which one produces
dnl warnings when used in the location as size_t. (This matters
dnl on AIX with xlc)
dnl
AS_IF([test $ac_cv_sizeof_size_t = $ac_cv_sizeof_int &&
test $ac_cv_sizeof_size_t = $ac_cv_sizeof_long],
It matters on OpenBSD too. Since my meson-fu is lacking, the patch
simply reorders the if statement to put the one we need earlier.
Should prevent the timeout to refill the list of depenencies while
another thread is freeing it. Should help with segfault reported
on bugs@.
While here sync the kqueue rewrite with upstream.
ok ajacoutot@
- Stop using a socketpair(2) to communicate between two threads of
the same process.
- Call kevent() in non-blocking mode such that it can be integrated
in the poller thread of glib.
- Use glib's abstraction to poll(2) the kqueue instead of adding it
to itself Oo.
- Remove the secondary thread, the associated global hash table, its
broken locking and a lot of abstraction.
- Properly refcount sources.
/!\ This backend is still not generating the events Glib is expecting.
Please report any problem such that this can be pushed upstream.
ok ajacoutot@
Compile with debug symbols and don't strip on install(1). This will ease
debugging all the many things that depend on and crash within these libs. We'll
see how this works out in the long run.
req. by mpi@
into /etc/machine-id *before* looking into /var/lib/dbus/machine-id and for
the few that don't patch them to look directly there.
Thanks sthen@ for the source ports seach.