260 Commits

Author SHA1 Message Date
ajacoutot
eb8c33eebc Update to glib2-2.66.2. 2020-11-01 08:21:03 +00:00
ajacoutot
5f3cba4152 Update to glib2-2.64.5. 2020-08-18 12:31:48 +00:00
naddy
827cc9bf4a Upstream commit: Define G_GNUC_FALLTHROUGH for more compilers
This defines G_GNUC_FALLTHROUGH to expand to __attribute__((fallthrough))
on LLVM 10, so it can silence warnings from -Wimplicit-fallthrough.
ok ajacoutot@
2020-08-01 19:06:20 +00:00
ajacoutot
3ad9d63b5a Update to glib2-2.64.3. 2020-05-20 13:17:35 +00:00
ajacoutot
66ee3674df Update to glib2-2.64.2. 2020-05-14 14:50:14 +00:00
ajacoutot
966a3c36ba Update to glib2-2.62.5. 2020-02-18 12:24:00 +00:00
ajacoutot
66569263ed Update to glib2-2.62.4. 2019-12-19 17:42:13 +00:00
ajacoutot
ae0ccdd86d Update to glib2-2.62.3. 2019-11-19 21:06:48 +00:00
ajacoutot
4f53553716 Add NOTE_REVOKE to the list of the monitoring events (from upstream). 2019-11-11 19:01:06 +00:00
ajacoutot
baf2cdfbef Merge the "gspawn: Optimize fd closing on AIX and BSDs" commit from
upstream so that we have time to test during the release cycle.
2019-11-10 19:01:49 +00:00
landry
07d25883c0 prevent 'vfprintf %s NULL in "%s: Resetting desktop app info dirs from %s
to %s"' msgs in syslog seen when starting some gtk apps.

extracted from bffe058550

ok ajacoutot@
2019-11-07 14:26:21 +00:00
ajacoutot
9e861df546 Merged upstream. 2019-11-05 18:21:59 +00:00
ajacoutot
35d9fdc772 Merge size_t check from upstream; no functional change intended. 2019-11-03 11:39:59 +00:00
ajacoutot
e717da9796 gtimezone: Cache UTC and local TZ indefinitely (from upstream). 2019-11-02 11:07:42 +00:00
ajacoutot
fc780a97ee Update to glib2-2.62.2. 2019-11-01 19:33:14 +00:00
ajacoutot
6a479e33b2 Merged upstream. 2019-07-19 10:08:12 +00:00
ajacoutot
15b005053f Add link to PR. 2019-07-14 17:26:48 +00:00
ajacoutot
e49cfb7988 Tweak comment a bit. 2019-07-14 16:58:25 +00:00
robert
dfe82af9db remove the check for non-existent XDG directories as
they are going to be moved to gtk+3

ok ajacoutot@
2019-05-13 20:24:14 +00:00
jca
48f5813cb8 Tweak types detection, make gint64 and int64_t match on 64 bits base-gcc archs.
Fixes www/webkitgtk4 on sparc64.  Help and ok ajacoutot@
2019-05-12 22:03:53 +00:00
ajacoutot
e0ec8c8ffb Add link to merge requests. 2019-05-12 16:24:04 +00:00
ajacoutot
fc37276c79 Link to issue URL. 2019-05-12 04:04:12 +00:00
robert
a1bd036cbd re-introduce the patch which was removed by the previous update so that
XDG directories are actually checked if they exist before adding them to
the list which is important for programs using unveil(2).

ok ajacoutot@
2019-05-01 12:09:11 +00:00
ajacoutot
42b40502de Merged upstream. 2019-04-30 07:15:06 +00:00
ajacoutot
0a4d1614cc Update to glib2-2.60.1.
First step in updating GNOME to version 3.32 (which should happen during
g2k19).
2019-04-28 06:28:17 +00:00
ajacoutot
12a4aa33ad Merged upstream. 2019-04-04 09:28:30 +00:00
ajacoutot
176e1366b3 Remove g_get_system_data_dirs patch chunk. update-desktop-database is now
properly pledged and unveiled.
2019-03-27 12:54:47 +00:00
stsp
35b0796e29 Update my glib2 use-after-free patch to a version which passes
upstream's regression tests.
ok ajacoutot@
2019-03-25 09:18:54 +00:00
stsp
5665f58009 Fix a use-after-free in glib2 which got triggered by gnome-session-binary.
ok ajacoutot@
2019-03-23 08:51:15 +00:00
ajacoutot
7dc78ba2f9 Tweak comment. 2019-03-10 09:00:29 +00:00
robert
ecae7c4df4 Help programs using unveil(2) by fixing and modyfing the code of
glib by doing the following:

