Path to this page:
./
devel/glib2,
Some useful routines for C programming (glib2)
Branch: CURRENT,
Version: 2.88.1,
Package name: glib2-2.88.1,
Maintainer: prlw1GLib provides the core application building blocks for libraries
and applications written in C. It provides the core object system
used in GNOME, the main loop implementation, and a large set of
utility functions for strings and common data structures.
This package contains GLib version 2.
DEINSTALL [+/-]#!/bin/sh
#
# $NetBSD: DEINSTALL,v 1.1 2011/02/20 17:40:54 jmmv Exp $
#
# Forcibly remove any auto-generated caches. The cache-regeneration tools
# should be doing this automatically when there are no more files in the
# directories they scan, but they don't. And, anyway, we need to do this
# if we want in-place updates of glib2 to work correctly.
#
GIO_MODULES_DIR="@GIO_MODULES_DIR@"
GLIB_SCHEMAS_DIR="@GLIB_SCHEMAS_DIR@"
case ${STAGE} in
DEINSTALL)
${RM} -f "${GIO_MODULES_DIR}/giomodule.cache"
${RM} -f "${GLIB_SCHEMAS_DIR}/gschemas.compiled"
;;
esac
Required to run:[
devel/libffi] [
devel/pcre]
Required to build:[
pkgtools/cwrappers] [
lang/python37] [
devel/meson]
Master sites:
Filesize: 5653.609 KB
Version history: (Expand)
- (2026-05-04) Updated to version: glib2-2.88.1
- (2026-04-30) Updated to version: glib2-2.88.0nb1
- (2026-04-15) Updated to version: glib2-2.88.0
- (2026-03-15) Updated to version: glib2-2.86.4nb1
- (2026-02-16) Updated to version: glib2-2.86.4
- (2026-01-05) Updated to version: glib2-2.86.3
CVS history: (Expand)
| 2026-05-15 19:01:08 by Thomas Klausner | Files touched by this commit (139) |
Log message:
*: switch to glib2-introspection
The gobject-introspection package installed _some_ of the introspection
files needed for glib2, but not all - some of them are built from the glib2
sources. glib2-introspection now contains all glib2-related introspection
files.
Add a tool dependency on the new package where needed.
Remove gobject-introspection from buildlink3.mk files - this is usually
a tool and should not be forwarded via buildlink3.
Some cleanups/fixes for -current while here.
|
2026-05-04 11:01:44 by Adam Ciarcinski | Files touched by this commit (5) |  |
Log message:
glib2 glib2-tools gdbus-codegen: updated to 2.88.1
Overview of changes in GLib 2.88.1, 2026-05-02
* Fix miscompilation with GCC 16 due to GLib’s use of the wrong function
attribute (!5145, work by Sam James)
* Fix flag confusion security issue when using `GRegex` with `G_REGEX_RAW` which
can result in unbounded out-of-bounds heap reads off the start of a regex
input string
* Fix various minor (low severity) security issues, typically one-to-five-byte
out-of-bounds reads or ones relying on
very specific (and unlikely) API calls or ones relying on
discouraged P2P D-Bus configurations (work by linhlhq)
* Bugs fixed:
- Buffer Over-read on GLib through glib/gvariant-
serialiser.c:1253 via gvs_tuple_is_normal() (Philip Withnall)
- OOB Read on GLib through
glib/gmarkup.c:g_markup_escape_text() via
glib/gmarkup.c:append_escaped_text() (Philip Withnall)
- OOB Read on GLib through
glib/gdatetime.c:g_date_time_get_ymd via invalid `GDateTime` (Philip
Withnall)
- Buffer Over-read on GLib's g_regex_replace()
through glib/gregex.c:string_append() via g_utf8_next_char() (Philip
Withnall)
- Buffer Over-read on GLib through
glib/gregex.c:g_regex_split_full() via glib/gutf8.c:g_utf8_prev_char()
(Philip Withnall)
- Buffer Over-read on GLib through glib/giochannel.c
via "g_io_channel_read_line_backend" (Philip Withnall)
- Off-by-one Error on GLib through glib/gkeyfile.c
via "g_key_file_get_locale_string_list" (Philip Withnall)
- Path Traversal on GLib DBus through
glib/gio/gdbusauthmechanismsha1.c via keyring_lookup_entry,
mechanism_client_data_receive (COOKIE_SHA1 Client Authentication) leads to
Arbitrary File Read (Philip Withnall)
- Integer overflow in g_dbus_message_bytes_needed() bypasses 128 MiB
size check (pre-auth DoS on P2P connections) (Philip Withnall)
- Update Serbian translation
- docs: Expand docs for GLIB_VERSION_MAX_ALLOWED
- gmarkup: fix type of length parameter of text_validate()
- Update Russian translation
- Update Polish translation
- docs: Remove myself from CODEOWNERS
- Update Slovak translation
- Backport various recent security fixes to GVariant, GMarkup, GDateTime
and GRegex to glib-2-88
- Backport !5145 “gvarianttype: use pure attribute, not inappropriate
const” to glib-2-88
- Update Slovak translation
- Update German translation
- Update Slovak translation
- Update Slovak translation
- Update Persian translation
- Backport !5170 !5171 !5172 !5173 Various security fixes to glib-2-88
* Translation updates:
- German (Christian Kirbach)
- Persian (Danial Behzadi)
- Polish (Victoria Niedzielska)
- Russian (Artur S0)
- Serbian (Марко Костић)
- Slovak (Jose Riha)
|
| 2026-05-03 22:57:24 by Amitai Schleier | Files touched by this commit (2) |
Log message:
glib2: allow pre-10.13 macOS to configure.
|
| 2026-04-30 18:23:47 by Izumi Tsutsui | Files touched by this commit (3) |
Log message:
glib2: avoid false g_module_symbol() failures on NetBSD
On NetBSD, do not turn a non-NULL dlsym() result into a
g_module_symbol() failure only because dlerror() has a non-NULL value.
POSIX specifies that it is implementation-defined whether dlerror()
is thread-safe:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/dlerror.html
as already noted in gmodule-dl.c comments.
On NetBSD, dlerror(3) state is process-global and not thread-safe,
so a non-NULL dlerror() value is not a reliable reason to reject
a non-NULL dlsym() result. Marking dlerror() as not thread-safe
in GLib by DLERROR_IS_THREADSAFE=0 would only serialize GLib's
own dynamic linker calls and would not protect against dynamic
linker calls made outside GLib.
POSIX also specifies that dlsym() returns a null pointer if the
symbol cannot be found. However, glibc documents cases where
a successful dlsym() lookup may return NULL:
https://man7.org/linux/man-pages/man3/dlsym.3.html
so keep the existing dlerror()-based check there.
This fixes intermittent startup failures in packages using
GObject-Introspection, observed with net/mikutter.
Bump PKGREVISION.
|
| 2026-04-24 10:02:58 by matthew green | Files touched by this commit (2) |
Log message:
fix build on netbsd-9 which doesn't have F_GETPATH.
use the same method eg, Hurd does (just fail) instead of not compiling.
should fix PR#60203
|
| 2026-04-15 10:33:23 by Adam Ciarcinski | Files touched by this commit (1) |
Log message:
glib2: add new patch
|
2026-04-15 10:33:00 by Adam Ciarcinski | Files touched by this commit (6) |  |
Log message:
glib2 glib2-tools gdbus-codegen: updated to 2.88.0
Overview of changes in GLib 2.88.0, 2026-03-16
* Bugs fixed:
- gslice: Factor out a size helper macro and stop using MAX in a public
header
|
| 2026-03-15 17:37:42 by Tobias Nygren | Files touched by this commit (3) |
Log message:
glib2: copy over gobject-introspection's patch-girepository_gitypelib.c
Needed to make library loading for pkgsrc libraries work correctly
on macOS after py-gobject switched to girepository-2.0.
|