Log message:
SECURITY update to glib2-2.60.4.
CVE-2019-12450: file_copy_fallback in gio/gfile.c does not properly restrict
file permissions while a copy operation is in progress. Instead, default
permissions are used.

Log message:
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@

Log message:
bump all the py3 things, _SYSTEM_VERSION didn't quite work out how
we expected and it's easier|safer to do it this way than fiddle with
pkg_add now. thanks aja for update tests with a quick bulk.

Log message:
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@

Log message:
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)

Log message:
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.

Log message:
Re-add @tag at the top (next to define-tag).
This way the associated command will be run on update (at-end) and at
delete time (at the time it is encountered in the PLIST).
discussed wth espie@

Log message:
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@

Log message:
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@

Log message:
Prevent a use-after-free resulting in a crash of all apps depending
on glib/GIO mostly at "pkg_add -u" time.
You can now run "pkg_add -u" inside GNOME 3 without any crash.
Diff already submitted upstream.
ok ajacoutot@

Log message:
"Everything is a Freaking GLib/GTK+ problem"
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@

Log message:
Stop patching for /var/lib/dbus -> /var/db/dbus; nowadays, most apps look
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.

Log message:
add a workaround patch to make gmodule dlclose a noop
for now, this unbreaks (at least) webkit based browsers like surf and vimb
issue reported to upstream in bug #746536
hints and debug pointers from sthen@ czarkoff@ and guenther@
ok ajacoutot@

Log message:
zap stray apostrophe in DESCR, ok ajacoutot@
(also forces an update, I had some weird issues with firefox hanging after
a snapshot update which seemed to go away after forcing this to be updated).

Log message:
Summer cleaning:
* use MODPY_ADJ_FILES
* use REGRESS_FLAGS instead of 4 patches...
* use post-install to remove files we don't ship, 2 less patches
* install gtester-report(1) -- it's a python script but we do not
enforce a run dependency on python

Log message:
Sanitize some @unexec/@extraunexec calls to rm: move them up in the
PLIST and remove remove everything under the @sample'd directory instead
of the directory itself to prevent a warning from pkg_delete(1) trying
to remove a non existing directory and to help preventing left-over
files and directories.

Log message:
Workaround the fact that we cannot pass SCM_CREDS over unix sockets:
implement the "intended" SCM_CREDS stack as if we had support for that
in the kernel (by-pass it almost completely).
send/recv a single null byte without creds, but on recv, just do a
getsockopt(SO_PEERCRED) and return that as if it coming from the cmsg.
This works as long as creds are not retreived from an fd which has
already been handed over to a different process via SCM_RIGHTS. It will
probably not be enough in the future but we'll see then.
all this work done by eric@ (thanks!) and tested by myself
Enable support for g_credential*
Fix a couple of warnings.
ok eric@ jasper@

Log message:
- fix build on a clean system:
we set MODPY_BUILDDEP=No, whilst providing PYTHON via CONFIGURE_ENV. this
lead configure to believe there actually was a python present on the system.
which wasn't, so set MODPY_BUILDDEP=Yes and adjust REGRESS_DEPENDS accordingly
ok aja@ landry@

Log message:
*** HEADS UP!
Major update to glib2-2.26.0.
This starts a flood commit of several big updates (gtk+2 and GNOME 2.32).
Please note that there will be some WANTLIB/DEPENDS breakage probably,
this went into several bulks but it's impossible to catch everything.
Any gtk+2/glib2 related build failures, please talk to me or jasper@
The ports tree is expected to be in a unconsistent state for a couple of
days to give us time to fix everything we didn't spot or any runtime
issue with the latest GNOME.
We do this now so that we have packages with all the latest major bumped
libraries at p2k10.
Thanks to landry@ and his zomg!cluster for the bulks and reports.
ok jasper@

Log message:
Welcome the new gio-querymodules "goo".
GIO Reference Manual:
gio-querymodules creates a giomodule.cache listing the implemented
extension points for each module that has been found. It is used by GIO
at runtime to avoid opening all modules just to find out which extension
points they are implementing.

Log message:
Major update to glib2-2.24.0.
Glib now enforces threads requirement. As a result, this commit will
break p5-Glib2 (as our perl is not threaded).
Decision was taken after a chat with naddy@ and jasper@ as patching our
current glib2 like hell to cope with newer packages requirements is
clearly not a good solution.
naddy is ok with this move.

Log message:
Import the g_desktop_app_info_get_filename() function from upstream.
This is required by newer GTK. We cannot just update Glib because it now
requires threads which will break p5-Glib2 dependent apps as our perl is
not threaded... solution to this is rthreads or ... <insert solution
here and send it to aja@>. Yes this means we are stuck with this version
for now.

Log message:
Major upgrade to glib 2.18.2.
It's the perfect timing to slap it in now during p2k8, and it paves the way
for the incoming gtk 2.14.4 upgrade.
Tested by bernd@ in a mulk muild.
ok ajacoutot@ bernd@ 'go ahead' jasper@

Log message:
remove bogus patch. atof("Infinity") actually produces zero, and
then no wonder the patch removes further regression tests...
this is not needed now that that archs have proper INFINITY and NAN
definitions
ok phessler@

Log message:
Update to 2.4.8.
More importantly, pull out the NetBSD diff that dealt with
*BSDesque dlopen issues and, now that we have a working
RTLD_DEFAULT, go with the FreeBSD hack^H^H^H^H method which works
better.

Log message:
For the 'trio' varargs functions, don't pass a reference to a va_list
argument to the level below; it's not portable. Use G_VA_COPY to
create a new copy, and pass a reference to that instead.
From: NetBSD

Log message:
Make glib2 step up and take ownership of *all* the directories it creates,
to include the locale directories, gtk-doc stuff, aclocal and pkgconfig.
With the new pkg-* tools, special casing these is no longer necessary.
Note: other ports that do not recursively depend on glib2 and have not
yet been similarly updated will cause warnings when glib2 is deleted if
they have files in any of the newly owned directories. This is expected,
those ports need to catch up :).