- Modify the g_mkdir_with_parents() function so that it will try to
  create the specified path directly and if g_mkdir() fails, it will
  fall back to walking the path one by one.

- In case of walking the path one by one, ignore ENOENT for all path
  elements except for the last one, because g_mkdir_with_parents()
  will fail with programs using unveil(2) (with statlie removed).
  Ignoring ENOENT is completely fine because we really only care about
  the last element of the path and this modification will also have the
  benefit of avoiding useless stat calls

- My initial tests show that by just firing up a simple file dialog
  this modification saves an average of 110 system calls, now imagine
  running GNOME or Chrome with that. Each and every program using glib's
  g_mkdir_with_parents() before opening the needed files (most do this)
  will benefit from this.

- Check if the XDG directories actually exist before adding them to the
  list used by file dialogs.
  This is also useful if you are not running a complete desktop environment
  and you simply do not have these directories.

ok ajacoutot@
2019-02-19 14:53:17 +00:00
ajacoutot
85a2ea0f9e NULLify callback in the call to g_unix_mount_unmount when ejecting to
prevent a bus error.
2019-02-10 14:42:38 +00:00
ajacoutot
4d14f23aa6 Fix eject(1) support. 2019-02-10 13:02:46 +00:00
ajacoutot
f75f8368d7 Rework the gunixmount.c patch and add more checks. 2019-01-23 10:06:21 +00:00
ajacoutot
a88625b0b2 sysutils/toad is coming back, teach glib to use pkexec(1). 2019-01-23 03:37:09 +00:00
jca
b445abf2ab Unbreak on gcc archs after the update to 2.58.2
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)
2019-01-10 13:36:26 +00:00
sthen
5ddfd9e61b unbreak some glib2 users on 32-bit arches, ok aja@
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.
2019-01-05 22:00:20 +00:00
ajacoutot
f2f94c039a Update to glib2-2.58.2.
This is the first step towards the GNOME 3.30 update which will happen
this month.
This and subsequent updates have been tested in an amd64 bulk.
2019-01-01 11:32:15 +00:00
jasper
9c62776c59 /usr/share is not a valid data directory on OpenBSD for xdg/glib purposes
so remove it from the list returned by g_get_system_data_dirs().

ok aja@
2018-09-24 20:00:59 +00:00
ajacoutot
706d1c70f3 Update to glib2-2.56.3. 2018-09-22 08:39:31 +00:00
ajacoutot
8aab46a20b We're using autoreconf(1) etc. so we must patch Makefile.am, not .in. 2018-08-23 07:16:36 +00:00
ajacoutot
a5faaf5992 Update to glib2-2.56.2. 2018-08-17 08:03:57 +00:00
ajacoutot
6d59cf24f8 Fix issues number. 2018-08-09 07:29:38 +00:00
ajacoutot
ddd7fdcb77 Make sure gint64 matches int64_t so that C++ is happy
with and OK espie@
2018-07-11 12:03:22 +00:00
ajacoutot
966f798401 Committed upstream. 2018-04-23 19:51:21 +00:00
ajacoutot
78f5a5025d Update to glib2-2.56.1.
First step of the GNOME 3.28.2 update work that will happen at p2k18.
2018-04-22 13:27:25 +00:00
mpi
0a4cc523f3 Reorder operations in _kqsub_cancel() to prevent races.
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@
2018-04-12 10:03:17 +00:00
mpi
d7944fdcc9 Sync with latest bugzilla submission. 2018-02-20 16:59:19 +00:00
mpi
b45078bdb2 GIO kqueue(2) backend redesign.
- 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@
2018-01-23 10:43:42 +00:00
ajacoutot
0a26bdfd51 Update to glib2-2.54.3. 2018-01-09 12:31:54 +00:00