head 1.26; access; symbols pkgsrc-2026Q1:1.25.0.8 pkgsrc-2026Q1-base:1.25 pkgsrc-2025Q4:1.25.0.6 pkgsrc-2025Q4-base:1.25 pkgsrc-2025Q3:1.25.0.4 pkgsrc-2025Q3-base:1.25 pkgsrc-2025Q2:1.25.0.2 pkgsrc-2025Q2-base:1.25 pkgsrc-2025Q1:1.23.0.4 pkgsrc-2025Q1-base:1.23 pkgsrc-2024Q4:1.23.0.2 pkgsrc-2024Q4-base:1.23 pkgsrc-2024Q3:1.22.0.2 pkgsrc-2024Q3-base:1.22 pkgsrc-2024Q2:1.21.0.2 pkgsrc-2024Q2-base:1.21 pkgsrc-2024Q1:1.20.0.4 pkgsrc-2024Q1-base:1.20 pkgsrc-2023Q4:1.20.0.2 pkgsrc-2023Q4-base:1.20 pkgsrc-2023Q3:1.18.0.8 pkgsrc-2023Q3-base:1.18 pkgsrc-2023Q2:1.18.0.6 pkgsrc-2023Q2-base:1.18 pkgsrc-2023Q1:1.18.0.4 pkgsrc-2023Q1-base:1.18 pkgsrc-2022Q4:1.18.0.2 pkgsrc-2022Q4-base:1.18 pkgsrc-2022Q3:1.17.0.2 pkgsrc-2022Q3-base:1.17 pkgsrc-2022Q2:1.16.0.6 pkgsrc-2022Q2-base:1.16 pkgsrc-2022Q1:1.16.0.4 pkgsrc-2022Q1-base:1.16 pkgsrc-2021Q4:1.16.0.2 pkgsrc-2021Q4-base:1.16 pkgsrc-2021Q3:1.14.0.4 pkgsrc-2021Q3-base:1.14 pkgsrc-2021Q2:1.14.0.2 pkgsrc-2021Q2-base:1.14 pkgsrc-2021Q1:1.13.0.2 pkgsrc-2021Q1-base:1.13 pkgsrc-2020Q4:1.11.0.2 pkgsrc-2020Q4-base:1.11 pkgsrc-2020Q3:1.10.0.6 pkgsrc-2020Q3-base:1.10 pkgsrc-2020Q2:1.10.0.4 pkgsrc-2020Q2-base:1.10 pkgsrc-2020Q1:1.10.0.2 pkgsrc-2020Q1-base:1.10 pkgsrc-2019Q4:1.8.0.4 pkgsrc-2019Q4-base:1.8 pkgsrc-2019Q3:1.5.0.4 pkgsrc-2019Q3-base:1.5 pkgsrc-2019Q2:1.5.0.2 pkgsrc-2019Q2-base:1.5; locks; strict; comment @# @; 1.26 date 2026.05.03.20.57.24; author schmonz; state Exp; branches; next 1.25; commitid ifqs27Xmn2oszpEG; 1.25 date 2025.06.03.11.05.06; author jperkin; state Exp; branches; next 1.24; commitid 2NoXa7JTTPpP1rXF; 1.24 date 2025.05.27.19.07.43; author adam; state Exp; branches; next 1.23; commitid mDNuBHTJXhG2VzWF; 1.23 date 2024.10.22.09.50.39; author adam; state Exp; branches; next 1.22; commitid y0UOkbJtNFsjODuF; 1.22 date 2024.07.26.15.34.43; author wiz; state Exp; branches; next 1.21; commitid EPA1STLowYpKxmjF; 1.21 date 2024.04.09.16.57.18; author wiz; state Exp; branches; next 1.20; commitid 8CZ0tQz3QHywtu5F; 1.20 date 2023.11.03.18.32.32; author otis; state Exp; branches; next 1.19; commitid 6nyXU7RAK6oa5cLE; 1.19 date 2023.11.02.13.17.27; author wiz; state Exp; branches; next 1.18; commitid wm2KoUjDTwoTm2LE; 1.18 date 2022.11.23.10.41.41; author adam; state Exp; branches; next 1.17; commitid MMdyR8AZAu1HyO2E; 1.17 date 2022.07.24.21.24.56; author wiz; state Exp; branches; next 1.16; commitid ej2oKojojez33cND; 1.16 date 2021.10.15.15.04.47; author jperkin; state Exp; branches; next 1.15; commitid 7Y7sSQF7iu1C0VcD; 1.15 date 2021.10.11.10.03.47; author cirnatdan; state Exp; branches; next 1.14; commitid YPWArrk19G1ktncD; 1.14 date 2021.03.30.09.37.51; author cirnatdan; state Exp; branches; next 1.13; commitid Iu8v79Ts7XoSAjNC; 1.13 date 2021.03.23.13.48.27; author adam; state Exp; branches; next 1.12; commitid wMbV28acGEDScrMC; 1.12 date 2021.03.22.06.54.19; author adam; state Exp; branches; next 1.11; commitid tUjnecZxAQqAWgMC; 1.11 date 2020.09.29.10.43.33; author prlw1; state Exp; branches; next 1.10; commitid W1KVlyWIOM0QLVpC; 1.10 date 2020.03.04.15.11.48; author wiz; state Exp; branches; next 1.9; commitid sTPCBO9B8GpI06ZB; 1.9 date 2020.02.07.17.05.14; author prlw1; state Exp; branches; next 1.8; commitid 95zF3fssiRThtLVB; 1.8 date 2019.11.28.18.11.48; author jperkin; state Exp; branches; next 1.7; commitid zezviOVqOLuh7EMB; 1.7 date 2019.11.14.11.40.30; author wiz; state Exp; branches; next 1.6; commitid yaeGuMuyNxfzpOKB; 1.6 date 2019.10.29.09.22.24; author adam; state Exp; branches; next 1.5; commitid CNzsjqKfW3HQ9KIB; 1.5 date 2019.06.26.10.42.50; author prlw1; state Exp; branches; next 1.4; commitid 1MCZ4bZfJzm3CGsB; 1.4 date 2019.06.18.13.05.14; author jperkin; state Exp; branches; next 1.3; commitid B0ilypgLa8ybFFrB; 1.3 date 2019.06.03.23.09.29; author maya; state Exp; branches; next 1.2; commitid k9ZDa5MpoF9JuNpB; 1.2 date 2019.06.03.21.24.04; author maya; state Exp; branches; next 1.1; commitid tSnqUUTVM9CXTMpB; 1.1 date 2019.06.03.09.53.50; author prlw1; state Exp; branches; next ; commitid 8OJahQblymgK5JpB; desc @@ 1.26 log @glib2: allow pre-10.13 macOS to configure. @ text @$NetBSD: patch-meson.build,v 1.25 2025/06/03 11:05:06 jperkin Exp $ - On Darwin, optionally use Cocoa (needed for X11 users). - Don't insist that Python binary is called "python3". (Requires meson >= 0.50.0) - Don't install bash completion scripts. - Tolerate getxattr not existing (smartOS) https://gitlab.gnome.org/GNOME/glib/merge_requests/888 - Check also for sys/ptrace.h header file. - Explicitly avoid epoll on SunOS. --- meson.build.orig 2026-03-16 13:53:50.000000000 +0000 +++ meson.build @@@@ -443,6 +443,7 @@@@ headers = [ 'sys/mount.h', 'sys/param.h', 'sys/prctl.h', + 'sys/ptrace.h', 'sys/resource.h', 'sys/select.h', 'sys/statfs.h', @@@@ -714,7 +715,6 @@@@ functions = [ 'copy_file_range', 'endmntent', 'endservent', - 'epoll_create1', 'faccessat', 'fallocate', 'fchmod', @@@@ -780,6 +780,10 @@@@ functions = [ 'sysctlbyname', ] +if host_system != 'sunos' + functions += ['epoll_create1'] +endif + # _NSGetEnviron is available on iOS too, but its usage gets apps rejected from # the app store since it's considered 'private API' if host_system == 'darwin' @@@@ -1010,13 +1014,6 @@@@ glib_have_cocoa = false if host_system == 'darwin' and subsystem == 'macos' add_languages('objc', native: false, required: true) objcc = meson.get_compiler('objc') - if not objcc.compiles('''#include - #if MAC_OS_X_VERSION_MIN_REQUIRED < 101300 - #error message "GLib requires macOS 10.13 or later." - #endif''', - name : 'macOS 10.13 or later') - error('GLib requires macOS 10.13 or later.') - endif # Mac OS X Carbon support glib_have_carbon = objcc.compiles('''#include @@@@ -1033,7 +1030,7 @@@@ if host_system == 'darwin' and subsystem #error "Detected GNUstep, not Cocoa" #endif''', name : 'Mac OS X Cocoa support') - + glib_have_cocoa = glib_have_cocoa and get_option('use_cocoa') if glib_have_cocoa glib_conf.set('HAVE_COCOA', true) osx_ldflags += ['-Wl,-framework,Foundation', '-Wl,-framework,AppKit'] @@@@ -2402,18 +2399,17 @@@@ if host_system != 'windows' and get_opti # try glibc if cc.has_function('getxattr') and cc.has_header('sys/xattr.h') + glib_conf.set('HAVE_XATTR', 1) glib_conf.set('HAVE_SYS_XATTR_H', 1) glib_conf_prefix = glib_conf_prefix + '#define @@0@@ 1\n'.format('HAVE_SYS_XATTR_H') #failure. try libattr elif cc.has_header_symbol('attr/xattr.h', 'getxattr') + glib_conf.set('HAVE_XATTR', 1) glib_conf.set('HAVE_ATTR_XATTR_H', 1) glib_conf_prefix = glib_conf_prefix + '#define @@0@@ 1\n'.format('HAVE_ATTR_XATTR_H') xattr_dep = [cc.find_library('xattr')] - else - error('No getxattr implementation found in C library or libxattr') endif - glib_conf.set('HAVE_XATTR', 1) if cc.compiles(glib_conf_prefix + ''' #include #ifdef HAVE_SYS_TYPES_H @@@@ -2514,7 +2510,7 @@@@ endif glib_conf.set('HAVE_PROC_SELF_CMDLINE', have_proc_self_cmdline) -python = import('python').find_installation() +python = import('python').find_installation('@@PYTHONBIN@@') # Sets the shebang on script files. This has been changed many times including # using env, the absolute path to the Python executable, and using both python @@@@ -2553,7 +2549,7 @@@@ endif # Determine which user environment-dependent files that we want to install bash = find_program('bash', required : false) -have_bash = bash.found() # For completion scripts +have_bash = false bash_comp_dep = dependency('bash-completion', version: '>=2.0', required: false) have_sh = find_program('sh', required : false).found() # For glib-gettextize have_pkg_config = find_program('pkg-config', required: false).found() @ 1.25 log @glib2: Explicitly avoid epoll/inotify on SunOS. @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.24 2025/05/27 19:07:43 adam Exp $ d17 1 a17 1 --- meson.build.orig 2025-05-20 16:22:25.000000000 +0000 d19 1 a19 1 @@@@ -438,6 +438,7 @@@@ headers = [ d27 1 a27 1 @@@@ -700,7 +701,6 @@@@ functions = [ d35 1 a35 1 @@@@ -764,6 +764,10 @@@@ functions = [ d46 15 a60 1 @@@@ -1010,7 +1014,7 @@@@ if host_system == 'darwin' d69 1 a69 1 @@@@ -2379,18 +2383,17 @@@@ if host_system != 'windows' and get_opti d90 1 a90 1 @@@@ -2491,7 +2494,7 @@@@ endif d99 1 a99 1 @@@@ -2510,7 +2513,7 @@@@ python_test_libraries_built = meson.proj @ 1.24 log @glib2 glib2-tools gdbus-codegen: updated to 2.84.2 Overview of changes in GLib 2.84.2, 2025-05-20 * Bugs fixed: - Backport “gclosure: fix ATOMIC_CHANGE_FIELD to read vint atomically” to glib-2-84 - Backport “Windows: fix wrong typelib path” to glib-2-84 - Backport "gstring: carefully handle gssize parameters" - Backport “Update macOS job for new CI runner” to glib-2-84 - Backport “gdate: Call tzset before localtime_r” to glib-2-84 - Backport -Wsign-conversion fixes for g_get_locale_variants() from to glib-2-84 - Backport “glocalfile: Disable faccessat()-based query_exists on Android” to glib-2-84 Overview of changes in GLib 2.84.1, 2025-04-03 * Fix test failure when building against gobject-introspection ≥1.83.4 * Bugs fixed: - 2.84.0 build failure on Linux: ../gio/gnetworkmonitornetlink.c:47:10: fatal error: netlink/netlink_route.h: No such file or directory (Philip Withnall) - test failure with gobject-introspection 1.83.4: warning: element doc:format from state 3 is unknown, ignoring (Philip Withnall) - gio/trash does not handle special characters well - `g_cancellable_connect()` documentation incorrect (Marco Trevisan (Treviño)) - g_cancellable_connect(): is it safe to unref cancellable from callback? (Marco Trevisan (Treviño)) - Crash with some registry key values in GWin32AppInfo (Philip Withnall) - Memory sanitizer fixes - gobject: Be consistent in using atomic logic to handle the GParamSpecPool - gsettings: Port docs to gi-docgen format, add missing annotations and make various improvements - tests: Don't install runner scripts without installed_tests - Update French translation - Update Catalan translation - Update Turkish translation - Updated Danish translation - Update Persian translation - docs: Document GSignalFlags members added after 2.0 - Update Indonesian translation - tests: Add a test for g_object_freeze_notify() being called too often - gfileinfo: Slightly expand docs for g_file_info_get_attribute_as_string() - gi: Dynamically set doc-format - tests: Various fixes to create temporary files in /tmp rather than the build directory - gdbusnameowning: Convert docs to gi-docgen linking syntax - giounix-private: Fix macro for checking for epoll_create1() - Fix LGPL in header - gutils: make documentation of g_set_prgname() clearer - docs: Add some detail - Update Romanian translation - gspawn-win32: Fix potential integer overflows in argv handling - gvarianttype: Improve docs on type validation * Translation updates: - Catalan (Jordi Mas) - Danish (Ask Hjorth Larsen) - French (Vincent Chatelain) - Indonesian (Andika Triwidada) - Persian (Danial Behzadi) - Romanian (Antonio Marin) - Turkish (Sabri Ünal) Overview of changes in GLib 2.84.0, 2025-03-06 * Bugs fixed: - Update Slovenian (sl) translation in glib - Update Korean translation - tests: Minor fixes to reference and stream-rw_all tests - gdebugcontrollerdbus: Fix a minor typo in a code example in the docs - Update Hungarian translation * Translation updates: - Hungarian (Balázs Úr) - Korean (Changwoo Ryu) - Slovenian (Martin) @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.23 2024/10/22 09:50:39 adam Exp $ d15 2 d27 20 a46 1 @@@@ -1010,7 +1011,7 @@@@ if host_system == 'darwin' d55 1 a55 1 @@@@ -2379,18 +2380,17 @@@@ if host_system != 'windows' and get_opti d76 1 a76 1 @@@@ -2491,7 +2491,7 @@@@ endif d85 1 a85 1 @@@@ -2510,7 +2510,7 @@@@ python_test_libraries_built = meson.proj @ 1.23 log @glib2 glib2-tools gdbus-codegen: updated to 2.82.2 Overview of changes in GLib 2.82.2, 2024-10-17 ============================================== * Bugs fixed: - glib/gvariant: incorrect use of G_ANALYZER_ANALYZING (Christian Hergert) - Multicast cannot be joined on Mac OS on non-default interface (Nirbheek Chauhan) - Update Catalan translation - Backport “glib/gvariant: Fix check for G_ANALYZER_ANALYZING” to glib-2-82 - Backport “macos: Fix URL launcher” to glib-2-82 - Backport “gopenuriportal: Fix two memory leaks” to glib-2-82 - Backport “gio: Fix multicast iface selection on macOS” to glib-2-82 - Backport “gdatainputstream: Fix length return value on UTF-8 validation failure“ to glib-2-82 * Translation updates: - Catalan (Jordi Mas) Overview of changes in GLib 2.82.1, 2024-09-19 ============================================== * Fix a potential buffer overflow in `GSocks4aProxy` * Bugs fixed: - Test /unix-mounts/get-mount-entries fails unless libmount is enabled (Philip Withnall) - Buffer overflow in set_connect_msg() (Michael Catanzaro) - Backport “tests: Test against a sample mtab file in unix-mounts for getmntent()” to glib-2-82 - Backport “tests: Run lint tests with detected bash” to glib-2-82 - Update Polish translation for glib-2-82 - Update Czech translation [glib-2-82] - Update Portuguese translation - Update fa.po - Update Brazilian Portuguese translation - Backport “Update french translation” to glib-2-82 - Update Galician translations for glib-2-82 - Update German translation - Update Bulgarian translation - Update British English translation - Update Hungarian translation - Update Indonesian translation - Updated Lithuanian translation - Update Danish translation (2-82) - Update Russian translation for 2-82 - Backport “docs(glib): Fix link in string-utils ref” to glib-2-82 - Update Georgian translation (glib-2-82) - Backport “Move to Apple Silicon based runner” to glib-2-82 - Backport “gsocks4aproxy: Fix a single byte buffer overflow in connect messages” to glib-2-82 * Translation updates: - Bulgarian (twlvnn kraftwerk) - Czech (AsciiWolf) - Danish (Ask Hjorth Larsen) - English (United Kingdom) (Bruce Cowan) - French (Vincent Chatelain) - Galician (Fran Diéguez) - Georgian (NorwayFun) - German (Tim Sabsch) - Hungarian (Balázs Úr) - Indonesian (Andika Triwidada) - Lithuanian (Aurimas Černius) - Persian (Danial Behzadi) - Polish (Piotr Drąg) - Portuguese (Hugo Carvalho) - Portuguese (Brazil) (Rafael Fontenelle) - Russian (jtux270) Overview of changes in GLib 2.82.0, 2024-08-26 ============================================== * Change the default value of -Dglib_debug from `auto` to `enabled` for developers — distributions will almost certainly want to override it to `-Dglib_debug=disabled` for package release builds though * Revert per-instance locking changes in `GCancellable` as they introduced new races * Bugs fixed: - Investigate trampoline performance implications in g_mutex_lock_impl() changes (Philip Withnall) - Default value for glib_debug meson option (Philip Withnall) - wrong comment in gmessage.c:escape_string - Should check for epoll_create1 rather than epoll_create (Philip Withnall) - Gio.MenuModel docs have an outdated UI example (Philip Withnall) - Replace hi.po with updated translations. - gunixmounts: Fix use of uninitialised variable - tests: Run expected-to-hang cancellable tests in subprocesses - CI/msys2-mingw32: Set the G_DEBUGGER environment variable - Update Chinese translation - Update Swedish translation - Revert “GCancellable: Use per-instance mutex logic instead of global critical sections” for glib-2-82 - Various small backports to glib-2-82 - Backport “gthread: Move thread _impl functions to static inlines for speed” to glib-2-82 * Translation updates: - Chinese (China) (lumingzh) - Hindi (Karunakar Guntupalli) - Swedish (Anders Jonsson) @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.22 2024/07/26 15:34:43 wiz Exp $ a12 2 - Define a newer POSIX, as we build this package with -std=gnu99 d15 1 a15 1 --- meson.build.orig 2024-10-17 11:08:41.000000000 +0000 d17 1 a17 1 @@@@ -418,6 +418,7 @@@@ headers = [ d25 1 a25 1 @@@@ -983,7 +984,7 @@@@ if host_system == 'darwin' d34 1 a34 1 @@@@ -2345,18 +2346,17 @@@@ if host_system != 'windows' and get_opti d55 1 a55 1 @@@@ -2457,7 +2457,7 @@@@ endif d62 3 a64 3 python_version = python.language_version() python_version_req = '>=3.7' @@@@ -2467,7 +2467,7 @@@@ endif a72 10 @@@@ -2477,8 +2477,7 @@@@ env_program = find_program('env', requir # FIXME: How to detect Solaris? https://github.com/mesonbuild/meson/issues/1578 if host_system == 'sunos' - glib_conf.set('_XOPEN_SOURCE_EXTENDED', 1) - glib_conf.set('_XOPEN_SOURCE', 2) + glib_conf.set('_POSIX_C_SOURCE',200809) glib_conf.set('__EXTENSIONS__',1) endif @ 1.22 log @glib2: force usage of pkgsrc-selected Python binary Fixes build in some cases when multiple versions of Python are installed. Based on PR 58469 by Phil Krylov. @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.21 2024/04/09 16:57:18 wiz Exp $ d17 3 a19 3 --- meson.build.orig 2024-07-08 14:03:15.000000000 +0000 +++ meson.build 2024-07-26 14:38:02.009750717 +0000 @@@@ -412,6 +412,7 @@@@ headers = [ d27 1 a27 1 @@@@ -967,7 +968,7 @@@@ if host_system == 'darwin' d36 1 a36 1 @@@@ -2307,18 +2308,17 @@@@ if host_system != 'windows' and get_opti d57 1 a57 1 @@@@ -2419,9 +2419,9 @@@@ endif d61 2 a62 5 -python = import('python').find_installation(modules: ['packaging']) +python = import('python').find_installation('@@PYTHONBIN@@', modules: ['packaging']) # used for '#!/usr/bin/env ' -python_name = 'python3' +python_name = python.path() d66 1 a66 1 @@@@ -2431,7 +2431,7 @@@@ endif d75 1 a75 1 @@@@ -2441,8 +2441,7 @@@@ env_program = find_program('env', requir @ 1.21 log @glib2*: update to 2.80.0 Overview of changes in GLib 2.80.0, 2024-03-07 ============================================== * Bugs fixed: - #3271 GLib: string malformed for gettext (Philip Withnall) - !3940 tests: Don’t run check-missing-install-tag.py test under valgrind (Philip Withnall) - !3946 Add missing argument placeholders to several command-line tools (Simon McVittie) - !3947 docs: Fix a typo in the macros docs page (Philip Withnall) - !3951 g_warn_if_fail: Document as always evaluating expr (Simon McVittie) - !3953 docs: Specify gi-docgen as a native dependency (Bobby Rong) - !3955 docs: Fix building with docs enabled and introspection disabled (Bobby Rong) - !3956 docs: Minor improvements to GSignal documentation (Philip Withnall) Overview of changes in GLib 2.79.3, 2024-02-27 ============================================== * Various consistency improvements to the command line libgirepository tools (!3926, !3927, !3928, !3930, work by Simon McVittie) * Bugs fixed: - #3080 Gimp GTK file chooser hang when a remote file is open (Luca Bacci) - #3210 Critical using Open location: GWinHttpFile doesn’t set G_FILE_ATTRIBUTE_STANDARD_TYPE (Luca Bacci) - #3252 [2.79.1] gdatetime installed tests fails on s390x (Simon McVittie) - #3255 g_base_info_clear on zero-initialized stack-allocated introspection info (Philip Withnall) - #3258 Possible memory leak in GUnixVolumeMonitor (Ondrej Holy) - #3260 Add man pages for girepository tools - #3262 msys2-mingw32 build failing with error code 3221225785 (0xc0000139) (Philip Withnall) - #3263 Ensure girepository tools are translatable (Philip Withnall) - #3266 Use-after-free in gsocketclient.c:connection_attempt_remove() (Philip Withnall) - #3271 GLib: string malformed for gettext (Philip Withnall) - !3918 tests: Don’t run lint tests under valgrind - !3919 tests: Speed up threaded toggle notify test unless -m slow is passed - !3921 ci: Fix printing the execution environment - !3922 gdatetime test: Produce more helpful output on mismatches - !3923 girepository test: Don't assume doubles are naturally-aligned - !3925 girwriter: Take the GIRepository as a parameter - !3926 gi- tools: Remove unused options, improve --debug/--verbose - !3927 g-ir-compiler: Only accept one input file - !3928 gi-decompile-typelib: Interpret --includedir as most-important-first - !3930 migrating-gi: Document command-line option removals - !3935 Restrict macOS CI to origin - !3937 girepository: Fix static build under Windows - !3945 tests: Remove variable-length lookbehind tests for GRegex Overview of changes in GLib 2.79.2, 2024-02-12 ============================================== * More work to reduce lock contention and improve performance in GObject (#743, !3869, !3873, work by Thomas Haller) * More API changes to libgirepository, which is now stable as of this release (#3155, #3217, #3218, #3231, #3234, #3243, #3244, #3245, #3246, work by Philip Chimento, Evan Welsh, Philip Withnall) * Import `g-ir-compiler`, `g-ir-generate` and `g-ir-inspect` from gobject-introspection.git and update them to work with girepository-2.0, renaming them to `gi-compile-repository`, `gi-decompile-typelib` and `gi-inspect-typelib` (see docs/reference/girepository/migrating-gi.md) (!3853, !3909, work by Evan Welsh, Philip Withnall) * Add new `GLibUnix-2.0.gir`, `GLibWin32-2.0.gir`, `GioUnix-2.0.gir` and `GioWin32-2.0.gir` GIRs which contain platform specific APIs, and are the preferred way for third parties to access those APIs in future; although platform specific APIs which were already exposed in `GLib-2.0.gir` and `Gio-2.0.gir` continue to be listed there; the underlying `.so` files have not changed (!3892, work by Philip Withnall) * Bugs fixed: - #743 GLib weak refs depend on cascade of locks, including global ones, which makes them non-scalable - #2887 memory-monitor-dbus.test fails in installed-tests suite (Philip Withnall) - #3198 Support --version in standard GApplication command line arguments (Maxim Moskalets) - #3217 Feedback on gobject-introspection: APIs for stack-allocated introspection info (Philip Withnall) - #3218 Segfault in gi_function_info_prep_invoker (Philip Withnall) - #3231 New functions in the glib introspection data (Philip Withnall) - #3234 Reference cycle between GIRepository and GIBaseInfos cached by it (Philip Withnall) - #3236 threaded_resolver_worker_cb leaks memory when lookup fails and connection is already canceled (Philip Withnall) - #3238 Python packaging module is missing on Hurd CI runner (Philip Withnall) - #3240 Missing preconditions checks in GArray (Tobias Stoeckmann) - #3242 Memory leak in gresources over libelf (Maxim Moskalets) - #3243 Feedback on girepository 2.0: Naming of get_type_info vs load_type (Philip Withnall) - #3244 Feedback on girepository 2.0: Where to find uninstalled typelibs (Philip Withnall) - #3245 Feedback on girepository 2.0: GIBoxedInfo's place in the type hierarchy (Philip Withnall) - #3246 Wrong out parameter type in gi_object_info_find_method_using_interfaces (Philip Withnall) - #3247 safe_closefrom(), safe_fdwalk_set_cloexec() as public API (Simon McVittie) - !3797 Refactor GIRepository GIR generation to avoid cyclical dependency - !3807 gprintf/gstrfuncs: Improve and port doc comments to gi-docgen - !3824 gconvert: match GNU iconv behaviour on FreeBSD - !3838 build: Add thorough test setup - !3843 Add more test coverage for girepository - !3845 gunixmounts: Use libmnt_monitor API for monitoring - !3847 ci: Add ability to run manually some specific jobs - !3848 Fix build with introspection on Windows - !3849 girepository: Remove GI_FUNCTION_THROWS and GI_VFUNC_THROWS flags - !3850 [th/strdup-in-ascii-strdown] glib: use g_strdup() in g_ascii_strdown(),g_ascii_strup() - !3851 ci: Fix post-merge CI pipelines - !3853 girepository: Update gir-compiler and use it to compile GIRs - !3854 girnode: Document ownership and element types of internal structs - !3855 gitypelib: Replace multiple constructors with gi_typelib_new_from_bytes() - !3856 girepository: Drop gi_repository_get_default() - !3859 [th/glib-private-const] glib: return const pointer from glib__private__() - !3860 tests: Fix typo in memory-monitor-portal.py.in - !3861 girepository: Fix a memory leak of a mapped file - !3865 [th/test-weak-notify] gobject/tests: add test checking that GWeakRef is cleared in GWeakNotify - !3866 [th/gobject-carray-comment] gobject: remove obsolete code comment about CArray - !3868 Link to the main context tutorial from the main loop docs - !3869 [th/optimize-weak-ref-list] rework GObject's `WeakRefData` to track references in an array instead of GSList - !3870 Revert "Don't skip dbus-codegen tests on Win32" - !3871 docs: Fix include path for the build - !3872 gio: tests: Use slightly more explicit assert functions - !3873 [th/datalist-shrink] shrink the interal buffer of `GData` - !3874 Don't skip dbus-codegen tests on Win32 - !3876 build: Only override g-ir-compiler when GIR generation is enabled - !3877 Various girepository fixes - !3879 [th/gdataset-comment] gdataset: add code comment to g_datalist_get_data() - !3881 docs: Add migration guide for libgirepository - !3886 codegen: Use `-` instead of `stdout` for output to stdout - !3887 gtestutils: Ensure test_data is freed even if a test is skipped - !3888 gitypes: Fix integer values of GIInfoType and add unit tests for GIUnionInfo - !3892 introspection: Generate separate GIR files and documentation for platform specific APIs - !3893 glocalfile: Support statvfs.f_type - !3894 Minor fixes/docs changes to GFileDescriptorBased and GTask - !3895 [th/meson-werror-fixes] some fixes for meson detection failure with -Werror - !3896 reuse: Add dep5 lines for gnulib and libcharset - !3897 reuse: Fix screen-scraping expression for version 2.x - !3898 Incorporate some lint checks into `meson test` - !3900 gitypelib: Switch to refcounting - !3901 girepository: Add length ‘out’ arguments to several getter methods - !3902 gicallableinfo: Clarify docs for callables with no return type - !3903 gibaseinfo: Rename gi_info_new() to gi_base_info_new() - !3904 [th/meson-werror-fixes-2] more workarounds for compiler warnings in meson compiler checks - !3909 Rename g-ir-generate and g-ir-inspect and update to girepository-2.0 - !3911 glib/tests/unix: Mostly pass O_CLOEXEC to g_unix_pipe_open() - !3912 glib-unix: Fix reference to FD_CLOEXEC in docs for g_unix_pipe_open() - !3913 cmph: Fix a typo - !3914 Revert "ci: Remove not-printable chars from generated junit file" - !3916 tests: Skip lint tests if bash is not available - !3917 ci: Build and tar libgirepository documentation Overview of changes in GLib 2.79.1, 2024-01-22 ============================================== * Fix a race condition in `g_object_unref()` (#3064, work by Thomas Haller) * Various API and build changes to libgirepository as it is not yet API-stable (#3216, !3780, !3805, !3823, !3833, !3840) * Build fixes on big-endian 64-bit systems and mips64el (#3225, #3226, work by Simon McVittie) * Reduce contention on global locks within GObject (!3774, work by Thomas Haller) * Allow building man pages without the reference documentation (!3817, work by Simon McVittie) * Bugs fixed: - #1010 g_get_num_processor does not respect cpuset/affinity - #3064 Crash under g_object_unref() - #3093 GDBusMessage: should validate the type of all known headers (Philip Withnall) - #3207 Add support for syslog to Structured Logging - #3216 Feedback on gobject-introspection: Casting to and from GIBaseInfo* (Philip Withnall) - #3222 pthread_t usages lack type name (Emmanuele Bassi) - #3223 CLang, GMutexLocker: error: unused variable 'locker' [-Werror,-Wunused-variable] - #3225 2.79 regression: gdatetime test failing on 64-bit big-endian since #3119 - #3226 resource test fails on Debian mips64el: test5.gresource is not linked but the test assumes it should be (Simon McVittie) - !3774 [th/g-object-priv] add private data to GObject and use per-object locking - !3780 girepository: Use standard types instead of glib specific - !3789 gdatetime: Fix title of documentation comment - !3792 build: Tell gi-docgen where to find the GIR files - !3793 Shorten the title for D-Bus interface docs - !3794 Add boxed GType for GRand - !3795 girepository: Skip GIRepository versions not matching GIRepository-3.0 - !3798 docs: Drop outdated .gitignore files - !3799 tests: Fix a minor leak in the new GParamSpecPool test - !3800 ci: Re-enable and fix FreeBSD CI - !3801 gmessages: Port all doc comments to gi-docgen - !3802 [th/g-pointer-bit-lock-ext] glib: add g_pointer_bit_unlock_and_set() and g_pointer_bit_lock_mask_ptr() - !3803 ci: Fix tarballing the docs on dist - !3805 girepository: Various small API cleanups - !3806 gsignal.c: drop an optimization that is undefined behaviour - !3808 glib/deprecated: Skip all the deprecated gthread api - !3809 docs: Fix links to symbols outside the allowed namsepace - !3810 gstrfuncs: Improve and port g_set_str() docs to gi-docgen - !3811 gvariant-parser: Mention annotated types - !3812 brz.c: Use uintptr_t instead of a hardcoded list of 64-bit arches - !3813 gobject: define HAVE_OPTIONAL_FLAGS for sizeof(void*) > 8 - !3814 Fix typo in GPOINTER_TO_SIZE documentation - !3817 docs: Allow building man pages without the reference documentation - !3818 docs: Clarify >=2.76 changes to g_module_open() - !3821 tests: Fix a minor leak in the socket test - !3823 girepository: Misc cleanups - !3826 genums: use g_once_init_enter_pointer for GType initializers - !3827 array-test: Don't assume sizeof(void*)==sizeof(gsize) - !3831 gvariant-core: Don’t call posix_memalign() with size==0 - !3833 girepository: Change various alignments to use size_t - !3835 build: Ignore branches in g_clear_*() functions under lcov - !3837 tests: A couple of test isolation improvements - !3839 gvarianttype: Fix typos - !3840 girepository: Exclude private symbols from the ABI - !3841 docs: Fix member names of GLib.LogLevelFlags - !3842 gio, gmodule, gthread: compile windows resources only in shared build Overview of changes in GLib 2.79.0, 2023-12-22 ============================================== * Port to gi-docgen and drop gtk-doc support — dependencies have changed, and Meson needs `-Ddocumentation` now rather than `-Dgtk_doc` (#3037, work by multiple people) * Move libgirepository into glib.git from gobject-introspection.git — but tools like `g-ir-scanner` are currently still in gobject-introspection.git. For the moment, glib.git needs to be built twice, once with `-Dintrospection=false`, then build gobject-introspection.git, then re-build glib.git with `-Dintrospection=true`. This process will evolve throughout the GLib 2.80 cycle. The API and ABI of libgirepository has changed, and accordingly its version number has been bumped from 1.0 to 2.0 (note: the version number of `GIRepository-*.gir` has been bumped from 2.0 to 3.0; see !3786). The GIR and typelib file formats have not been changed, and are still at version 1.0. (#3155, work by multiple people) * Match behaviour for `GAppInfo` searches has changed (#3082, work by Nelson Benítez León) * Rename `GTK_USE_PORTAL` environment variable to `GIO_USE_PORTALS` (#3107, work by Philip Withnall) * Bump Meson dependency to 1.2.0 and depend on Python `packaging` module (!3666, !3752) Bugs fixed: - #596 GApplication in Garbage Collected environments would benefit from a g_application_command_line_exit() to enable remote instances to exit. (Aleksandr Mezin) - #791 Wish: Add a "nodelay" property to GSocket or GTcpConnection (Philip Withnall) - #2810 thread-pool-slow intermittent assertion failure in test_thread_sort_entry_func() (Philip Withnall) - #2824 G_REGEX_OPTIMIZE causes incorrect regex behaviour - #2991 Drop translatable pspec nick/blurbs from properties in GIO (Sophie Herold) - #3082 Investigate prioritising prefix matches on GAppInfo keywords over substring matches on names (Nelson Benítez León) - #3087 glib doesn't cleanly unload on Windows (Luca Bacci) - #3098 Make invalid escape sequences in GKeyFile fatal (Philip Withnall) - #3103 mkenums: Can't parse an enum value with value ',' (Lukáš Tyrychtr) - #3105 NetworkManager 1.44.0 crashes repeatedly with glib 2.78.0 (Philip Withnall) - #3107 Rename GTK_USE_PORTAL to avoid portal services being run with portals force-enabled (Philip Withnall) - #3111 gsubprocess-testprog.c: build error with cygwin (sys/ptrace.h: No such file or directory) (Philip Withnall) - #3112 Update to Unicode 15.1 (Philip Withnall) - #3115 Support for additional strftime formatting capabilities - #3116 gio clears modification time in microseconds when setting with `set_modification_date_time` (Lukáš Tyrychtr) - #3119 Add support for `%Ey` to g_date_time_format() (Philip Withnall) - #3120 Build of glib 2.78.0 ignores -Dlibelf=disabled (Philip Withnall) - #3128 glib-2.78.0 fails at gio/tests/gsubprocess.p/gsubprocess.c.o - #3130 Segfault when creating GIO GPropertyAction without properties - #3134 glib incompatible with Python 3.12 due to distutils usage - #3135 Add GNU/Hurd CI - #3140 Add a flag to not copy modification time when copying files (Khalid Abu Shawarib) - #3144 `g_file_set_contents_full()` doesn't truncate the file (without `G_FILE_SET_CONTENTS_CONSISTENT`) (Philip Withnall) - #3156 check for #ifdef PTRACE_O_EXITKILL will always fail since it isn't a macro (Alessandro Bono) - #3157 gsubprocess build-time test intermittently timing out since 2.78.1 (Simon McVittie) - #3158 "CRITICAL" log when using --attributes option for "gio info" (Philip Withnall) - #3159 glib regex test fails JIT compiler tests under musl libc (Pablo Correa Gómez) - #3161 codegen installation is broken - #3168 gvfs-udisks2-volume-monitor SIGSEGV in g_content_type_guess_for_tree() due to filename with bad encoding (Ondrej Holy) - #3183 g_dbus_connection_signal_subscribe with flag G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_PATH doesn't work with an arg0 that is an object path (Philip Withnall) - #3185 g_utf8_collate_key() segfaults when passed an invalid length - #3186 [RFE] Increase gio sniff buffer for mime type magic detection to 16K or so (Philip Withnall) - #3187 g_vasprintf crashes when passed invalid UTF-8 (Philip Withnall) - #3191 Crash in __gio_xdg_cache_mime_type_subclass (Philip Withnall) - #3203 Fdo notification fails without AppID (Michael Catanzaro) - !3143 gatomic: Use g(u)intptr where appropriate - !3316 gobject: Separate GWeakRef from GWeakNotify - !3394 gsocketclient: Document delays/timeouts better - !3457 glib-unix: Add convenience API for pipes - !3524 add muslc ci - !3552 gutils: Use international symbol for bits - !3566 Update annotations for GAsyncQueue and GDir - !3567 Update annotations for GHmac - !3568 Update GOptionContext annotations - !3569 Small fixes and cleanups for Vectored Exception Handlers - !3571 Update GStringChunk annotations - !3572 Update GRand annotations - !3573 Update GTimer annotations - !3576 guniprop.c: Avoid creating (temporarily) out-of-bounds pointers - !3577 gthread: introduce g_once_init_{enter,leave}_pointer - !3578 GType: Use guintptr as the underlying storage if larger than gsize - !3579 Fixes for integer cast warnings when targeting CHERI - !3580 Fix test_find_program on FreeBSD - !3581 gthread: Fix optional/nullable annotations for g_once_init_*() - !3582 Buffer needs to be aligned correctly to receive linux_dirent64. - !3589 gconstructor.h: Ensure [c|d]tor prototypes are present for MSVC (Chun-wei Fan) - !3590 gtestutils.h: Fix warning with -Wsign-conversion caused by g_assert_cmpint - !3591 Switch to using gi-docgen for docs (batch 1) - !3594 Fix gutils-user-database test on macOS - !3595 gobject: cache flags needed for g_type_create_instance() - !3596 Add value annotation to G_TYPE_FUNDAMENTAL_MAX - !3597 Expand security policy to cover previous stable branch - !3598 Document NULL pointer pitfall in toolchain requirements - !3601 meson: Fix Windows build with PCRE2 as sibling subproject - !3603 Add GBytes variants for GSocket receive methods - !3605 build: Post-release version bump - !3607 Make sure the `GTask` is freed on a graceful disconnect - !3610 gdesktopappinfo: Do not search Comment field - !3611 tests/constructor: Fix "unknown pragma ignored" warning on clang - !3612 Update GStrv annotations - !3613 tests: Fix gdatetime test on non-UTC systems - !3620 gmain: avoid a GList traversal when removing source - !3621 wakeup: do single read when using eventfd() - !3623 Windows: Compile with the UNICODE / _UNICODE macros - !3624 wakeup: Fix g_wakeup_acknowledge if signal comes in - !3627 Add Hurd code owners - !3628 glib-unix: Use full path to gstdio.h include - !3629 glib/tests/meson.build: remove identical build targets - !3630 glib-compile-resources: ensure alignment is at least sizeof(void *) - !3632 Stop using enums in bitfields - !3633 Use g_task_return in task threads - !3634 Switch to using gi-docgen for docs (batch 2) - !3635 Fix warnings with Clang on Windows and enable --Werror in CI - !3636 Generate introspection data - !3637 gstrvbuilder: Add g_strv_builder_take - !3638 Cleanup and add content to glib debugging using gdb scripts - !3640 GIO/tests: skip test_resources_binary on MIPS platforms - !3641 build: Simplify MIPS test check - !3645 Switch to using gi-docgen for docs (batch 3) - !3646 ci: Update from clang-format-11 to clang-format-14 - !3647 Switch to using gi-docgen for docs (batch 4) - !3652 GApplicationCommandLine: add print[err]_literal() - !3654 gdatetime: Fix minor leaks from strup/strdown calls - !3655 gdatetime: Fix incorrect alt-digits being used after changing locale - !3656 gmodule-dl: Use RTLD_DEFAULT on FreeBSD too - !3660 Switch to using gi-docgen for docs (batch 5) - !3661 Switch to using gi-docgen for docs (batch 6) - !3662 Switch to using gi-docgen for docs (batch 7) - !3663 gdbusconnection: don't cache G_IO_ERROR_CANCELLED errors - !3664 gmain: optimize "context->sources" hash table to use as set - !3665 ci: Remove .build-linux from Hurd CI scheduled job - !3666 build: Bump Meson dependency to 1.2.0 - !3667 Switch to using gi-docgen for docs (batch 8) - !3668 Socket & readiness fixes - !3671 gio/tests: Add test generated txt as the resources test dependency - !3672 glib-private: Check for LSAN support at runtime when controlling it - !3674 gtask: Add g_task_return_prefixed_error() - !3677 Make GQuark register intentional leaks - !3678 gsignalgroup: Avoid function call with side effect in g_return_* macro - !3679 gmessages: fix dropping irrelevant log domains - !3682 tests: Fix dependency of test.gresource on test-generated.txt - !3683 glib: Disable dynamic asan loading on macOS - !3687 fix: about libproc.h and PROC_PIDLISTFD_SIZE - !3688 build: Fix the inclusion paths for GIR files in gi-docgen - !3689 meson: Add missing dependencies for utility files for gdbus-codegen - !3690 Switch to using gi-docgen for docs (batch 9) - !3695 gvalue: add "steal_string" - !3699 [th/prgname] use atomic pointers for g_prgname/g_application_name and add g_set_prgname_once() - !3701 tests: Fix gio-tool.py test on macOS - !3702 glib.supp: Suppress the global_mime_dirs allocations - !3703 Port GIRepository to GTypeInstance and add introspection - !3704 girepository: Rename symbols to the GI namespace - !3707 girepository: Ignore set-but-not-used warnings with G_DISABLE_ASSERT - !3708 Fix various leaks in cmph-bdz-test and gutils - !3709 Switch to using gi-docgen for docs (batch 10) - !3710 gmessages: introduce g_log_writer_default_set_debug_domains() - !3711 ghmac: Add a boxed type for GHmac and fix introspection build accordingly - !3712 Switch to using gi-docgen for docs (batch 11) - !3713 gfileutils: Fix g_file_get_contents() silent under-read of large files when off_t is wider than size_t - !3714 xdgmime: Handle buggy type definitions with circular inheritance - !3715 goption: Fix a typo - !3716 tests: Improve build of cmph tests in girepository - !3717 tests: provide reason for disabling convert test under musl - !3721 gtestutils: Add g_test_trap_subprocess_with_envp() for testing envs - !3722 gdir, gstrvbuilder: Add refcounting support and a boxed type - !3723 gwin32: Un-hide symbols when building GIR - !3726 tests: Fix fileutils build on FreeBSD and macOS - !3731 tests: Fix string test failure on BSDs - !3732 gspawn: Stop spewing debug messages - !3733 ci: Make the Alpine CI name more consistent - !3734 gdatetime: Disable ERA support on platforms which don’t support this - !3735 ci: Fix printing info message at end of run-style-check-diff.sh - !3736 build: Rename -Dgtk_doc option to -Ddocumentation and fix some g-ir-scanner warnings - !3739 Documentation only: Added clarification about GWeakNotify and removed ambiguous text - !3741 hash: Explicitly annotate key in iter_next as nullable - !3743 ci: Install correct version of Meson on Alpine CI image - !3745 tests: Assert there no errors first in gdbus-test-codegen - !3751 Fix generated RST anchors for methods, signals and properties - !3752 build: Make packaging module required - !3753 gobject_gdb.py: Do not break bt on optimized build - !3755 tests: Use textwrap.dedent to indent expected strings pleasingly - !3757 ci: Re-add explicit Meson version to Alpine CI image - !3758 docs: Add a section on version checking macros - !3760 girepository: Various API cleanups - !3761 gerror: Fix an old allow-none annotation - !3762 [th/notify-queue] some optimization around g_object_freeze_notify()/g_object_thaw_notify() - !3763 girepository: Drop libgio dependency from gdump.c - !3764 gsignal: fix reference to signals documentation page - !3765 gapplication: Fix minor typo in docs - !3767 girepository: Port documentation to gi-docgen and update - !3768 ci: Build docs artifacts for deployment to docs.gtk.org - !3770 GDateTime: Add usec precision API for unix time - !3771 gtask: Add g_task_return_new_error_literal() - !3772 gobject: Make GLib-2.0 gir build depend on GObject dependency - !3773 girepository: Return enumerated versions and search paths as a GStrv - !3776 glocalvfs: Remove unnecessary and buggy code - !3777 Fix detecting size_t size when `-Wmissing-prototypes` is in CFLAGS - !3779 gtypemodule: Add assertions in finalize() - !3782 docs: fix a typo - !3786 girepository: Re-number GIR file from 2.0 to 3.0 - !3787 docs: Install the gi-docgen docs @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.20 2023/11/03 18:32:32 otis Exp $ d17 2 a18 2 --- meson.build.orig 2024-03-07 21:35:05.000000000 +0000 +++ meson.build d57 1 a57 1 @@@@ -2421,7 +2421,7 @@@@ glib_conf.set('HAVE_PROC_SELF_CMDLINE', d59 4 a62 1 python = import('python').find_installation(modules: ['packaging']) @ 1.20 log @devel/glib2: Include sys/ptrace.h only on systems that have this include file. @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.19 2023/11/02 13:17:27 wiz Exp $ d17 1 a17 1 --- meson.build.orig 2023-09-08 13:42:18.000000000 +0000 d19 1 a19 1 @@@@ -383,6 +383,7 @@@@ headers = [ d27 1 a27 1 @@@@ -926,7 +927,7 @@@@ if host_system == 'darwin' d36 1 a36 1 @@@@ -2214,18 +2215,17 @@@@ if host_system != 'windows' and get_opti d57 1 a57 1 @@@@ -2328,7 +2328,7 @@@@ glib_conf.set('HAVE_PROC_SELF_CMDLINE', d59 1 a59 1 python = import('python').find_installation() d65 2 a66 2 python_version_req = '>=3.5' @@@@ -2338,7 +2338,7 @@@@ endif d75 1 a75 1 @@@@ -2348,8 +2348,7 @@@@ env_program = find_program('env', requir @ 1.19 log @glib2: update to 2.78.0 Overview of changes in GLib 2.78.0, 2023-09-08 ============================================== * Bugs fixed: - #3095 Error handling of invalid GKeyFile string escape sequences changed in GLib 2.77.3 (Philip Withnall) - !3559 gdb: Workaround optimized out quark_seq_id - !3561 meson: fix `gnetworking.h` install tag - !3562 gthread: Annotate g_thread_exit() with G_NORETURN - !3564 Fix gutils-user-database unit test Overview of changes in GLib 2.77.3, 2023-08-31 ============================================== * Bugs fixed: - #2575 GSettings schemas default value translations don't work when using l10n=time (Michael Catanzaro) - #3032 gdbus-codegen eats indentation in RST in XML comments (André) - #3051 g_dbus_connection_export_menu_model() is not thread_safe - #3061 Possible SEGV (null pointer deref) in distribute_method_call() (Philip Withnall) - #3083 `arg_data` in GOptionEntry is not a list (Philip Withnall) - #3090 Possible SEGV (null pointer deref) in _g_resource_file_new() (Philip Withnall) - !3459 glib-unix: Clean up use of O_NONBLOCK - !3503 interim solution for macOS CI - !3519 meson: warn if -mms-bitfields is necessary - !3526 gnetworkaddress: use reentrant getservbyname_r() if available - !3527 tests: Use g_assert_*() rather than g_assert() in tree tests - !3528 gio-tool-info: Move translator comments so they’re visible - !3530 gregex: set default max stack size for PCRE2 JIT compiler to 512KiB - !3532 tests: Disable use of ptrace() in tests on BSD and macOS - !3533 ci: Only run pages CI job on scheduled job runs - !3534 ci: Further fix to pages CI job - !3535 Use 'meson setup' to configure - !3538 glib-unix: Accept O_CLOEXEC as well as FD_CLOEXEC in g_unix_open_pipe() - !3540 gio: Add gresource.dtd - !3541 gtestutils: Mention not ignoring SIGCHLD in g_test_trap_subprocess() docs - !3542 [th/gchildwatch-fail-message] gmain: improve g_warning() for failure in g_child_watch_dispatch() - !3543 [th/use-localtime-r] use localtime_r() in g_log_writer_format_fields() - !3545 gregex: if JIT stack limit is reached, fall back to interpretive matching - !3547 glib/gfileutils.c: use 64 bits for value in get_tmp_file() - !3550 glib/tests/asyncqueue.c: skip test_async_queue_timed in 2038 or later - !3553 Generate missing docs for out arguments - !3555 gkeyfile: Fix overwriting of GError Overview of changes in GLib 2.77.2, 2023-08-12 ============================================== * Bugs fixed: - #3071 g_test_trap_subprocess and g_test_subprocess broken in 2.77.1 (Jonas Ådahl) - !3432 ci: Don’t run pipeline after merging a MR - !3520 Fix typos - !3521 GTree: Handle node counter overflow and return it as an unsigned value - !3523 gspawn, gdataset: Restore nullable callback functions Overview of changes in GLib 2.77.1, 2023-07-30 ============================================== * Fix some regressions with `GKeyFile` comment handling (#3047, work by Gaël Bonithon) * Improve handling of query and fragment components in `file:` URIs (#3050, work by Lukáš Tyrychtr) * Bugs fixed: - #473 systemtap probes for gvariant (Allison Karlitskaya) - #623 g_type_query() doesn't work for dynamic types (Philip Withnall) - #931 Optimise GPrivate by removing one malloc (Allison Karlitskaya) - #2929 gio: Failing build due to race generating glib/gversionmacros.h (Eric van Gyzen) - #3045 2.77.0: gio pkg-config test has incorrect install location for gio- querymodules & glib-compile-schemas (Philip Withnall) - #3047 2.77.0 changes formatting of keyfiles (Gaël Bonithon) - #3048 Forcing fallback for libintl does not work (Brendan Shanks) - #3050 g_file_new_for_uri() handles query strings incorrectly ("?") (Lukáš Tyrychtr) - #3054 Fedora installer (anaconda) crashes early with glib 2.77.0 due to "Attempt to unlock mutex that was not locked", when it runs `hwclock` and changes the system time (Thomas Haller, Philip Withnall) - !3287 Audit and fix incorrect use of (closure) in glib - !3461 gfileinfo: add file_path methods for language bindings - !3485 docs: Expand supported platforms documentation a little - !3494 ci: Manually fetch submodules for style-check CI jobs - !3495 gdbus-codegen: Error on invalid dbus types - !3496 garray: Fix typo in doc comment of g_ptr_array_sort[_with_data]() - !3499 strfuncs: Add missing ownership annotations for returned string vectors - !3504 Revert "build/gmodule-2.0.pc: Move compiler flags from Libs to Cflags" - !3505 meson: help gobject-introspection locate source and build dirs - !3509 build-sys: drop -mms-bitfields GCC flag - !3510 testutils: Use prctl PR_SET_DUMPABLE to silence core dumps on Linux - !3514 Revert "build-sys: drop -mms-bitfields GCC flag" - !3515 gnetworkmonitor: Expand guidelines for metered data use - !3517 tests: Add some more tests for g_type_query() - !3518 m4macros: drop unused m4 files Overview of changes in GLib 2.77.0, 2023-07-06 ============================================== * Fix `GSocketClient` connecting to a proxy if the port is not specified (#2832, work by Michael Catanzaro) * Support using `copy_file_range()` in `g_file_copy()`, if available (#2863, work by Philip Withnall) * Improve handling of comments above groups in key files (#2927, work by Gaël Bonithon) * Re-upgrade missing attribute debugs to criticals in `GFileInfo` (#2951, work by Philip Withnall) * Do not redefine NULL on C++ (#2973, work by Marco Trevisan) * Make `g_signal_handlers_block_matched()` work for `G_SIGNAL_MATCH_ID` (#2980, work by Przemyslaw Gorszkowski) * Fixes to support building with bionic libc better (#3008, work by Øyvind Kolås) * Fix potential stack overflow in gspawn on macOS if open file limit is very high (#3024, work by Dario Saccavino) * Fix support for `--force-fallback-for libpcre` in meson configuration (#3025, work by Marius Kintel) * Generate specific marshallers in `gdbus-codegen` (#3028, work by Marco Trevisan) * Fix build failure on Android with `statx()` support (#3039, work by Philip Withnall) * Improve locking performance of `GSignal` (!2824, work by Marco Trevisan) * Improve locking performance of `g_main_context_iterate()` (!3235, work by Marco Trevisan) * Add an inline definition of `g_free()` to automatically use `g_free_sized()` if available (!3252, work by Marco Trevisan) * Fix race with `waitpid()` and `GChildWatchSource` (!3353, work by Thomas Haller) * Add `glib_valgrind_suppressions` variable to glib pkg-config file (!3361, work by Marco Trevisan) * Fix build on macOS SDK 10.11 (!3385, work by Peter Williams) * Switch to using a separate thread pool and support timeouts in `GThreadedResolver` (!3397, work by Philip Withnall) * Track pending `GTask`s if `G_ENABLE_DEBUG` is defined (!3404, work by Philip Withnall) * Support GSignal fast path and more marshallers in `gobject_gdb.py` (!3437, work by Nelson Ben) * Disable the macOS CI because it’s too unreliable — if you rely on GLib working on macOS, please get in touch and do something to help! (!3463, decision taken by Philip Withnall) * Bugs fixed: - #65 glib-mkenums: parse_trigraph() chokes on quoted commas (Emmanuel Fleury) - #95 GMarkupParser documentation completion (David King) - #98 g_get_current_dir SIGSEGV on long path (Philip Withnall) - #104 Invocation of the interface "g_key_file_remove_comment" does not remove comment in specific case (Gaël Bonithon) - #116 Document UTF-8 behaviour and requirements throughout GLib (Philip Withnall) - #252 Disagreement between runtime and docs on whether interfaces are "classed" (Philip Withnall) - #322 gdbus-example-proxy-subclass.c is not complete. (Colin Walters) - #799 GAppInfoMonitor documentation deficiencies (Philip Withnall) - #1264 Use-after-free under send_message_with_reply_cleanup():gdbusconnection.c:1792 (Philip Withnall) - #2289 Document clearly that libgio is not guaranteed to be safe to use in setuid processes (Philip Withnall) - #2307 mainloop test leaks a GMainLoop object (Philip Withnall) - #2829 "glib-compile-resources --dependency-file=DEPFILE" creates wrong set of dependencies (Michael Catanzaro) - #2832 GSocketClient cannot proxy connect unless default port is explicitly specified in proxy URL (Michael Catanzaro) - #2855 gio/tests/socket-client.c name is too confusing because it does not use GSocketClient (Mike Salmela) - #2861 Check for __kernel_long_t when enabling futex() - #2863 Use copy_file_range() whenever possible in g_file_copy (Philip Withnall) - #2864 Documentation mentions non-existing function `g_value_free` (Philip Withnall) - #2879 Job #2498619 failed: gio/tests/socket.c:1654:test_reuse_tcp: assertion failed (error == (g-io-error-quark, 33)): error is NULL (Philip Withnall) - #2927 GKeyFile: Inconsistent behavior of comment writing above a group (Gaël Bonithon) - #2939 mkenums.py test fails on FreeBSD (Philip Withnall) - #2951 Re-upgrade missing attribute debugs to criticals in GFileInfo (Philip Withnall) - #2952 Not clear that GPollableInputStream methods are undefined if can_poll() returns FALSE (Philip Withnall) - #2953 Missing docs for GOption (commandline parser) (Sam Thursfield) - #2958 nbd server fails with glib 2.76.0 - #2960 GDebugControllerDBus wrong default in documentation (Philip Withnall) - #2963 Probably wrong information regarding G_PLATFORM_WIN32 in README.win32.md - #2965 test_measure fails with coreutils 9.2 (Joan Bruguera) - #2966 Multiple Definition Error When Generating gio/tests/test5.gresource (Dan Yeaw) - #2969 user docs: GLib.DateTime.format: broken highlighting (Philip Withnall) - #2972 GtkFileLauncher: generated paths not recognized on Win32 (Luca Bacci) - #2973 Build failed due to NULL pointer redefinition in C++ (Marco Trevisan (Treviño)) - #2980 g_signal_handlers_block_matched does not work for G_SIGNAL_MATCH_ID (Przemyslaw Gorszkowski) - #2982 Build randomly fails with: 'gmodule/gmodule-visibility.h' file not found (Marco Trevisan (Treviño)) - #2993 g_dbus_interface_skeleton_get_vtable misses transfer annotation and is not introspectable - #2997 g_assert_cmpuint() should display positive, not negative values (Eric Blake) - #3003 glib-compile-schemas failed on directory name with no Latin symbols (Daniyar Tleulin) - #3007 GOptionContext group headings missing colon at the end (Philip Withnall) - #3008 Adaptations for building with bionic libc under termux (Øyvind Kolås) - #3020 Races in gio/tests/portal-support-snap* tests - #3024 Possible stack overflow in gspawn on MacOS - #3025 libpcre and libintl cannot be chosen to use the builtins - #3027 action exporter fails in the presence of actions with maybe parameter types (Matthias Clasen) - #3028 gdbus-codegen should generate marshallers (Marco Trevisan (Treviño)) - #3030 Document GListModel requiring unique instance pointers from GListModelInterface.get_item (Christian Hergert) - #3034 futex based g_mutex_lock sometimes splatters errno with EAGAIN on contended locks - #3039 Build failure due to statx fields with NDK r25.c (Philip Withnall) - #3040 gtester in custom_target() run against system rather than built libglib during build - !2824 gsignal: Reduce lock/unlock pairs and ensure we always work on valid signal nodes - !3146 Make GVariant/GHash opaque types compatible with CHERI - !3235 gmain: Avoid some lock/unlock dance during g_main_context_iterate - !3252 gmem: Add an inline definition of g_free() to automatically use g_free_sized() - !3289 Work around an UCRT issue with _wspawn() functions taking an envp block - !3306 gregistrysettingsbackend: Allow a different root key path - !3308 doc: Workaround missing API index - !3314 gmain: More explicitly document g_main_context_release() prereqs - !3326 unicode: add tests for g_utf8_normalize() and empty strings - !3333 build: Drop old .gitignore files from test directories - !3335 meson: allow -Dlibelf=enabled without pkg-config - !3337 gio-tool-info: Fix a duplicate attribute name in the UI - !3340 meson: Move msvc_recommended_pragmas.h to a subdirectory - !3341 g_utf8_normalize: don't read past the end of the buffer - !3342 Add fuzzing harness for g_utf8_normalize() - !3344 tools: Drop check-abis.sh script - !3345 docs: Drop section about default branch renaming from README.md - !3347 gsocket/inotify/gwakeup: Use SOCK_NONBLOCK and O_NONBLOCK to avoid fcntl() syscalls where possible - !3351 tests: Update Unicode normalisation tests from Unicode 15 - !3352 meson: Fix detection of a system-provided proxy-libintl - !3353 [th/child-watch-waitpid] fix race with waitpid() and child watcher sources - !3356 build/gmodule-2.0.pc: Move compiler flags from Libs to Cflags - !3357 Make clang++ happier when using G_STATIC_ASSERT - !3361 meson: Add glib_valgrind_suppressions variable to glib pkg-config file - !3365 gwin32: Avoid use of function call with side effect in g_return_* macro - !3366 Add init macros for refcounting types - !3367 actiongroup: Add a compiler warning - !3371 Explicitly mark size parameter as (in) - !3377 gsignal: Clarify documentation for GSignalMatchType matching - !3378 build: Post-release version bump - !3381 gtimer: Avoid doing anything on g_usleep (0) - !3382 gsocket: Explicitly mark size parameter as (in) - !3383 add g_timeout_add_seconds_once - !3384 Test g_signal_handlers_disconnect_matched for G_SIGNAL_MATCH_ID match - !3385 gio: fix build on older macOS SDKs - !3388 appmonitor: Skip the test under OSX - !3389 glib/tests/[rec-]mutex: Allow each thread to work - !3390 Fix error format in gio/gunixconnection.c (part 2) - !3392 gvariant: Fix doc for g_variant_new_object_path - !3393 Fix small issues in docs - !3395 gtask: Document that g_task_run_in_thread() uses a shared resource - !3396 glib-unix: Improve documentation for g_unix_fd_source_new() - !3397 gthreadedresolver: Switch to using a separate thread pool and support timeouts - !3398 Avoid having g_futex_simple() inadvertently modify errno - !3399 meson: wrap html documentation generation with gtk_doc option - !3400 restore error messages in gunixconnection while maintaining older compiler support - !3401 ci: Disable the Coverity CI job - !3404 gtask: Track pending GTasks if G_ENABLE_DEBUG is defined - !3405 gthreadedresolver: Remove some incorrect assertions - !3406 gthreadpool: Clarify that item_free_func is not normally called - !3407 gregistrysettingsbackend: Remove translatable pspec nick/blurb - !3408 docs: Update/Drop txt documents from docs directory - !3409 docs: Don’t ignore gunixfdlist.h when building docs on Windows - !3410 tests: Add descriptions to environment tests - !3416 gtestutils: Fix section marker in documentation - !3418 docs: Add lb90 as a Windows maintainer - !3419 docs: Update various broken/redirected links and fix list formatting - !3420 gtestutils: print timing information per test case in TAP output - !3421 glib/tests/fileutils:fix asserts when running as root - !3422 Check for linux/netlink.h buildability - !3423 gstring: add g_string_new_take - !3425 gwin32networkmonitor: Fix returning address of local variable - !3426 gdataset, gobject: Use atomic compare and exchange full to set pointers - !3429 Rename GTK+ to GTK (mostly comments and documentation) - !3430 gobject_gdb.py: fix regression caused by bfbe7127d5 - !3431 gfile: Ensure loff_t is defined on FreeBSD - !3435 Ignore g_task_print_alive_task() when introspecting GIO - !3437 gobject_gdb.py: support gsignal fastpath and detect more marshallers - !3438 gio: Check cancellable iterating local file enumerator - !3439 gstring: Add `Since` marker to `g_string_new_take()` - !3440 gutf8: Add a g_utf8_truncate_middle() function - !3441 Allow proper introspection of GTypeValueTable - !3442 gio: Add g_file_new_build_filenamev - !3448 meson: try iconv in libintl lookup - !3449 docs: Move README.win32.md to the docs folder and update CONTRIBUTING.md - !3450 gactionmap: Add g_action_map_remove_action_entries() - !3453 docs: Use the type name as the section name for GKeyFile - !3455 gfileinfo: add (type filename) annotation to symlink_target functions - !3456 gmain: Document that g_steal_fd() preserves errno - !3458 gstdio: Improve documentation of some functions as async-signal safe - !3462 tests: Reduce thread and iteration count on CI for /thread/rec-mutex3 - !3463 ci: Disable the macOS CI - !3465 gobject_gdb.py: adapt to recent gsignal changes - !3466 resolver: Add space in documentations - !3470 pcre subproject fixes: Allow fallback & static build - !3471 gio-tool-mount: Add option to show progress when unmounting - !3472 tests: Fix an intermittent timing error with testing g_usleep(0) - !3477 gdbus-codegen: Fix some minor typos in the documentation - !3484 docs: Fix a typo in the backports policy - !3486 docs: Document issue and merge request triaging and review guidelines - !3488 codegen: Use g_signal_emit to emit signals - !3489 guniprop: fix param direction in g_unichar_get_mirror_char(), for introspection - !3490 gobject/tests: Fix running on 32-bit Windows @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.18 2022/11/23 10:41:41 adam Exp $ d15 2 d19 9 a27 1 @@@@ -926,7 +926,7 @@@@ if host_system == 'darwin' d36 1 a36 1 @@@@ -2214,18 +2214,17 @@@@ if host_system != 'windows' and get_opti d57 1 a57 1 @@@@ -2328,7 +2327,7 @@@@ glib_conf.set('HAVE_PROC_SELF_CMDLINE', d66 1 a66 1 @@@@ -2338,7 +2337,7 @@@@ endif d75 1 a75 1 @@@@ -2348,8 +2347,7 @@@@ env_program = find_program('env', requir @ 1.18 log @glib2 glib2-tools gdbus-codegen: updated to 2.74.1 Overview of changes in GLib 2.74.1 ================================== * Update Unicode data to version 15 (work by Marco Trevisan) * Fix various build failures in different situations (work by Kjell Ahlstedt, Marco Trevisan (TreviĂąo)) * Fix over-eager deprecated property warnings for construct properties (work by Simon McVittie) * Fix a crash calling `g_param_value_is_valid()` on a `GParamSpecParam` (work by Emmanuele Bassi) * Fix floating `GVariant` leaks with GObject properties (work by Matthias Clasen) * Add inline optimised version of `g_str_equal()` (work by Xavier Claessens) * Fix `GVariant` type depths checks on text format variants (work by Philip Withnall) * Fix regression with int64 and double hashing functions on big-endian architectures (work by Simon McVittie) * Build the API documentation only when building GLib as a shared library (work by Emmanuele Bassi) * Ignore weird `/etc/localtime` configurations generated by toolbx (work by Ray Strode) * Avoid `EINTR` races when closing FDs in `g_spawn_*()` (work by Thomas Haller) * Bugs fixed. Overview of changes in GLib 2.74.0, 17-09-2022 ============================================== * Use EPOLL_CLOEXEC by default (Colin Walters) * Fixed various regression on GRegex as per the PCRE2 porting (Marco Trevisan) * Fixed various memory leaks (Sebastian Keller, Marco Trevisan) * Bugs fixed: - GNOME/gtksourceview-278 Failed to load html.lang after GLib switched to PCRE2 (Marco Trevisan (TreviĂąo)) - GNOME/gtksourceview-283 GRegex-on-PCRE2 regressions (Marco Trevisan) - -2688 Follow-up from "replace pcre1 with pcre2" (Marco Trevisan (TreviĂąo)) - -2713 static_assert is undefined in C99 (wen Rafferty) - -2719 GParamSpec constructors should have nullable annotation on nick/blurb (Andy Holmes) - -2729 GRegex/GMatchInfo related crashes after upgrade to 2.73.2 (Marco Trevisan) - -2733 gio: GVariantBuilder builder leaked in g_document_portal_add_documents when URI list is empty (Sebastian Keller) - -2737 gio mount coredumps on prompt exit since 2.73 (Marco Trevisan) - -2741 Memory errors on GRegex (Marco Trevisan (TreviĂąo)) - GNOME/gtk-4400 gtk_show_uri can't open browser on MSYS2 on Windows (Luca Bacci) - !2820 ci: Expose the coverage report and docs as links in the MR's (Marco) - !2855 gtlscertificate: Update reference to G_TLS_CERTIFICATE_NO_FLAGS - !2861 mem: Document OOM behavior for allocations (Matthias Clasen) - !2868 gio-unix: Use EPOLL_CLOEXEC by default (Colin Walters) - !2873 Fix array-bounds compiler warnings with GCC 12 (Emmanuele Bassi) - !2874 tests, GDesktopAppInfo: Fix various GVariant leaks (Marco Trevisan) - !2875 g_strsplit: Use a pre-allocated GArray when max_tokens is provided (Marco Trevisan) - !2876 GActionGroup: Fix ownership transfer annotation for query_action() (Andy Holmes) - !2879 gioenumtypes: Only define GLIB_DISABLE_DEPRECATION_WARNINGS if needed (Marco Trevisan) - !2881 GWin32AppInfo: Add missing g_spawn_close_pid (Luca Bacci) - !2882 meson: Set install_tag on all tools (Xavier Claessens) - !2883 ci: Improve style check script (Matthias Clasen) - !2900 docs: Improve wording in documentation of g_unix_signal_source_new() (Tom Levy) @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.17 2022/07/24 21:24:56 wiz Exp $ d15 1 a15 1 --- meson.build.orig 2022-10-25 12:53:22.000000000 +0000 d17 1 a17 1 @@@@ -874,7 +874,7 @@@@ if host_system == 'darwin' d25 2 a26 2 endif @@@@ -2167,18 +2167,17 @@@@ if host_system != 'windows' and get_opti d47 1 a47 1 @@@@ -2281,7 +2280,7 @@@@ glib_conf.set('HAVE_PROC_SELF_CMDLINE', d56 1 a56 2 @@@@ -2290,7 +2289,7 @@@@ if not python_version.version_compare(py endif d59 2 a60 1 -have_bash = find_program('bash', required : false).found() # For completion scripts d64 2 a65 2 @@@@ -2299,8 +2298,7 @@@@ env_program = find_program('env', requir @ 1.17 log @glib2*: update to 2.72.2 Overview of changes in GLib 2.72.2 ================================== * Bugs fixed: - #2640 UWP warnings about extensions and verbs with glib 2.72.1 - !2605 Backport !2449 and !2600 mingw test fixes to glib-2-72 - !2616 Backport !2615 “Meson: Fix gio-windows-2.0 override name” to glib-2-72 - !2629 Backport !2626, !2627 minor leak fixes to glib-2-72 - !2643 Backport !2642 “meson: Check rres.compiled() before calling rres.returncode()” to glib-2-72 - !2644 Backport !2631 “Cast to guintptr instead of subtracting by null” to glib-2-72 - !2662 Backport !2654 “gtask: use g_strconcat() in g_task_return() only if needed” to glib-2-72 - !2691 Backport !2661 “win32appinfo: change log level from warning to debug” to glib-2-72 Overview of changes in GLib 2.72.1 ================================== * Fix building projects which use g_warning_once() with clang++ (#2625) * Fix `g_file_trash()` not deleting directories via the portals backend (work by Matthias Clasen) (#2629) * A number more compiler warnings fixed for MSVC (work by Loïc Le Page) (!2495) * Fix detection of broken `poll()` function on macOS (work by Haruka Ma) (!2571) * Fix spawning subprocesses from GUI programs on Windows (work by Marc-André Lureau) (!2582) * Bugs fixed: - #2312 gdbus-test-codegen tests leak GWeakRef objects - #2625 g_warning_once fails to build with clang++ - #2629 g_file_trash() does not work on directories inside a sandbox - !2495 Cleanup warnings split 6 - !2499 Various contenttype-related test fixes on win32 - !2534 gpowerprofilemonitor: Tweak wording of documentation to make more sense - !2540 Various win32 tests skip & fixes - !2541 meson: simplify lookup of python command - !2543 ci: Update the Fedora CI image to Fedora 34 - !2556 gdbusconnection: Use g_strv_contains() rather than a home-grown version - !2557 gdbusmethodinvocation: Fix a leak on an early return path - !2558 Move unit test on g_basename() function to glib/tests/fileutils.c - !2559 Move tests/relation-test.c to glib/tests/relation.c - !2560 ci: Update Coverity, mingw and Android CI images to Fedora 34 - !2563 glib: Format GDateTime ISO8601 years as %C%y - !2564 Move test files on slices from tests/ to glib/tests/ - !2566 tests: Add more tests for GResolver response parsing - !2573 Backport translation fixes and !2571 “meson: Set BROKEN_POLL in macOS builds” to glib-2-72 - !2574 Backport !2565 “Revert "meson: simplify lookup of python command"” to glib-2-72 - !2587 Backport !2583 “Fix trashing sandboxed directories” to glib-2-72 - !2588 Backport !2582 “glib/win32: fix spawn from GUI regression” to glib-2-72 - !2590 Backport !2589 “tests: Don’t exit gdbus-method-invocation test early on connection close” to glib-2-72 - !2593 Backport !2578 “gatomic: Add a C++ variant of g_atomic_int_compare_and_exchange()” to glib-2-72 Overview of changes in GLib 2.72.0 ================================== * Bugs fixed: - #2620 g_time_zone_new_offset() assertion failure if offset >= 25 hours - !2538 Various unit test fixes - !2542 fuzzing: Fix test failure with G_DISABLE_ASSERT - !2547 gprintf: Fix a memory leak with an invalid format in g_vasprintf() - !2548 tests: Various fixes to gdbus-auth, gdbus-non-socket, gdbus-connection-flush, spawn-multithreaded tests - !2551 tests: More flaky test fixes to converter-stream and test-printf - !2552 gtlsconnection: fix typo in docs Overview of changes in GLib 2.71.3 ================================== * Fix flaky `GDebugController` tests (!2504) * Numerous small documentation updates * Bugs fixed: - #517 g_utf8_collate returns 0 on U+C5D0 vs U+CD94 - #1929 gdbus-connection-flush: setup_client_cb: Exhausted all available authentication mechanisms (tried: EXTERNAL, DBUS_COOKIE_SHA1) - #2589 Hash sign misinterpreted as heading - #2598 g_main_loop_run() may leak a GMainLoop reference - #2609 Clarify documentation for g_log_set_debug_enabled() - #2611 Unspecified options considered present - #2612 side effects of ensure_valid_dict result used in g_return_if_fail macro - #2613 Naked magic literal in gvariant.h - !1707 Add cache to g_unix_mount_points_get() - !2424 Remove old test file tests/testglib.c - !2451 glib: fix buffer overflow in g_canonicalize_filename() - !2466 Various minor fixes for empty argv handling - !2480 Various glib/tests/date fixes on win32 - !2485 Various spawn-related test fixes on win32 - !2490 Cleanup warnings split 1 - !2491 Cleanup warnings split 2 - !2492 Cleanup warnings split 3 - !2493 Cleanup warnings split 4 - !2501 glib-compile-resources: Fix a memory leak of the compiler option - !2502 tests: Merge iochannel-test into io-channel tests in glib directory - !2503 gbacktrace: Fix a set-but-not-used variable - !2504 gdebugcontrollerdbus: Track pending tasks with weak refs - !2505 tests: Stop ignoring test failures on macOS - !2506 gresource-tool: Fix unused-but-set-variable warn with G_DISABLE_ASSERT - !2507 ci: Drop custom dependency builds from installed-tests - !2508 codegen: Reformat parser.py according to black - !2509 tests: Fix various small memory leaks - !2510 gdesktopappinfo: Fix a leak when launching URIs over D-Bus - !2512 doc: Extend a bit G_DECLARE_* documentation example - !2513 gmain: Expand documentation about GSource priorities a little - !2514 ci: Various cleanups and moving Android API 21 and FreeBSD 12 to scheduled run - !2515 gmessages: Fix typo in docs - !2516 glocalfileinfo: Always define _g_stat_mtim_nsec, etc. - !2517 meson: Add schemasdir and giomoduledir to gio dependency - !2518 meson: Set GIO_EXTRA_MODULES in devenv - !2519 gdebugcontrollerdbus: Mark a variable as G_GNUC_UNUSED - !2520 tests: Remove threads from mock-resolver/network-address test - !2523 Add handling of NULL time_t* pointer as argument - !2524 Revert "meson: Add schemasdir and giomoduledir to gio dependency" - !2525 meson: Add schemasdir and giomoduledir to gio dependency - !2526 Remove unused test tests/testgdateparser.c - !2527 Move tests/type-test.c to glib/tests/types.c - !2528 meson: Add PYTHONPATH to load GDB helper module - !2531 gtask: Document that task name is set by g_task_set_source_tag() Overview of changes in GLib 2.71.2 ================================== * Rework `glib-compile-resources` to output compiler-specific files to reduce compilation time; see the new `--compiler` option (work by Emmanuele Bassi) (#2492) * Add a cross-platform API for aligned memory allocations (`g_aligned_alloc()`, `g_aligned_alloc0()` and `g_aligned_free()`) (work by Emmanuele Bassi) (#2574) * Deprecate `force_posix_threads` configure option, since it was a workaround for static linking on Windows (#2592) * Add `GBindingGroup` and `GSignalGroup` APIs (work by Christian Hergert and Garrett Regier) (!2235) * Implement FD remapping support for `g_spawn_async_with_pipes_and_fds()` on Windows (work by Marc-André Lureau) (!2458) * Add an async file move API, `g_file_move_async()` (work by Lucas Schwiderski) (!2469) * Bugs fixed: - #1190 gapplication: Add an org.gtk.Debugging interface - #2329 GApplication CLI parsing of DOUBLE type failure - #2492 glib-compile-resources contains resource data twice and creates large output files - #2563 g_test_build_filename and friends not safe to call after g_test_run() has finished - #2574 Add API for aligned allocations - #2592 Consider deprecating 'force_posix_threads' build option - #2601 Missing tag in generated files - !2235 Add GBindingGroup and GSignalGroup - !2378 gtestutils: Mention the unit used for the test timer - !2404 File tests - !2433 Remove tests/testgdate.c from tests - !2458 Implement fd passing for Windows spawn - !2464 Amend g_bus_get* documentation regarding private connection - !2465 gi: expose some files as variable for gobject-introspection - !2467 ci: Add link to Coverage output at end of coverage job - !2468 gfile: resolve_relative_path isn't nullable - !2469 Implement async file movement - !2471 Fix test on the date format for FreeBSD and MacOS X. - !2472 Fix test date (again)... - !2473 Fix glib/test/date.c for FreeBSD/OpenBSD/MacOS X - !2476 Add G_UNICODE_SCRIPT_MATH to GUnicodeScript - !2477 Improve coverage of two digit years in gdate tests - !2481 Fix glib/tests/fileutils on win32 - !2482 Fix unit test on date format '%Z' which is too versatile to be trustable - !2483 Fix glib/tests/gdatetime on win32 - !2484 tests: Use g_test_skip() to skip a test on Windows - !2487 gconstructor.h: Visual Studio: Only include gslist.h if needed - !2488 Fix some problems with g_aligned_alloc() tests Overview of changes in GLib 2.71.1 ================================== * Basic support for static builds on Windows (work by Loïc Le Page, Marc-André Lureau, with contributions from Xavier Claessens, Nirbheek Chauhan, Charlie Barto, Luca Bacci, Amos Wenger) (#692, #2585, !2442) * Add `GDebugController` and a D-Bus implementation which exposes whether debug output is enabled in a process using the `org.gtk.Debugging` D-Bus interface (work by Philip Withnall) (#1190) * Support for `AF_UNIX` sockets on Windows 10 (and later) (work by Marc-André Lureau) (#2487) * Several important fixes to GDBus message and GVariant parsing of invalid data (work by Sebastian Wilhelmi) (#2557, #2572) * Fix potential data loss due to missing fsync when saving files on btrfs (work by Sebastian Keller) (!2425) * Fix potential buffer overflows in `garray.c` for very large `GArray`s and `GPtrArray`s (work by Tobias Stoeckmann) (#2578) * Fix FDs in gspawn not being closed and causing process hangs if `close_range()` fails unexpectedly (work by Dan Nicholson) (#2580) * Fix `g_find_program_in_path()` not returning an absolute path if `$PATH` is relative (work by Christoph Niethammer) (#2586) * Add support for loading PKCS#12 encrypted files in `GTlsCertificate` (work by Patrick Griffis) (!2239) * A number of improvements to unit tests (work by Emmanuel Fleury, Charlie Barto) (!2399, !2400, !2402, !2403, !2428, !2431, !2432, !2434) * Support `LOCAL_PEERPID` on macOS, giving partial support for PIDs in `GCredentials` on that platform (work by Ignacio Casal Quinteiro) (!2362) * Add `g_get_user_state_dir()` to support `XDG_STATE_HOME` (work by Sophie Herold) (!2395) * Add `g_hash_table_new_similar()` to copy a hash table and its hash/equal functions without its data (work by Jonas Ådahl) (!2405) * Support D-Bus client authentication with `EXTERNAL` on Windows (work by Marc-André Lureau) (!2429) * Add a reStructuredText documentation generator to `gdbus-codegen` (work by Emmanuele Bassi) (!2448) * Add a Windows implementation of `GMemoryMonitor` (work by Marc-André Lureau) (!2452) * Bugs fixed: - #692 meta: Fix static build on Windows - #1190 gapplication: Add an org.gtk.Debugging interface - #2487 Add support for native unix domain sockets on WIN32 to GLib.Socket and related classes - #2550 possible GDateTime issue with localtime on Illumos/Solaris - #2557 Arrays of zero-element tuples with non-zero length lead to infinite loops in g_dbus_message_new_from_blob - #2559 2.71.0: compile and link time warnings - #2560 Link error xdgmime.c: unresolved external symbol S_ISREG when building with VS2022 - #2564 Hangul Jamo Extended-B should be 0-width - #2565 Build glib-2.71.0 failed in Windows using MSYS2-MINGW64 - #2571 Cross build error "undefined reference to `_g_binary_test1_resource_data'" when building tests for Windows on openSUSE Leap - #2572 Check for GVariant recursion depth before recursing - #2578 buffer overflows in garray.c - #2579 Outdated paths in INSTALL.in - #2580 gspawn doesn't set CLOEXEC if close_range fails unexpectedly - #2582 glib 2.71.0 muslc - build error missing sentinel in function call - #2585 Static link issue on Windows due to resource files being linked in twice - #2586 g_find_program_in_path not returning an absolute path - !2239 gtlscertificate: Add ability to load PKCS#12 encrypted files - !2362 credentials: support the local peerpid on macos - !2384 meson: Fix linking with static library in Windows - !2395 utils: Add XDG_STATE_HOME support - !2399 Move tests/env-test.c into glib/tests/environment.c - !2400 Prevent gtest tests from popping up dialog boxes - !2402 Improving glib/tests/environment.c - !2403 Improve test coverage of glib/tests/asyncqueue.c - !2405 ghash: Add g_hash_table_new_similar - !2407 tests: Fix environment test on FreeBSD - !2411 annotate `g_content_type_guess` parameter as filename - !2412 paramspec: fix unref annotation - !2413 Use meson dependency to link against apple framework - !2414 docs: Improve docs for gdbusutils.c - !2417 gtestutils: Fix minor typos in the g_test_get_filename() docs - !2423 Make clear in doc that signals are emitted synchroniously - !2425 gfileutils: Remove outdated BTRFS fsync optimization from set_contents - !2426 gdbus-codegen: Fix a typo in a comment - !2428 Merge tests/gobject/gvalue-test.c with gobject/tests/value.c - !2429 gdbus: make client work with EXTERNAL on Windows - !2431 Merge tests/gobject/paramspec-test.c into gobject/tests/param.c - !2432 Merge test/unicode-caseconv.c into glib/tests/unicode.c - !2434 Remove a disabled test case that was covered by glib/tests/collate.c - !2440 Improve g_ascii_formatd docs and preconditions - !2441 Reduce the amount of compile-time warnings - !2442 Fix tests with static build on Windows - !2447 giowin32: use gint64 and _lseeki64 - !2448 Add reStructuredText documentation generator for gdbus-codegen - !2452 gio/win32: add GMemoryMonitorWin32 - !2453 Add `(array length)` annotation to `g_tls_certificate_new_from_pkcs12()` - !2454 gdbusmessage, gvariant and garray fixes - !2456 tests: Pass --internal and -z noexecstack to glib-compile-resources tests - !2459 gio: add missing zlib dependency in gio-windows-2.0.pc - !2461 Fix memory leak in gio/gdbusauthmechanismsha1.c - !2463 Revert "Merge branch 'fix-windows-pc' into 'main'" Overview of changes in GLib 2.71.0 ================================== * Fix network changes not being signalled from NetworkManager (work by Julian Andres Klode) (#2505) * Fix build when building with --fatal-meson-warnings (work by Eli Schwartz) (!2304) * Fix use of the default log writer with journald namespaces (diagnosis by Ilya Basin) (#2530) * Fix hang in `dbus-daemon` under `GTestDBus` when `G_MESSAGES_DEBUG=all` is set (work by Marco Trevisan) (#2537) * Speed up `g_canonicalize_filename()` to avoid pathogenic cases with `..` (work by Sebastian Wilhelmi) (#2541) * Fix URI for pcre subproject as it’s moved upstream (work by Albert Astals Cid) (!2324) * Fix storing GSettings dictionaries on macOS (work by Maurice) (#2527) * Speed up ‘remove dot segments’ algorithm in `GUri` to avoid pathogenic cases with `..` (work by Sebastian Wilhelmi) (#2526) * Fix infinite loops in D-Bus message parsing for truncated inputs (work by Sebastian Wilhelmi) (#2528) * Improve correctness of version information returned by `g_get_os_info()` for Windows 10/Server 2019+ (work by Chun-wei Fan) (#2443) * Various fixes to GWeakRef cleanup (#865, #2390) and toggle refs (#2394) (work by Marco Trevisan) * Add `G_DBUS_PROXY_FLAGS_NO_MATCH_RULE` flag for disabling match rules when creating a `GDBusProxy` (#1109) * Fix FD remapping in `g_spawn_async_with_pipes_and_fds()` with certain values of target FDs (#2503, #2506) (work by Michael Catanzaro) * Make `GDBusProxy::g-signal` signal detailed with D-Bus signal names (#2536) (work by Aleksandr Mezin) * Emit `launched` signal for D-Bus activation of apps with `GDesktopAppInfo` (!2227) (work by Guido Günther) * Fix IDs of `GDesktopAppInfo`s which are constructed from a `.desktop` file in a subdirectory (!2283) (work by Ivalyo Dimitrov) * Add `--interactive` option to `gdbus call` (!2329) * Add `G_SUBPROCESS_FLAGS_SEARCH_PATH_FROM_ENVP` to `GSubprocess` (!2333) (work by Hristo Venev) * Bugs fixed: - #475 Add g_alloca0() and g_newa0() - #847 g_set_prgname() should be thread-safe - #865 GWeakRefs not cleared by g_object_run_dispose() - #1109 [PATCH] GDBusProxy: add G_DBUS_PROXY_FLAGS_NO_MATCH_RULE flag - #1231 gobject declare macros cause alignment warnings on armhf/armhf/mipsel - #1331 GArray with 10 million items overflows index arithmetic - #1735 Get back to a -werror build - #1781 Sort output of gsettings command-line tool - #2310 contenttype test leaks xdg-mime internal data - #2390 GWeakRef's aren't cleared again on finalization (and not fully thread-safe) - #2394 Toggle refs notification may not handle multiple threads correctly - #2400 Use-after-free in invoke_set_property_in_idle_cb() - #2401 GDBus runtime warning from remove_interfaces() - #2404 GTask: clarify that GTask assumes are running mainloop - #2426 GSettings delayed apply generates runtime warnings - #2443 Add Windows 11 support to get_windows_version() - #2468 GSequence pessimizes itself and slows down - #2471 g_output_stream_write_all_async prints error when count == 0 and content == NULL - #2488 Unix password unit test fails on FreeBSD 13 - #2489 Add a (diagnostic) warning for finalized objects with floating refs - #2490 Upgrade to Unicode Character Database 14.0 - #2496 Wrong parameter type for g_simple_proxy_resolver_set_ignore_hosts - #2498 GIR: Remove non-existing IOModule methods `load`, `unload` - #2500 Able to export object manager and object on root path, but not other paths - #2503 gspawn.c may clobber target fds - #2505 g_network_monitor_nm never updates on connection change (listens for signal on wrong dbus interface) - #2506 gspawn.c fails to close child_err_report_fd if it is duped to avoid conflation with one of the target_fds - #2507 Strange behavior of GFileEnumerator with GVfs locations - #2514 test suite failure in glib/tests/gdatetime.c if German locale de_DE.ISO-8859-1 is available - #2518 Misleading message when privileged program starts G_BUS_TYPE_SESSION - #2520 g_date_new_ functions return NULL on invalid input - #2523 MacOS generates warnings for g_size_checked_mul() - #2526 fuzz_uri_parse failure - #2527 Error storing dictionary with string keys as GSettings on macOS - #2528 g_dbus_message_new_from_blob goes into infinite loop for certain inputs - #2529 load_user_special_dirs returns NULL in certain cases - #2530 g_log_writer_is_journald fails if a Journal Namespace is used - #2536 GDBusProxy: make g-signal detailed - #2537 GTestDBus dbus daemon causes child process to hang when using verbose output - #2541 g_canonicalize_filename should work in linear time complexity - #2553 Consider not depending on strtoull_l and strtoll_l as much - !1960 Add g_main_context_new_with_flags() and ownerless polling option - !1968 gspawn: Implement fd remapping for posix_spawn codepath, and fix file descriptor conflation issues - !1991 Keyfile parsing performance improvements - !2029 Updating xdgmime - !2064 gobject: Cleanup GWeakRef locations on object finalization - !2114 Coerce type cast to void* because it causes compiler warnings - !2191 docs: Add .editorconfig file - !2214 Document potential footgun with GTlsCertificateFlags and deprecate certain usages - !2223 Better detection of the cleanup attribute. - !2227 gdesktopappinfo: Emit "launched" signal for D-Bus activation too - !2242 gsettings: Add various missing (nullable) or (not nullable) annotations - !2244 gutils: Avoid segfault in g_get_user_database_entry - !2245 gdesktopappinfo: Do not call xterm when it does not exist, inform the caller the launch failed - !2246 gobject: Document it’s unsafe to call g_object_ref() from GWeakNotify - !2249 Add version macros for GLib 2.72 and bump version to 2.71.0 - !2251 GString: Bump minimum size - !2254 Small optimization for g_object_set - !2255 gobject: Clarify behaviour of adding weak refs during disposal - !2257 Fix documentation for g_dbus_object_manager_get_object(). - !2260 GWin32AppInfo: Do not assert about successful open'ing of registry keys - !2261 Provide built DLLs as Gitlab-CI artifacts - !2266 fix uninitial variable - !2273 Fix more (Windows) warnings - !2277 Revert "Don't compile some unused functions in gio/xdgmime/" - !2283 GDesktopAppInfo: Try to always correctly set id - !2284 update the proxy-libintl subproject to the latest release - !2285 fix issues found by svace static code analyzer - !2286 meson: fix warnings for extract_all_objects function - !2287 ci: Update CI images to latest stable Debian and Fedora, bump Meson dependency to 0.52 - !2288 Update g_source_remove doc comment: the function doesn't always return TRUE - !2289 Update g_source_remove documentation for the returned value - !2290 mkdir path specified by XDG_RUNTIME_DIR - !2292 Fix cast from pointer to integer of different size warning in gio/gwin32appinfo.c - !2293 glib-private: Fix MSVC build with AddressSanitizer - !2294 Fix windows warnings - !2295 gutf8: Document that out args from g_utf16_to_utf8() are non-negative - !2303 Fix more windows warnings - !2305 gio: document GFile API when relative path is absolute - !2306 gunixmounts: Drop references to pamconsole mount option - !2308 gthread-win32: Remove an unnecessary volatile qualifier - !2309 Rename libpcre.wrap to pcre.wrap - !2310 tests: Fix a typo in a test message in gdatetime.c - !2311 Fix always true comparison warning in glib/garray.c - !2319 docs: Fix the GListModel description - !2323 Fix final warnings in Windows code - !2324 Fix link to pcre-8.37.tar.bz2 - !2326 Improve some documentation related to GTlsDatabase - !2328 gutf8: add string length check when ending character offset is -1 - !2329 gdbus: Add --interactive option to `gdbus call` - !2332 Changed gendered terms to be gender-neutral - !2333 gsubprocess: Add G_SUBPROCESS_FLAGS_SEARCH_PATH_FROM_ENVP - !2336 tests: Drop arbitrary and flaky waits from actions tests - !2339 ci: Bump Meson version to 0.60.1 on macOS - !2341 tests: Wait for gdbus-testserver to die when killing it - !2342 tests: Reformat mkenums.py slightly to make run-black.sh happy - !2345 gutils: Disable some dead code on macOS - !2347 Removing tests/asyncqueue-test.c from tests/ - !2348 gio/tests/codegen.py: bump timeout to 100 seconds - !2349 Annotate `g_getenv()` and `g_environ_getenv()` return value as `nullable` - !2352 tests: Fix a flaky wait in converter-stream - !2353 Address some oddities around GResolver::reload - !2357 ci: Upgrade to clang-format-11 from clang-format-7 - !2360 meson: specify when commands need to succeed in run_command - !2364 tests: Allow `objcopy --help` to fail, because it fails on FreeBSD - !2365 Add vfunc checks in gappinfo.c - !2368 De-duplicate g_nearest_pow() implementation and add some overflow protections to g_ptr_array_maybe_expand(), g_string_maybe_expand() and g_string_chunk_insert_len() - !2370 gqsort: Move test to glib/tests/ - !2371 Freeze notification during object destruction - !2372 docs: Improve GVariant docs - !2373 glib.supp: Suppress one-time allocation in g_get_home_dir() - !2376 GSource: move test to glib/tests/ - !2379 Merging tests/bit-test.c into glib/tests/utils.c - !2381 tests: Test the function forms of g_bit_*() APIs too - !2382 gfileutils: Correctly reset start value when canonicalising paths - !2385 gfileutils: Fix transfer annotation and whitespace issues - !2386 docs: Add API documentation links to the README - !2387 docs: Update the README a little - !2390 Merging tests/child-test.c into glib/tests/spawn-multithreaded.c - !2391 Removing redundant cxx test tests/cxx-test.cpp - !2392 Move tests/completion-test.c to glib/tests/completion.c - !2393 Removing unnecessary test on gdatetime.c - !2396 fuzzing: Add a fuzz test for parsing DNS records - !2397 Moving tests/dirname-test.c to glib/tests/fileutils.c - !2398 fix /list/position test @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.16 2021/10/15 15:04:47 jperkin Exp $ d15 1 a15 1 --- meson.build.orig 2022-05-30 13:26:47.000000000 +0000 d17 1 a17 1 @@@@ -821,7 +821,7 @@@@ if host_system == 'darwin' d26 1 a26 1 @@@@ -2159,18 +2159,17 @@@@ if host_system != 'windows' and get_opti d47 1 a47 1 @@@@ -2271,9 +2270,12 @@@@ endif d49 2 a50 4 glib_conf.set('HAVE_PROC_SELF_CMDLINE', have_proc_self_cmdline) -python = import('python').find_installation('python3') -# used for '#!/usr/bin/env ' a51 4 +python = import('python').find_installation('python3', required: false) +if not python.found() + python = import('python').find_installation() +endif a52 1 + d56 1 a56 1 @@@@ -2282,7 +2284,7 @@@@ if not python_version.version_compare(py d65 1 a65 1 @@@@ -2291,8 +2293,7 @@@@ env_program = find_program('env', requir @ 1.16 log @glib2: Put back SunOS xattr fix. For some reason this was removed in the last update. @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.15 2021/10/11 10:03:47 cirnatdan Exp $ d15 1 a15 1 --- meson.build.orig 2021-09-17 10:17:56.849962700 +0000 d17 1 a17 1 @@@@ -778,7 +778,7 @@@@ if host_system == 'darwin' d25 2 a26 11 osx_ldflags += ['-Wl,-framework,Foundation', '-Wl,-framework,AppKit'] @@@@ -2047,7 +2047,7 @@@@ endif # FIXME: glib-gettext.m4 has much more checks to detect broken/uncompatible # implementations. This could be extended if issues are found in some platforms. libintl_deps = [] -if cc.has_function('ngettext', args : osx_ldflags) +if cc.has_function('ngettext', args : osx_ldflags) and host_system != 'sunos' have_bind_textdomain_codeset = cc.has_function('bind_textdomain_codeset') else # First just find the bare library. @@@@ -2118,18 +2118,17 @@@@ if host_system != 'windows' and get_opti d47 1 a47 1 @@@@ -2230,9 +2229,12 @@@@ endif d63 1 a63 1 @@@@ -2241,7 +2243,7 @@@@ if not python_version.version_compare(py d72 1 a72 1 @@@@ -2250,8 +2252,7 @@@@ env_program = find_program('env', requir @ 1.15 log @glib: Update devel/glib2 to 2.70.0 Overview of changes in GLib 2.70.0 ================================== * Bugs fixed: - !2248 ci: Replace FreeBSD 11 with FreeBSD 13 * Translation updates: - Croatian - Danish - English (United Kingdom) - French - German - Hungarian - Polish - Swedish - Turkish Overview of changes in GLib 2.69.3 ==================================   * Bugs fixed: - #2425 g_settings_schema_key_range_check() misbehaves for int versus bool - #2472 Compiling anything with GCC <4.6 spews deprecation warnings - #2477 `g_invoke_closure` bindings API break. - #2481 GPowerProfileMonitorPortal does not notice initial power-saver-enabled status - !2219 doc: Explicitly said, that no null term. is needed - !2238 ci: Use C.UTF-8 locale on FreeBSD 12 - !2240 gio: Fix conditions in memory-monitor test * Translation updates: - Basque - Catalan - Chinese (China) - Galician - Kazakh - Korean - Lithuanian - Romanian Overview of changes in GLib 2.69.2 ================================== * The `DBUS_SESSION_BUS_ADDRESS` environment variable is once more not used if the process is `AT_SECURE` (setuid/setgid/setcap); this change was previously applied and then reverted because it broke gnome-keyring (#2316) * Add `g_test_fail_printf()`, `g_test_skip_printf()`, `g_test_incomplete_printf()` helper functions for printing messages when tests end prematurely (work by Simon McVittie) (!2215) * Add portal implementation of `GPowerProfileMonitor` (work by Bastien Nocera) (!2222) * Bugs fixed: - #2316 Re-harden DBUS_SESSION_BUS_ADDRESS for AT_SECURE processes in GLib 2.70 - #2343 Document explicitly refcount mgmt of source-object during GAsyncReadyCallbacks - #2454 Read past the end of buffer in g_win32_package_parser_enum_packages - #2456 Frequent test failure on FreeBSD: glib/tests/thread-pool.c:197:test_thread_pool_full: 'free_func_called' should be TRUE - !2157 tests: Add missing wakeup calls to gdbus-names test - !2165 docs: Mention the stable/unstable support version in README.md - !2211 Improve documentation of various TLS stuff - !2215 gtestutils: Add more convenience functions - !2216 tests: Fix error handling when testing gtestutils - !2222 gio: Add portal version of GPowerProfileMonitor - !2224 Docs: Mention that G_VA_COPY() must be followed by `va_end()` - !2225 build: Fix implicit declaration of function errors - !2226 Annotate the GString constructors * Translation updates: - Czech - Hebrew - Slovenian - Spanish - Swedish Overview of changes in GLib 2.69.1 ================================== * Support categories in desktop notifications (`GNotification`) (work by Guido Günther) (#2446) * Add `GPowerProfileMonitor` for monitoring when to use less power (due to being on battery power, electricity being expensive or high-carbon, etc.) (work by Patrick Griffis, Bastien Nocera) (#2444) * Allow static names to be set for `GSource`s to avoid unnecessary string copies (work by Matthias Clasen) (!2196) * Bugs fixed: - #203 API: need g_module_open() variant with GError - #2058 win32: GPrivate can leak some objects - #2321 Add a GTypeFlag for final types - #2429 safe_fdwalk/safe_closefrom for Solaris 11.3/11.4 - #2439 gio trash doesn't recognize existing trash directory in non-fs-root mount - #2446 Support `categories` for notifications - #2452 g_string_replace() loops 2**32 times when replacing empty string - !2177 gio/tests/g-file-info: don't assume million-in-one events don't happen - !2178 Clarify GValue documentation - !2179 Update GValue doc: How to use GBoxed with GValue - !2180 correctly use 3 parameters for close_range - !2181 gclosure: Fix the invoke() return_value annotation - !2182 glocalfileinfo: Fix usec/nsec confusion with filetimes on Windows - !2184 gspawn: Use CLOSE_RANGE_CLOEXEC if available - !2188 g_boxed_type_register_static, G_DEFINE_BOXED_TYPE: added correlating information - !2192 Fix more warnings - !2193 glib.supp: Expand match kinds for g_get_language_names() suppressions - !2194 Add GPowerProfileMonitor - !2195 Fix some test suite memory leaks - !2196 mainloop: Add g_source_set_static_name - !2197 GResource compiler: Prefix static [con|de]strutors with c_name - !2198 Port internal uses to use g_source_set_static_name() - !2200 Fix doc stanzas for GDataInputStream properties - !2201 Fix a Unicode typo - !2202 Document the stance on ID-based mainloop APIs - !2204 tests: Add a test for Unicode normalization - !2205 GWin32RegistryKey / GWin32AppInfo registry watch fixes - !2206 Adapt documentation to gi-docgen - !2210 GWin32AppInfo: Fix missing initialization * Translation updates: - Indonesian - Portuguese - Portuguese (Brazil) - Russian - Ukrainian Overview of changes in GLib 2.69.0 ================================== * Fix a crash in `GKeyFile` when parsing a file which contains translations using a `GKeyFile` instance which has loaded another file previously (#2361) * Pin GIO DLL in memory on Windows (!2016) * Fix building third-party projects against GLib on CentOS 7 (work by Ignacio Casal Quinteiro) (#2387) * Add `g_thread_pool_new_full()` API to allow queued `GThreadPool` data to be freed if the pool is freed early (work by Nitin Wartkar) (#121) * Ensure `dlerror()` is used with locking as it’s not thread-safe in some libc implementations (#399) * Add `g_dbus_is_error_name()` and `g_dbus_is_interface_name()` convenience functions (work by Nitin Wartkar) (#402) * Drop internal libpcre copy in favour of a subproject from wrapdb (#962, #642) * Add `g_prefix_error_literal()` helper function (work by Emmanuel Fleury, building on work by Dan Williams) (#663) * Add `g_bytes_get_region()` to get data from a `GBytes` with range checks (work by Nitin Wartkar, building on work by Allison Karlitskaya) (#1098) * Add `g_object_take_ref()` to sink a floating ref (work by Nitin Wartkar, building on work by Allison Karlitskaya) (#1112) * Optimise grefcount atomic operations (work by Nishal Kulkarni) (#1583) * Fix resolving child GSettings schemas from the parent’s schema source (work by Christian Persch) (#1884) * Fix `g_date_time_format()` return value encoding if `LC_TIME` is not a UTF-8 locale but other locale settings are (work by Frederic Martinsons) (#2055) * Set app name in freedesktop.org notifications with `GNotification` (work by André Apitzsch) (#2069) * Significantly improve retrieval of mount data on Windows (work by LRN based on initial analysis by Jehan Pagès) (#2096) * Add `g_file_info_get_(access|creation)_date_time()` accessors (work by Abanoub Ghadban) (#2281) * Always apply the remove_dot_segments algorithm to URIs in `g_uri_parse()`; previously it was only applied to relative URIs (work by Carlos Garcia Campos) (#2342) * Rename git `master` branch to `main` (#2348) * Various macro and version check cleanup (work by Gaël Bonithon, Robin Verdenal-Tallieux, Nishal Kulkarni) (#2376, #2388, #2389) * Add a `GTlsConnectionClass.get_negotiated_protocol` vfunc so that `g_tls_connection_get_negotiated_protocol()` can be made thread-safe (work by Michael Catanzaro) (#2393) * Improve guess about whether a Windows process is a console process (work by Princeton Ferro with input from LRN) (!1662) * Add `g_steal_fd()` function (work by Simon McVittie) (!1966) * Add `g_spawn_check_wait_status()` and distinguish more carefully between wait status and exit status in the `GSpawn` API (work by Simon McVittie) (!1967) * Document GLib’s security policy; see https://gitlab.gnome.org/GNOME/glib/-/blob/main/SECURITY.md (!1985) * Add `g_tree_remove_all()` (work by Lighto-Ku) (!1986) * Simplify exception handling on Windows to eliminate risk of it failing due to prior heap corruption (work by LRN) (!2031) * Fix handling EOF when reading from SOCKS5 proxy stream (work by Benjamin Berg) (!2032) * Unset the registered state of a `GApplication` after it has shut down (work by Marco Trevisan) (!2056) * Support `GPattern` as a boxed type (work by Marco Trevisan) (!2066) * Add `g_tls_connection_get_protocol_version()` and `g_tls_connection_get_ciphersuite_name()` to get TLS connection information (work by Michael Catanzaro) (!2077) * Make TLS private key properties readable in `GTlsCertificate` (work by Michael Catanzaro) (!2087) * Fix detection of static libintl when building on macOS (work by Jonas Hahnfeld) (!2109) * Add `g_strv_builder_addv()` and `g_strv_builder_add_many()` to the `GStrvBuilder` API (work by Alexandros Theodotou) (!2112) * Add `not-valid-before`, `not-valid-after`, `subject-name`, `issuer-name`, `dns-names`, `ip-addresses` properties to `GTlsCertificate` (work by Ross Wollman) (!2113, !2142) * Add PKCS#11 flags to `GTlsPasswordFlags` (work by Patrick Griffis) (!2126) * Bugs fixed: - #121 GThreadPool and the ability to free data waiting to be handled - #229 g_match_info_fetch_named not return empty string as expected - #310 ref doc doesn't talk about "helper getters" optimization in g_file_info.c - #399 dlerror() not thread-safe in all libc, making gmodule-dl.c's fetch_dlerror fail sometimes - #402 please consider: #define g_dbus_is_error_name(x) g_dbus_is_interface_name (x) - #626 Add documentation example for GArray and g_array_set_clear_func() - #642 update to pcre 8.35+ - #663 [patch] add g_prefix_error_literal() - #793 Potentially confusing error message when object doesn't exist - #817 gobject: Allow passing %NULL for @@data in g_object_remove_toggle_ref - #962 drop embedded pcre copy - #1036 gdbusproxy stops tracking if dbus service restarts - #1098 GBytes: add range-checked pointer getter - #1112 GObject: add g_object_take_ref() - #1583 Optimise gatomicrefcount operations - #1864 Somewhat misleading documentation of GSourceFuncs - #1884 `g_settings_get_child` not compatible with `g_settings_schema_source_new_from_directory` - #2011 Add additional unit tests for D-Bus name watching - #2055 g_date_time_format() does not return UTF-8 if LC_TIME is not UTF8 but other locale settings are UTF-8 - #2069 FreedesktopNotification fails to set app_name - #2096 SHGetFileInfoW() is not reliable (time-wise) - #2281 Add g_file_info_get_(access|creation)_date_time() - #2300 Crash on Windows MSVC build around gio - #2311 testfilemonitor test leaks ip_watched_file_t struct - #2340 GIO tests fail to build with clang-cl - #2342 g_uri_parse doesn't apply the remove_dot_segments algorithm to the path - #2348 Investigate renaming master git branch to main - #2352 RUN_FIRST | RUN_CLEANUP signals with a default handler ignore return values from user handlers - #2359 GLib 2.68.0: gio-querymodules segfaults on Windows - #2361 g_key_file_load_from_file segfaults on "Key[*]="like lines - #2363 g_newa() doesn’t check for multiplication overflow - #2368 g_task_run_in_thread () limits are not clear - #2369 glocalfile: Add native exfat magic number to filesystem list - #2376 GLIB_VERSION_MAX_ALLOWED < 2.60 does not warn when using G_GNUC_FALLTHROUGH - #2387 json-glib does not build with glib 2.68.1 - #2388 Pixman compilation error due to glib - #2389 Use G_GNUC_CHECK_VERSION to check the GNUC version - #2393 g_tls_connection_get_negotiated_protocol() is not threadsafe - #2397 Slow to list device in windows - #2399 Change spelling of ‘serialise’ to ‘serialize’ in documentation - #2405 Mention that GNotification requires an installed .desktop file to work - #2409 Project crashes when executing g_application_mark_busy - #2414 Devhelp: Glib Reference Manual/Glib Overview/Running Glib Applications formatting issue. - #2416 certificate: g_tls_certificate_new_from_pem invalid read on non null terminated data - #2417 GFile: `g_file_replace_contents()` reports `G_IO_ERROR_WRONG_ETAG` when saving from a symlink - #2418 gatomic: __atomic functions are called for CV-qualified output variables - #2423 resources.c:656:test_resource_binary_linked: 'found' should be TRUE - !1514 gbookmarkfile: Don't crash if we're not visited - !1662 gspawn-win32: improve guess whether process is console process - !1812 docs: Expand documentation about D-Bus GUIDs - !1957 Fix more warnings - !1965 gversionmacros: Add version macros for GLib 2.70 - !1966 Add g_steal_fd() to API - !1967 Distinguish more clearly between wait status and exit status - !1969 glib_typeof: Move definition to its own header - !1985 docs: Add a policy for handling security issues - !1986 make g_tree_remove_all public - !1996 Include glibconfig.h to get the G_OS_UNIX token - !1998 gpollableinputstream: Add missing annotation - !1999 goption.c: Simplfy parse_short_option() - !2004 Some improvements to clang-cl builds - !2005 introspection: Remove 'caller-allocates' from POD types - !2006 fuzzing: Add fuzz tests for functions which parse paths - !2008 tests: Deactivate tls-bindings test suite for windows - !2011 docs: Fix example program link - !2012 docs: Replace git.gnome.org with gitlab.gnome.org urls - !2013 fuzzing: Fix assertion failure in fuzz_paths.c - !2016 GIO W32: Pin gio DLL - !2023 gtlspassword: Fix g-i annotation of return for g_tls_password_get_value - !2025 [th/gdbus-cleanup] two minor cleanup patches for gdbusconnection.c - !2026 Split g_test_log() messages that contain multiple lines - !2027 Fix a handful of minor leaks found by Coverity - !2030 Fix more warnings - !2031 Re-simplify exception handling on Windows - !2032 gsocks5proxy: Handle EOF when reading from a stream - !2033 Fix annotation of count arguments - !2036 gmacros.h: use G_GNUC_CHECK_VERSION - !2038 Fix more warnings - !2039 Implement G_ANALYZER_NORETURN for Coverity - !2040 Fix more warnings - !2041 refcount: Clarify when the ref count ends up undefined - !2042 grefcount: Clarify that the initial reference count is 1 - !2043 gmacros.h: use g_macro__has_attribute() where possible - !2046 gerror: Clarify docs around message requirements - !2047 Fix more warnings - !2048 Fix more warnings - !2049 Fix typo in g_socket_listener_accept_async()'s comment - !2050 gdbus: document completion after idle action for g_dbus_connection_signal_unsubscribe() - !2051 Add nullable annotations in GUnixMountEntry - !2052 g_string_replace(): Fix documentation of 'limit' parameter - !2054 docs: Fix formatting of code block - !2055 Improve handling of FILENAME_MAX - !2056 application: Unset the registered state after shutting down - !2063 Fix more warnings - !2066 gpattern: Register as Boxed type and support introspection for it - !2067 gmacros: missing check if __STDC_VERSION__ is defined - !2069 gdbus-tool: Actually use argv[0] basename as program name - !2071 gstring: Cleanup documentation of g_string_replace - !2074 Fix more warnings - !2075 gdtlsconnection: Fix a check for a vfunc being implemented - !2077 tls: add functions to get protocol version and ciphersuite name - !2078 gthreadedresolver: don't ignore flags in lookup_by_name_with_flags - !2080 guuid: fix shift operation to parse hex string in uuid_parse_string() - !2081 Fix more warnings - !2085 gcredentials.h: Fix comment typo - !2087 gtlscertificate: make private key properties readable - !2088 Fix more warnings - !2090 docs: Standardize spelling of serializ* - !2091 Fix more warnings (clang) - !2098 grefcount: Optimise g_atomic_ref_count_dec - !2099 gmacros.h: G_NORETURN: remove useless checks - !2100 tests: Add missing return value check in string test - !2101 Fix more warnings - !2104 tests: Drop use of g_test_bug_base() - !2105 tests: Use a temporary file in the bookmarkfile tests - !2106 Fix more warnings - !2108 glib spawn-singlethread test only if F_DUPFD_CLOEXEC is defined - !2109 meson: Fix detection of static libintl on macOS - !2112 gstrvbuilder: add addv and add_many to the API - !2113 tls: expose cert details on GTlsCertificate - !2119 Fix more warnings - !2120 gdbusobjectmanagerclient: Call GetManagedObjects async - !2123 gdbus: Add various missing (nullable) or (not nullable) annotations - !2126 gtlspassword: Add flags signifying PIN type for PKCS#11 - !2127 gutils: ensure g_find_program_in_path() return an absolute path - !2130 Revert "tests: Deactivate tls-bindings test suite for windows" - !2139 gdbus, win32: Fix accidental dllexport in static builds - !2142 tls: expose SAN details on GTlsCertificate - !2143 compiling.xml: Don't recommend backticks - !2144 pcre: Drop internal libpcre copy - !2145 gunixmounts: Document NULL return value for g_unix_mount_for() - !2152 tests: A few small improvements to GBytes tests - !2153 docs: Fix annotations for optional arguments - !2155 glocalfilemonitor: Avoid a deadlock on finalization - !2162 testgdate: fix -Wmisleading-indentation warning - !2166 gtlscertificate: Add more annotations to new properties - !2167 g_value_set_string description: clarified (unified), that v_string is a copy. - !2173 gasyncqueue: Add missing (nullable) annotation to free function - !2174 data-to-c.py: generate new-line at the end of the file * Translation updates: - Chinese (China) - English (United Kingdom) - Hebrew - Nepali - Occitan (post 1500) - Serbian @ text @d1 1 a1 1 $NetBSD$ d35 22 a56 1 @@@@ -2230,9 +2230,12 @@@@ endif d72 1 a72 1 @@@@ -2241,7 +2244,7 @@@@ if not python_version.version_compare(py d81 1 a81 1 @@@@ -2250,8 +2253,7 @@@@ env_program = find_program('env', requir @ 1.14 log @glib2: Update to 2.68.0 Revert to adam's commit Overview of changes in GLib 2.68.0 ================================== * Bugs fixed: - !1987 build: Drop gconstructor_as_data_h usage from glib-compile-schemas - !1989 glib.supp: Generalize some suppressions - !1992 gbytesicon: Fix error in g_bytes_icon_new() documentation - !1994 glocalfileoutputstream: Tidy up error handling - !1995 tests: Fix copy/paste error in queue test * Translation updates: - Czech - Finnish - Italian - Korean - Lithuanian - Polish - Romanian - Slovenian - Turkish @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.12 2021/03/22 06:54:19 adam Exp $ d15 1 a15 1 --- meson.build.orig 2021-03-18 13:28:31.000000000 +0000 d17 1 a17 1 @@@@ -773,6 +773,7 @@@@ if host_system == 'darwin' d21 1 a22 1 d25 2 a26 1 @@@@ -2038,7 +2039,7 @@@@ endif d30 2 a31 2 -if cc.has_function('ngettext') +if cc.has_function('ngettext') and host_system != 'sunos' d35 1 a35 20 @@@@ -2111,16 +2112,15 @@@@ if host_system != 'windows' and get_opti if cc.has_function('getxattr') and cc.has_header('sys/xattr.h') glib_conf.set('HAVE_SYS_XATTR_H', 1) glib_conf_prefix = glib_conf_prefix + '#define @@0@@ 1\n'.format('HAVE_SYS_XATTR_H') + glib_conf.set('HAVE_XATTR', 1) #failure. try libattr elif cc.has_header_symbol('attr/xattr.h', 'getxattr') glib_conf.set('HAVE_ATTR_XATTR_H', 1) glib_conf_prefix = glib_conf_prefix + '#define @@0@@ 1\n'.format('HAVE_ATTR_XATTR_H') xattr_dep = [cc.find_library('xattr')] - else - error('No getxattr implementation found in C library or libxattr') + glib_conf.set('HAVE_XATTR', 1) endif - glib_conf.set('HAVE_XATTR', 1) if cc.compiles(glib_conf_prefix + ''' #include #ifdef HAVE_SYS_TYPES_H @@@@ -2220,9 +2220,11 @@@@ endif d47 1 d51 1 a51 1 @@@@ -2231,7 +2233,7 @@@@ if not python_version.version_compare(py d60 1 a60 1 @@@@ -2240,8 +2242,7 @@@@ env_program = find_program('env', requir @ 1.13 log @glib2: downgraded to 2.66.8 Overview of changes in GLib 2.66.8 ================================== * Fix a security issue when using `g_file_replace()` with `G_FILE_CREATE_REPLACE_DESTINATION` * Bugs fixed: - file-roller symlink attack - Backport !2325 “file-roller symlink attack” to glib-2-66 - Backport !1976 “Use the right permissions for directory watching on Win32” to glib-2-66 @ text @d15 1 a15 1 --- meson.build.orig 2021-03-18 13:47:48.000000000 +0000 d17 1 a17 1 @@@@ -756,6 +756,7 @@@@ if host_system == 'darwin' d25 1 a25 1 @@@@ -2003,7 +2004,7 @@@@ endif d34 1 a34 1 @@@@ -2076,16 +2077,15 @@@@ if host_system != 'windows' and get_opti d53 1 a53 1 @@@@ -2185,9 +2185,11 @@@@ endif d68 1 a68 1 @@@@ -2196,7 +2198,7 @@@@ if not python_version.version_compare(py d74 1 d77 1 a77 2 # Some installed tests require a custom environment @@@@ -2204,8 +2206,7 @@@@ env_program = find_program('env', requir @ 1.12 log @glib2: updated to 2.68.0 Overview of changes in GLib 2.68.0 ================================== * Bugs fixed: - !1987 build: Drop gconstructor_as_data_h usage from glib-compile-schemas - !1989 glib.supp: Generalize some suppressions - !1992 gbytesicon: Fix error in g_bytes_icon_new() documentation - !1994 glocalfileoutputstream: Tidy up error handling - !1995 tests: Fix copy/paste error in queue test * Translation updates: - Czech - Finnish - Italian - Korean - Lithuanian - Polish - Romanian - Slovenian - Turkish @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.11 2020/09/29 10:43:33 prlw1 Exp $ d15 1 a15 1 --- meson.build.orig 2021-03-18 13:28:31.000000000 +0000 d17 1 a17 1 @@@@ -773,6 +773,7 @@@@ if host_system == 'darwin' d25 1 a25 1 @@@@ -2038,7 +2039,7 @@@@ endif d34 1 a34 1 @@@@ -2111,16 +2112,15 @@@@ if host_system != 'windows' and get_opti d53 1 a53 1 @@@@ -2220,9 +2220,11 @@@@ endif d68 1 a68 1 @@@@ -2231,7 +2233,7 @@@@ if not python_version.version_compare(py a73 1 bash_comp_dep = dependency('bash-completion', version: '>=2.0', required: false) d76 2 a77 1 @@@@ -2240,8 +2242,7 @@@@ env_program = find_program('env', requir @ 1.11 log @Update glib2 to 2.66.0 Highlights: * Fixes to the new `statx()` calls - note that since GLib 2.65.2 uses `statx()` (if available) instead of `stat()`/`fstat()`/`lstat()`/`fstatat()`, syscall sandboxing for third party applications might need to be updated * Fix deadlock in `g_subprocess_communicate_async()` (work by Alexander Larsson) (#2182) * Add `%f`/microsecond placeholder support to `g_date_time_format()` (work by Johan Bjäreholt) (!1605) * Add `GUri` API for parsing, building and representing URIs according to [RFC 3986](https://tools.ietf.org/html/rfc3986) (work by Marc-Andre Lureau) (#110) * D-Bus credentials support on macOS (#507) * Year 2038 fixes involving new API in `GBookmarkFile` (#1931) For full details, see: https://gitlab.gnome.org/GNOME/glib/-/blob/2.66.0/NEWS @ text @d1 1 a1 1 $NetBSD$ d15 1 a15 1 --- meson.build.orig 2020-08-18 10:52:24.985179000 +0000 d17 1 a17 1 @@@@ -756,6 +756,7 @@@@ if host_system == 'darwin' d25 1 a25 1 @@@@ -2003,7 +2004,7 @@@@ endif d34 1 a34 1 @@@@ -2076,16 +2077,15 @@@@ if host_system != 'windows' and get_opti d53 1 a53 1 @@@@ -2185,9 +2185,11 @@@@ endif d68 1 a68 1 @@@@ -2196,7 +2198,7 @@@@ if not python_version.version_compare(py d73 2 a74 1 +have_bash = false # For completion scripts d77 1 a77 2 # Some installed tests require a custom environment @@@@ -2204,8 +2206,7 @@@@ env_program = find_program('env', requir @ 1.10 log @glib2 and friends: update to 2.64.0 Overview of changes in GLib 2.64.0 ================================== * Use `posix_spawn()` to speed up launching test D-Bus instances (!1388) * Bugs fixed: - #1783 Document using glib-mkenums with meson - #2049 Crash in g_array_copy - !1384 Some minor clang warning fixes - !1386 docs: Document generated headers caveats for genmarshal - !1387 ci: Correctly propagate exit status in run-style-check-diff.sh - !1388 gtestdbus: Use posix_spawn() to spawn dbus-daemon - !1389 Update GError docs to use G_DEFINE_QUARK * Translation updates: - Czech - Danish Overview of changes in GLib 2.63.6 ================================== * Fix potential relative read when calling g_printerr(), which could lead to a denial of service from a setuid-root process being used to block access to the TTY for another user (#1919) * Fix SOCKS proxy resolver sometimes not being used when resolving addresses via Happy Eyeballs (CVE-2020-6750) (#1989) * Several other Happy Eyeballs fixes for address resolution (#1871, #1872, #1902) * Various race fixes in `GDBusConnection` and its unit tests (#1515) * Fix a race condition with D-Bus name ownership (#1517) * Drop `gio-launch-desktop` helper application in favour of calling `sh` directly (#1633) * Fix win32 exception handling with C# exceptions (#2025) * Fix thread safety of `GUnixMountMonitor` (#2030) * Additional fixes to new thread pool attribute behaviour from GLib 2.63.4 to check if sched_setattr() is allowed by system policies before depending on it (#2039, !1356) * Fix memory leaks and corruption when freeing `GSource`s while freeing a `GMainContext` (!1353) * Drop inappropriate installation of object manager example documentation (!1359) * Bugs fixed: - #938 gdbus call -a doesn't support message bus connections - #1515 gio/gdbus-threading test sometimes fails in CI - #1517 g_bus_own_name does not always call name_lost_handler when _REPLACE and _ALLOW_REPLACEMENT are set - #1633 should not install gio-launch-desktop into PATH - #1919 read from relative path in g_printerr() in 2.58.3 - #1995 Tracker issue for Happy Eyeballs regressions - #2002 g_io_channel_read_line does not honour the line_term symbols set - #2025 W32 exception handling misbehaves when C# exceptions are thrown when running inside the Visual Studio debugger - #2030 Random nautilus test suite failures involving GUnixMountMonitor - #2039 sched_setattr() still can cause EPERM through natural causes - #2043 Low memory monitor test failed in CI - #2044 GApplication docs suggest invalid GVariant type - !1185 gtimezone: Tidy up UTC timezone creation - !1281 ci: Update Docker packages - !1283 gmodule: change _g_module_close to only take a handle. - !1298 tests: Speed up the GIO actions test - !1299 gapplication: Fix a minor typo in the documentation - !1339 gsocketclient: Refactor g_socket_client_connect_async() - !1353 GMainContext - Fix memory leaks and memory corruption when freeing sources while freeing a context - !1354 GThreadPool - Add test for !1340 - !1355 glist: Add docs examples of how to combine with g_steal_pointer() - !1356 GThread - Check if sched_setattr is allowed by the system policies before depending on it - !1359 docs: Don’t install object manager example separately - !1363 Make tests pass if we are euid != 0 with capabilities - !1366 Fix oss-fuzz coverage link - !1372 gobject: Fix strict aliasing warnings with g_set_object() - !1376 gitlab-ci: 64-bit ARM is aarch64, not arm64 - !1381 ghash: Document the iteration order over a hash table is not defined - !1382 tests: Bump the refcount timeout in gdbus-threading - !1383 ci: Enable parallelisation when running installed tests * Translation updates: - Basque - English (United Kingdom) - French - Galician - German - Greek, Modern (1453-) - Hungarian - Indonesian - Japanese - Korean - Lithuanian - Polish - Portuguese (Brazil) - Spanish - Swedish - Turkish Overview of changes in GLib 2.63.5 ================================== * Fix behaviour of `g_file_move()` fallback code to not follow symlinks (#986) * Rename `--glib-min-version` argument of `gdbus-codegen` to `--glib-min-required` (this is not an API break as `--glib-min-version` was added earlier in the 2.63 cycle) (#1993) * Add gtk-doc checks to CI and fix a number of documentation issues (thanks to Xavier Claessens) (!978) * Add `G_SIZEOF_MEMBER()` macro (!1333) * Add a debug message if `g_setenv()` or `g_unsetenv()` are used after any threads have been spawned — this will be upgraded to a warning in future (!1337, #715) * Skip memory monitor tests if xdg-desktop-portal or dbusmock are not available (!1296, !1338) * Change the `libmount` configure option from a boolean to a Meson `feature` (!1344) * Do not return `target-uri` from `g_file_peek_path()` when called on trash/recent files (!1346) * Drop new TLS certificate API for PKCS #11 backed certificates, as the implementation is not ready yet (this is not an API break as the API was added earlier in the 2.63 cycle) (!1347) * Bugs fixed: - #986 g_file_move: remove G_FILE_COPY_NOFOLLOW_SYMLINKS section - #1551 CI: Add checks for `TODO` in MRs - #1925 Large number of routes installed into kernel cause high cpu usage - #1993 Rename gdbus-codegen --glib-min-version argument to --glib-min-required and add --glib-max-allowed - #2012 spawn_thread_queue not initialised in GThreadPool - #2020 g_network_monitor_base_add_network() improperly unrefs GInetAddressMask - !978 Various fixes to make gtkdoc-check pass on glib - !1018 docs: tag enclose 'all' and 'help' values - !1170 Avoid C++20 deprecated assignment to volatile - !1296 tests: Skip GMemoryMonitor tests if the dbusmock template is not available - !1307 Remove global declaration of GMemoryMonitor - !1322 gmain: Mark G_SOURCE_FUNC as available in 2.58 - !1333 Add and use G_SIZEOF_MEMBER() macro - !1337 genviron: Message if g_setenv()/g_unsetenv() are used after threads spawned - !1338 tests: Skip GMemoryMonitor tests if xdg-desktop-portal is not available - !1344 meson: libmount autodectection - !1345 gio-tool-info: Print unix mount information where available - !1346 gfile: Do not return target-uri from g_file_peek_path() - !1347 Revert "gtlscertificate: Add support for PKCS #11 backed certificates" - !1348 ghash: Clarify that g_hash_table_add() always consumes the key - !1349 doc: Clarify that _locker_new() does not actually allocate memory - !1351 glib.supp: update g-threaded-resolver-getaddrinfo-config * Translation updates: - Japanese - Lithuanian - Malay - Portuguese (Brazil) - Swedish Overview of changes in GLib 2.63.4 ================================== * Fix various race conditions on signal emission in GDBus (#604, #978, #1232) * Change thread pools so that thread attributes (in particular, priority) are inherited from the thread which created the `GThreadPool` initially, rather than from the thread which is pushing a new job into the pool (#1834, #2007) * Expand support for running Windows apps with `g_app_info_launch_default_for_uri()` using rundll32 on Windows (#1932) * Support multiple directories in `GSETTINGS_SCHEMA_DIR` environment variable (#1998) * Support full Julian day range in `TZ` environment variable (#1999) * Apply recursion depth limits to variants in D-Bus messages (!1201) * Support adding call flags and timeouts to method calls generated by `gdbus-codegen` through the new `--glib-min-version` option (!1286) * Fully deprecate TLS rehandshakes; they are now ignored due to TLS protocol changes (!1305) * Bugs fixed: - #198 g_fopen and friends: should also state how to close a stream - #604 GDBus name watching dispatch is buggy/excessively-complicated - #833 g_object_set: document the need to cast varargs - #978 SIGSEGV in on_name_lost_or_acquired - #1232 Insufficient thread safety around GDBusObjectManagerClient - #1416 Re-add macOS CI - #1834 Unwanted priority/etc inheritance with GThreadPool and GThread and the POSIX implementation - #1932 Windows: Gio.AppInfo.launch_default_for_uri seems not to work for local files/folders - #1983 glib:gio / dbus-appinfo test fails: GLib-GIO:ERROR:../../../../Projects/glib/gio/tests/dbus-appinfo.c:326:on_flatpak_open: 'g_file_equal (files[0], f)' should be TRUE - #1997 Base64 encoding with "break_lines" claims to wrap at 72 characters but seems to wrap at 76 - #1998 support multiple directories in GSETTINGS_SCHEMA_DIR - #1999 GTimeZone fails to accept full Julian day range when parsing the direct $TZ string format - #2007 Thread scheduler attributes fail under valgrind - !388 ci: Avoid downloading subprojects for each job - !1111 gio: test that launch_uris() exports files with the document portal when launching a flatpak - !1201 gdbusmessage: Limit recursion of variants in D-Bus messages - !1279 tests: Fix an error message set by foo_set_property() - !1286 gdbus-codegen: Add a GDBusCallFlags arg to method calls - !1291 gio-tool-list: Add an option to print display names - !1294 GMemoryMonitor docs fixes - !1295 gio: Fix socket test - !1301 GThread - Inherit parent thread priority by default for new Win32 threads - !1303 gvariant-core: Don't pass NULL second argument to memcpy - !1305 Fully deprecate TLS rehandshakes - !1308 gsocketclient: run timeout source on the task's main context - !1309 Fix crash in gutils when application is prevented access to passwd file - !1317 gfdonotificationbackend: remove notifications when bus name vanishes - !1320 subprojects: Temporarily avoid using wrapdb while it’s down - !1324 ci: Add some documentation to the style check CI test - !1325 Check for SYS_sched_getattr before using it unconditionally - !1330 W32: Correctly set st_ino when doing private stat() - !1334 gthread: Ensure GThreadSchedulerSettings is always defined * Translation updates: - Catalan - Galician - Hungarian - Indonesian - Polish - Portuguese (Brazil) - Spanish Overview of changes in GLib 2.63.3 ================================== * Add a `--glib-min-version` argument to `gdbus-codegen` which controls breaks in the API of generated code (#1726) * Add `g_clear_list()` API to clear `GList`s to `NULL` (#1943) * Add a `GMemoryMonitor` API to be notified of memory pressure situations using the low-memory-monitor project (!1005) * Add support for dispose functions for `GSource` implementations (!1175) * Tighten up validation of GObject signal and property names, allowing performance improvements (!1224) * Fix installation path of GIO modules on MSVC to be the bindir (!1254) * Bugs fixed: - #650 g_signal_lookup gives too many warnings - #1011 GListStore, easily find if the item is already inserted - #1130 gdbus-codegen: Add an option to strictly generate markdown in source comments - #1687 glocalvfs.c uses non-thread-safe getpwnam() - #1726 Warn when method/signal uses type 'h' but lacks GDBus.C.UnixFD annotation - #1935 Assert in _kqsub_free seems to be too strict - #1943 Consider g_clear_list() - #1947 Documentation clarification for g_uuid_string_random() - #1953 Documentation for g_type_init() and others missing from online gtk-doc documentation - #1961 A typo in the comment of `g_settings_schema_get_path`: threfore -> therefore - !1005 gio: Add GMemoryMonitor to monitor for low-memory - !1172 gptrarray: Add an example to the g_ptr_array_steal() docs - !1175 Implement a dispose function for GSource - !1223 Add additional valgrind suppressions - !1224 Signal name handling improvements - !1230 ci: Run installed-tests on Fedora - !1235 Add sudo to Fedora docker image - !1239 tests: Run "timeout tests" sequentially - !1248 ci: Update all Debian CI runners to use v5 of the Dockerfile - !1249 gio-tool-mount: Allow mounting by the given UUID - !1252 ci: Fix running all jobs on merge requests - !1253 gthread: Fix "zero as null pointer" warning - !1254 giomodule: gio modules are no longer installed in bindir on MSVC - !1255 ci: Build Docker images rather than OCI images if using podman - !1256 gdate: Add autoptr support - !1258 Minor CI fixups - !1261 gtk-doc: Ensure we have recent enough version - !1262 tests: Add tests for the gdbus-codegen executable - !1265 build: don't check for protected visibility - !1267 Revert "doc: Workaround gtkdoc-scan bug leading to undocumented symbols" - !1268 ci: Work-around successful installed tests having no logs - !1269 gvariant: Add guard to g_variant_get() - !1271 tests: Enable GDBus debug for a number of unreliable tests - !1274 trash portal: Don't follow symlinks - !1275 Small doc correction - !1277 Various gtk-doc improvements - !1278 Update installed tests CI - !1280 clang-format-diff: Output diff for multiple files, not just one - !1282 Revert "Revert "docs: remove GDBusObjectManager example"" - !1284 Update POTFILES.in 191212 - !1287 atomic/tests: test g_atomic_pointer_compare_and_exchange() with const pointers - !1289 gtype: Define auto-cleanup functions for Module class * Translation updates: - Spanish Overview of changes in GLib 2.63.2 ================================== * Use `lldb` rather than `gdb` on macOS for debugging (#1004) * Switch the atomic builtins from `__sync_fetch_*()` to the slightly more modern `__atomic_*()` (#1750) * Fix calculation of `gsize` width on various platforms (including OpenBSD) (#1777) * Fix undefined behaviour causing brokenness in `g_utf8_find_prev_char()` when compiling with GCC ≥ 8 (#1917) * Revert UNIX mode changes in `G_FILE_ATTRIBUTE_ID_UNIX_MODE` which broke OSTree (#1934) * Slightly improve performance for signal emissions when no handlers are connected (!1083) * Add `g_task_return_value()` and `g_task_propagate_value()` APIs to allow `GTask` to be used from language bindings more easily (!1216) * Fix a file monitoring crash on kqueue-based systems (BSD) (!1221) * Bugs fixed: - #1004 [PATCH] Make gbacktrace use lldb on Mac OS X - #1552 CI: Add code style checks - #1750 Switch from __sync_fetch_*() to __atomic_*() in glib/gatomic.h - #1777 gsize: improper typedef on (at least) OpenBSD - #1895 Regression: glib does not compile on centos 6: "objcopy: unrecognized option '--add-symbol'" - #1917 Test utf8-pointer fails with static build, LTO, optimisations, and new GCC - #1930 glib/tests/bookmarkfile.c:385:test_modify: assertion failed: (stamp == now) - #1934 ostree tests broken since bfdc5fc4fc84ef8518d2d1a328c8482cf5a38e98: File '/tmp/test-tmp-libostree_test-basic-user.sh.test-QB4SA0/diff-test2' is not empty - #1938 GDateTime doesn't support leap seconds - #1940 atomics test fails on FreeBSD CI since !1123 - !1039 Improve documentation for footgun function g_tls_client_connection_copy_session_state() - !1083 Use the GObject hole on 64bit arches for some flags to improve performance - !1202 CI updates after !1177 - !1208 gutils: Slightly improve docs formatting for g_get_os_info() - !1209 Make ld executable configurable - !1210 gdbus-server-auth test: Include gcredentialsprivate.h - !1213 gsocket: Improve diagnostics on bind() failure - !1214 gvariant, gbytes: Avoid memcmp (NULL, ., 0) or memcmp (., NULL, 0) - !1216 Make GTask more binding-friendly - !1218 gdb: Fix GHashTable pretty printer off-by-one error - !1220 gparam: fix memory leak in g_param_value_defaults() - !1221 Add NOTE_REVOKE to the list of the monitoring events - !1225 gtlsconnection: clarify handshake() documentation - !1227 Deprecate old GTlsConnection functionality even harder! - !1231 Fix build on old libc that does not define _SC_HOST_NAME_MAX - !1238 gstrfuncs: use gsize type internally for strv functions - !1242 gfileinfo: Clarify the documentation for G_FILE_ATTRIBUTE_UNIX_MODE - !1243 docs: Fix "occurred" typos in API documentation * Translation updates: - Spanish Overview of changes in GLib 2.63.1 ================================== * Several usability improvements to command line `gio` tool (!1153) * Add `g_array_steal()`, `g_ptr_array_steal()` and `g_byte_array_steal()` APIs (#285) * Add `g_get_os_info()` API (!1063, !1160) * Add `g_warning_once()` API (!1028) * Always resolve `localhost` to loopback address in `GResolver` (!616) * Add `GMainContextPusher` API (!983) * Limit recursion in `g_variant_parse()` (!1173) * Fix crash in `g_spawn()` with high FD numbers due to use of `select()` rather than `poll()` (#954) * Allow passing empty `GValue`s to `g_param_value_set_default()` (!1186) * Escape header guards generated by `gdbus-codegen` better (#1379) * Bugs fixed: - #285 [PATCH] add array steal and memdup functions - #954 The g_spawn_sync() function uses select() which has limitations - #1318 rare failure in gdbus-peer test: invalid uninstantiatable type '(null)' in cast to 'GDBusServer' - #1379 gdbus-codegen generates invalid header guards when build directory contains a + character - #1622 NULL pointer derefs on g_vasprintf() failure - #1813 g_option_context_add_main_entries() is missing array annotation for entries parameter - #1831 No reply on private socket due to auth problem - #1836 gobject.c uses undefined annotation “(not optional)” - #1858 docs/reference/gobject/tut_gobject.xml: object properties example uses deprecated API - #1877 g_cancellable_source_new annotated with 'skip' - #1896 Use after free when calling g_dbus_connection_flush_sync() in a dedicated thread - #1897 glib 2.62.0 fails test 'test_writev_no_vectors' wih gcc7 - #1903 use-after-free in mimeapps test causes intermittent segfault during testing - #1906 test_os_info fails on FreeBSD - #1916 objcopy not used from cross-compilation file in GIO tests - #1923 Recent Versions of GLib Break Dolphin File-Manager's Thumbnailing when Using 'gtk2' Style - !616 Always resolve localhost to loopback address - !983 gmain: Add GMainContextPusher convenience API - !1014 tests: Add a test for g_assert_finalize_object() - !1028 gmessages: Add g_warning_once() - !1035 Switching from C gnu89 to C gnu99 standard - !1063 gutils: Add g_get_os_info() - !1082 gdatetime: Document RFC 3339 extensions when parsing ISO 8601 - !1105 syscall flood on every time*() function call - !1120 Update documentation with FreeBSD build instructions - !1135 gmain: use atomic operation instead of GMutex to access g_main_context_default() - !1146 Solaris build fixes - !1147 gmodule: fix typo in doc comment - !1148 gio/gfileinfo: fix parameter references - !1149 gio/gfile: fix parameter reference for value_p - !1150 gio/gfile: fix parameter references to @@contents - !1151 gio/gfile: fix typo in doc comment - !1152 gwinhttpvfs: Handle g_get_prgname() returning NULL - !1153 Several gio-tool bash completion fixes and improvements - !1155 Strict-aliasing fixes to new atomic built-ins - !1157 Fix various compiler warnings on Android - !1160 Add Windows support to g_get_os_info() - !1161 hash: Remove an assertion from the hot path - !1163 gcharset: Expand the documentation for g_get_locale_variants() - !1165 Use uname as a fallback to get OS info - !1167 Fix some minor leaks in testfilemonitor - !1168 Fix gdatetime tests on toolbox - !1171 Revert "gdbus-codegen: emit GUnixFDLists if an arg has type 'h'" - !1173 gvariant: Limit recursion in g_variant_parse() - !1177 ci: Add libdbus development files to CI Docker images - !1179 Improve GPtrArray doc-comments - !1180 array: Avoid use of memcpy(dest, NULL, 0) - !1181 gmain: Clarify thread safety of some common GSource functions - !1182 gio: Fix typo in URL - !1186 Allow using an empty GValue with g_param_value_set_default() - !1189 gparamspecs: Fix type class leaks on error handling paths - !1197 Fix GDBus test failures on non-Linux (in particular FreeBSD) - !1200 Minor fixes from a scan-build run * Translation updates: - Catalan - Chinese (Taiwan) - Spanish Overview of changes in GLib 2.63.0 ================================== * Add g_fsync() API (#35) * Fix regression in g_file_copy() when passing `G_FILE_COPY_TARGET_DEFAULT_PERMS` flag; the destination permissions would be private rather than following the process’ umask (!1142) * Several `GDateTime` parsing fixes (!1127) * Always build the tests if installed-tests are enabled, so that the tests can actually be installed (!1141) * Rework atomic function implementations to use memory barrier in the correct place (when compiler intrinsics aren’t providing the atomics), and fix signedness issues (#1449, #1565) * Use the OS’ `fdwalk()` function (if safe) to speed up `g_spawn_*()` on BSD (#1638) * Remove the macOS `dyld` `GModule` implementation in favour of `dl` instead (!1093) * Bump Python requirement to ≥ 3.5, which we implicitly relied on anyway through our Meson dependency (!1132) * Bugs fixed: - #35 add g_fsync to API - #174 g_file_copy always preserves permissions, even if G_FILE_COPY_ALL_METADATA flag is not set - #259 docs: fix a misunderstanding in g_type_add_interface_* - #767 g_signal_lookup fails if class is not referenced - #1052 g_io_write_chars calls abort when given a null byte as input - #1449 glib fallback atomic int/ptr get/set have memory barrier in wrong place - #1565 Signedness of atomic operations - #1638 g_spawn_*() is extremely slow under certain circumstances - #1809 Provide API for working with PKCS11 backed certificates - #1843 TSAN false positive with g_atomic_pointer_get/g_atomic_pointer_set under Clang - #1865 g_variant_get_data_as_bytes fails after serializing a variant - #1875 Segfault and Overflow in __gio_xdg_cache_mime_type_subclass() with Wps-Office installed - #1887 glib 2.62.0 breaks loading dylibs as modules - #1888 2.62: docs build on Windows broken - #1897 glib 2.62.0 fails test 'test_writev_no_vectors' wih gcc7 - !1020 docs: Remove priv pointers from the tutorial example - !1062 gtype: mark the inline functions in G_DECLARE_*_TYPE() as UNUSED - !1080 tests: Fix skipping mkdir-with-parents-permission test - !1088 Various small scan-build fixes - !1090 giochannel: Clarify type of GSource callback in documentation - !1093 gmodule: remove macOS dyld implementation - !1095 Define G_IOV_MAX to 512 on macOS/iOS - !1099 gmem: clarify that g_malloc always uses the system allocator - !1109 doc: fix typo in gio/gsettings.c - !1110 gio: Add missing "gio remove" option to bash completion script - !1112 Add version macros for GLib 2.64 - !1115 gdatetime: Fix error handling in g_date_time_new_ordinal() - !1116 gmarkup: Add a limit on the number of attributes in an element - !1119 Annotate the return value of various utility functions - !1124 docs: Fix typo in GConverter{Input,Output}Stream section titles - !1125 gdatetime: Fix error handling in g_date_time_new_week() - !1126 fileinfo: Mention that usec mtimes are set - !1129 gdate: Fix tautological comparison warnings on Android - !1130 Improve GLIB_DEPRECATED_MACRO_FOR output - !1131 gio/gfileinfo: fix param reference in doc comment - !1132 build: Bump Python requirement to ≥ 3.5 - !1137 gregistrysettings: bump key name length to 2048 - !1138 Always build tests if we enabled installed-tests - !1139 g_file_info_get_modification_date_time: Calculate in integer domain * Translation updates: - Danish - Italian - Panjabi - Serbian - Turkish @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.9 2020/02/07 17:05:14 prlw1 Exp $ d15 1 a15 6 - Check size_t compatibility with various other types commit 505c9544247f27cb6ebf749d0902d53c33dac308 glib bug #1777 c.f., PR pkg/54909 and PR pkg/54298 --- meson.build.orig 2020-02-27 16:12:52.000000000 +0000 d17 1 a17 1 @@@@ -677,6 +677,7 @@@@ if host_system == 'darwin' d25 1 a25 2 @@@@ -1904,7 +1905,7 @@@@ endif # proxy-libintl subproject. d28 1 a30 1 libintl = [] d33 2 a34 1 @@@@ -1955,16 +1956,15 @@@@ if host_system != 'windows' and get_opti d53 1 a53 1 @@@@ -2058,9 +2058,11 @@@@ endif d68 1 a68 1 @@@@ -2069,7 +2071,7 @@@@ if not python_version.version_compare(py d77 1 a77 1 @@@@ -2077,8 +2079,7 @@@@ env_program = find_program('env', requir @ 1.9 log @Apply upstream's Check size_t compatibility with various other types commit 505c9544247f27cb6ebf749d0902d53c33dac308 which will hopefully fix PR pkg/54909 and not break PR pkg/54298 @ text @d1 1 a1 1 $NetBSD$ d20 1 a20 1 --- meson.build.orig 2020-02-07 11:23:09.221446856 +0000 d22 1 a22 9 @@@@ -5,7 +5,6 @@@@ project('glib', 'c', 'cpp', default_options : [ 'buildtype=debugoptimized', 'warning_level=1', - 'c_std=gnu89' ] ) @@@@ -671,6 +670,7 @@@@ if host_system == 'darwin' d30 1 a30 92 @@@@ -1314,28 +1314,86 @@@@ else glibconfig_conf.set('g_searchpath_separator', ':') endif -if sizet_size == short_size +g_sizet_compatibility = { + 'short': sizet_size == short_size, + 'int': sizet_size == int_size, + 'long': sizet_size == long_size, + 'long long': sizet_size == long_long_size, +} + +# Do separate checks for gcc/clang (and ignore other compilers for now), since +# we need to explicitly pass -Werror to the compilers. +# FIXME: https://github.com/mesonbuild/meson/issues/5399 +# We can’t simplify these checks using a foreach loop because dictionary keys +# have to be string literals. +# FIXME: https://github.com/mesonbuild/meson/issues/5231 +if cc.get_id() == 'gcc' or cc.get_id() == 'clang' + g_sizet_compatibility += { + 'short': g_sizet_compatibility['short'] and cc.compiles( + '''#include + size_t f (size_t *i) { return *i + 1; } + int main (void) { + unsigned short i = 0; + f (&i); + return 0; + }''', + args: ['-Werror'], + name : 'GCC size_t typedef is short'), + 'int': g_sizet_compatibility['int'] and cc.compiles( + '''#include + size_t f (size_t *i) { return *i + 1; } + int main (void) { + unsigned int i = 0; + f (&i); + return 0; + }''', + args: ['-Werror'], + name : 'GCC size_t typedef is int'), + 'long': g_sizet_compatibility['long'] and cc.compiles( + '''#include + size_t f (size_t *i) { return *i + 1; } + int main (void) { + unsigned long i = 0; + f (&i); + return 0; + }''', + args: ['-Werror'], + name : 'GCC size_t typedef is long'), + 'long long': g_sizet_compatibility['long long'] and cc.compiles( + '''#include + size_t f (size_t *i) { return *i + 1; } + int main (void) { + unsigned long long i = 0; + f (&i); + return 0; + }''', + args: ['-Werror'], + name : 'GCC size_t typedef is long long'), + } +endif + +if g_sizet_compatibility['short'] glibconfig_conf.set('glib_size_type_define', 'short') glibconfig_conf.set_quoted('gsize_modifier', 'h') glibconfig_conf.set_quoted('gssize_modifier', 'h') glibconfig_conf.set_quoted('gsize_format', 'hu') glibconfig_conf.set_quoted('gssize_format', 'hi') glibconfig_conf.set('glib_msize_type', 'SHRT') -elif sizet_size == int_size +elif g_sizet_compatibility['int'] glibconfig_conf.set('glib_size_type_define', 'int') glibconfig_conf.set_quoted('gsize_modifier', '') glibconfig_conf.set_quoted('gssize_modifier', '') glibconfig_conf.set_quoted('gsize_format', 'u') glibconfig_conf.set_quoted('gssize_format', 'i') glibconfig_conf.set('glib_msize_type', 'INT') -elif sizet_size == long_size +elif g_sizet_compatibility['long'] glibconfig_conf.set('glib_size_type_define', 'long') glibconfig_conf.set_quoted('gsize_modifier', 'l') glibconfig_conf.set_quoted('gssize_modifier', 'l') glibconfig_conf.set_quoted('gsize_format', 'lu') glibconfig_conf.set_quoted('gssize_format', 'li') glibconfig_conf.set('glib_msize_type', 'LONG') -elif sizet_size == long_long_size +elif g_sizet_compatibility['long long'] glibconfig_conf.set('glib_size_type_define', 'long long') glibconfig_conf.set_quoted('gsize_modifier', int64_m) glibconfig_conf.set_quoted('gssize_modifier', int64_m) @@@@ -1832,7 +1890,7 @@@@ endif d39 1 a39 1 @@@@ -1883,16 +1941,15 @@@@ if host_system != 'windows' and get_opti d58 1 a58 1 @@@@ -1986,9 +2043,11 @@@@ endif d72 2 a73 2 python_version_req = '>=3.4' @@@@ -1997,7 +2056,7 @@@@ if not python_version.version_compare(py d82 1 a82 1 @@@@ -2005,8 +2064,7 @@@@ env_program = find_program('env', requir @ 1.8 log @glib2: Enforce C99 and XPG6 throughout. pkgsrc sets C99 but glib2 hardcodes gnu89 and forces XPG4v2, with predictably hilarious results. @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.7 2019/11/14 11:40:30 wiz Exp $ d15 6 a20 1 --- meson.build.orig 2019-11-19 17:51:31.000000000 +0000 d30 1 a30 1 @@@@ -677,6 +676,7 @@@@ if host_system == 'darwin' d38 92 a129 1 @@@@ -1838,7 +1838,7 @@@@ endif d138 1 a138 1 @@@@ -1889,16 +1889,15 @@@@ if host_system != 'windows' and get_opti d157 1 a157 1 @@@@ -1992,9 +1991,11 @@@@ endif d172 1 a172 1 @@@@ -2003,7 +2004,7 @@@@ if not python_version.version_compare(py d181 1 a181 1 @@@@ -2011,8 +2012,7 @@@@ env_program = find_program('env', requir @ 1.7 log @glib2: update to 2.62.1 Overview of changes in GLib 2.62.1 ================================== * Fix regression in g_file_copy() when passing `G_FILE_COPY_TARGET_DEFAULT_PERMS` flag; the destination permissions would be private rather than following the process’ umask (!1142) * Several `GDateTime` parsing fixes (!1127) * Always build the tests if installed-tests are enabled, so that the tests can actually be installed (!1141) * Bugs fixed: - #174 g_file_copy always preserves permissions, even if G_FILE_COPY_ALL_METADATA flag is not set - #1865 g_variant_get_data_as_bytes fails after serializing a variant - #1875 Segfault and Overflow in __gio_xdg_cache_mime_type_subclass() with Wps-Office installed - #1887 glib 2.62.0 breaks loading dylibs as modules - #1888 2.62: docs build on Windows broken - !1021 docs: Remove priv pointers from the tutorial example - !1094 Backport to 2.62: gmodule: use dl implementation on macOS - !1101 Backport !1092 “Fix doc build on Windows” to glib-2-62 - !1102 Backport !1080 “tests: Fix skipping mkdir-with-parents-permission test” to glib-2-62 - !1103 Backport !1085 “xdgmime: Prevent infinite loops from badly-formed MIME registrations” to glib-2-62 - !1127 Backport !1125 and !1115 GDateTime parsing fixes to glib-2-62 - !1128 Backport !1043 “gvariant: Handle empty serialisations in get_child_value()” to glib-2-62 - !1140 [2.62] g_file_info_get_modification_date_time: Calculate in integer domain - !1141 [2.62] Always build tests if we enabled installed-tests - !1142 Backport !1134 Fix for file copy permissions to glib-2-62 * Translation updates: - Danish - Italian - Panjabi - Serbian - Turkish Overview of changes in GLib 2.62.0 ================================== * Fix new `GFileInfo` APIs to work when `G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC` was not queried (!1087) * Bugs fixed: - #487 Add valgrind test runs to CI - !1084 garray: Fix reference to GLIB_SIZEOF_INT - !1086 glib.supp: make gobject_init() calloc also of the possible kind - !1087 fileinfo: ignore USEC if not available * Translation updates: - Friulian - Portuguese (Brazil) Overview of changes in GLib 2.61.3 ================================== * Support setting thread name on BSD systems (#1761) * Install previously-uninstalled headers for public `GNativeSocketAddress` object (#1854) * Very initial support for Windows apps (UWP) (!1057) * Add various new valgrind suppressions to `glib.supp` (#1879, !1075) * Bugs fixed: - #83 Optimisation for g_nearest_pow() in garray.c - #512 GSignal: accumulator function not called to accumulate G_SIGNAL_RUN_CLEANUP object handler return values - #873 allow NULL arguments to parse_strv - #905 Patches from static analysis run on 2.40 - #1057 goption: add sanity check to input parameters - #1309 GSettings object stops emitting "changed" signal on g_settings_reset after call to g_settings_delay - #1620 GDBus criticals from GVfs with GLib master - #1761 Setting thread-name on BSD systems - #1803 GDK_SCALE=X is not respected when using "gio open" - #1819 Invalid characters in Open Location dialog crashes GIMP - #1852 Regression: g_mkdir_with_parents() returns 0 on failure - #1854 glib/gio: GNativeSocketAddress headers not installed. - #1860 g_clear_handle_id does not trigger GLIB_VERSION_MAX_ALLOWED warning - #1863 Potential invalid writes on g_utf8_strreverse - #1867 A couple of en_GBisms - #1870 GSettingsBackend watches not thread-safe - #1879 Incomplete valgrind suppressions - 16 KiB leak reported by valgrind from loading libglib-2.0.so - #1880 glib/gbacktrace.c: If dup2 happened to return -1, don't call dup2 with same value - #1881 GIO_USE_VOLUME_MONITOR and GIO_USE_FILE_MONITOR do not work as documented - !1002 Remove mentions of mailing lists from the documentation - !1011 gapplication: Fix a leaking GRemoteActionGroup member - !1015 Post-release version bump - !1016 gnetworkmonitornm fixups - !1017 Improve ISO 8601 parsing by GDateTime - !1023 g_object_get_property: Improve documentation for use of G_VALUE_INIT - !1026 gutf8: Assert that written memory stays in bounds - !1027 gfileutils: Fix error propagation for other than ENOENT - !1031 meson: build gnulib if printf isn't good enough - !1032 meson: small printf check cleanups - !1033 win32: don't assume the format specifier for the stdlib printf/scanf like functions - !1034 glib/tests/fileutils: Add a reproducer for #1852 - !1036 cond test: Don't make assumptions about struct sigaction member order - !1037 Meson: Override glib-compile-resources/schemas - !1044 Relax use of g_test_bug() to not require g_test_bug_base() to be called first - !1049 minor typos in the documentation - !1050 tests: Fix a pragma warning on FreeBSD - !1054 gerror: Add a docs paragraph about not displaying errors verbatim in UI - !1057 Some (probably) easy uwp patches - !1059 Update win32 readme, add myself to codeowners - !1066 libffi.wrap: Meson port has moved to FDO gitlab - !1068 gsubprocesslauncher.c: fix documentation - !1071 meson: Move libdl_dep to the top level - !1074 Adjust README formatting - !1075 glib.supp: add suppression for g_type_class_ref() * Translation updates: - Basque - Catalan - Czech - English (United Kingdom) - French - Galician - German - Hungarian - Indonesian - Korean - Lithuanian - Polish - Romanian - Spanish - Swedish Overview of changes in GLib 2.61.2 ================================== * Add various new array functions (#236, #269, #373) - `g_array_copy()` - `g_ptr_array_copy()` - `g_ptr_array_extend()` - `g_ptr_array_extend_and_steal()` - `g_array_binary_search()` * Add `g_assert_finalize_object()` helper function for writing tests (#488) * Rework how D-Bus connections are closed/unreffed when `g_test_dbus_down()` is called. Tests which leak a `GDBusConnection` may now time out and abort, rather than silently leaking. (#787) * Add a deprecation macro for GLib macros, and use it; third-party uses of long-deprecated GLib macros may now start causing warnings. (#1060) * Deprecate `GTime` and `GTimeVal`, and various functions which use them. Use `GDateTime` and `guint64` UNIX timestamps instead. (#1438) * Stop using `G_DISABLE_DEPRECATED` to allow disabling deprecation warnings; third-party code should now be using `GLIB_VERSION_{MIN_REQUIRED, MAX_ALLOWED}` to control symbol usage (!871) * Improve support for running `ninja test` when GLib is built statically (#1648) * Improve `GNetworkMonitor` detection of offline states (#1788) * Fix build failure on macOS related to missing `_g_content_type_get_mime_dirs` function (#1791) * Add various installed utilities’ paths to `gio-2.0.pc` (#1796) * Fix keyfile `GSettings` backend and portal (especially relevant to any version of GLib included in a flatpak runtime) (#1822, !985) * More IPv6 ‘Happy Eyeballs’ fixes in `GNetworkAddress` (!865) * Fix CVE-2019-12450, wide permissions of files when copying using GIO (!876) * Bump the Meson dependency from 0.48.0 to 0.49.2; we won’t depend on anything higher than this for a while, as Debian 10 ships 0.49 (!924) * Various test fixes for Windows (!930, !931) * Initial support for Universal Windows Platform (UWP): certification, and use of packaged libraries (!951) * Add experimental clang-cl support on Windows, allowing `g_autoptr()` support on Windows (!979) * Bugs fixed: - #77 G_STDIO_NO_WRAP_ON_UNIX wraps - #236 Add a function to copy an array - #269 Additional convenience functions for g_ptr_array - #373 GArray could use a binary search function - #436 running tests leaves lots of coredumps - #453 find-enclosing-mount docs confusing - #488 Add g_object_assert_last_unref() helper macro to detect object leaks in tests - #590 A reader lock can be obtained even if a writer is already waiting for a lock - #638 g_atexit is defined when not declared - #737 Initialize GValue in g_object_get_property() - #787 gtestdbus: Properly close server connections - #804 gdbusproxy prefixes unstripped error - #870 Fix and enhance GDatetime for Windows - #872 ucs4 functions have wrong return transfer - #887 gdusmessage.c mishandles bounds of GDBusMessageType and related enums - #894 gvalue: Avoid expensive checks where possible - #940 Docs for g_socket_listener_set_backlog are not very helpful - #943 G_DEFINE_TYPE_WITH_PRIVATE docs not helpful - #1018 Allow guid key in dbus addresses - #1060 Add deprecation macro for macros - #1169 Tools can display gibberish messages from translations - #1270 g_get_charset always returns 8-bit codepage on Windows, crippling UTF-8 output - #1438 Deprecate GTimeVal- and GTime-based APIs - #1635 g_socket_join_multicast_group iface parameter fails on win32/64 - #1648 2.58.2: Assorted asserts fail in Arch Linux when built statically - #1729 g_content_type_guess segfaults when passed an empty data buffer on Mac OS - #1788 GNetworkMonitor claims I am offline - #1790 documentation on g_file_info_get_attribute_as_string - #1791 _g_content_type_get_mime_dirs missing from libgio-2.0.0.dylib on MacOS - #1792 glib-genmarshal generated valist marshal does not respect static scope for some types - #1793 glib-genmarshal generates wrong code for va marshaler for VARIANT type - #1794 API Proposal: g_timer_is_active - #1796 Add gio-querymodules variable to pkg-config file - #1797 glib/tests/win32 test failing on 64-bit Visual Studio builds - #1798 /contenttype/tree reliably fails on FreeBSD since !863 - #1807 g_dbus_server_new_sync() documentation references nonexistent function - #1808 Stopping a GDBusServer should clean up Unix socket paths (if not abstract) and nonce-tcp nonce files - #1811 Introspection info for g_unichar_compose's 3rd arg should be OUT - #1822 keyfile gsettings backend not loading - #1823 Documentation for disabling selinux is incorrect - #1825 GKeyFileSettingsBackend created without filename construct property and unchecked assertion - #1828 Small typo in gio manpage - #1837 Specify for each (optional) parameter, whether it is OUT or INOUT - #1838 Reword documentation for G_DECLARE_FINAL_TYPE - #1847 Setting GLIB_VERSION_{MIN_REQUIRED, MAX_ALLOWED} to before 2.56 triggers warnings - !533 docs: Document pitfall of deprecation pragmas - !563 ci: Add scan-build job in a new ‘analysis’ pipeline stage - !678 glib-compile-schemas: Improve translatable strings - !817 gdate: Officially mark GTime as deprecated - !851 gsettings: Document that lists are returned in no defined order - !853 gobject: Fix apostrophe usage in a few small bits of documentation - !859 gobject: Add a g_assert_finalize_object() macro - !863 gunicollate/cygwin: Don't use __STDC_ISO_10646__ for wchar_t related checks - !865 gnetworkaddress: fix "happy eyeballs" logic - !867 Post-release version bump - !871 Drop G_DISABLE_DEPRECATED - !873 Use atomic reference counting for GSource - !874 Clamp number of vectors to IOV_MAX / UIO_MAXIOV for GOutputStream writev()... - !875 CI/msys2: disable coverage reporting, lcov doesn't support gcc9 yet - !876 CVE-2019-12450: gfile: Limit access to files when copying - !877 gio: specify proper c_marshaller and va_marshallers - !883 tests: Fix small race in GSubprocess tests - !884 garcbox.c: Fix typo atomit => atomic - !885 goption: Clarify G_OPTION_ARG_FILENAME documentation - !889 Include for FIONREAD - !901 gmain: Clarify that g_source_destroy() doesn’t drop a reference - !904 Add glib-genmarshal tests and fix some valist marshaller bugs - !906 property action: Add state hints - !908 Improve testfilemonitor test repeatability and debuggability - !909 D-Bus auth mechanism improvements - !914 ci: Run scan-build in a different build directory - !915 docs: fix typo on arrays examples in gvariant-text - !917 docs: Fix name of IRC channel in CONTRIBUTING.md - !919 glib/tests/refcount.c: Fix tests on non-GCC-isque compilers - !920 gmacros: Only use deprecated attributes on enumerators with GCC ≥ 6.5 - !923 Check if compiler symbols are defined before using them - !924 Bump the required version of Meson - !930 glib/tests/convert.c: Skip tests that aren't meaningful for Windows - !931 glib/tests/fileutils.c: Fix stdio Wrapper Test on Windows - !934 build: Increase the slow test timeout to 180s - !935 Ignore */__pycache__/* directories - !937 Fix module tests on Visual Studio builds - !939 gstdio: minor cleanups - !941 list model: Expand items-changed docs - !944 gutils: Don't limit the length of the host name to 99 - !945 Avoid overrunning stack at the end of the varargs. - !947 gobject/tests/signals.c: Fix tests on Windows - !948 GObject: Fix mkenums.py and genmarshal.py tests on Windows - !950 ci: Enable CI on FreeBSD 12 - !951 Preliminary patches for Universal Windows Platform support - !952 gio: Make minor docs improvements - !953 g_utf8_normalize: Doc comment return missing nullable annotation - !954 Fix the ISO 15924 code for Manichaean - !955 gmacros: Use _Static_assert when C11 is available - !958 gthread: fix minor errno problem in GCond - !961 gmain: Fix g_main_context_prepare priority annotation - !962 gmacros: Use _Static_assert only for non-expr static assert - !964 gmacros.h: Use static_assert on MSVC if possible - !968 Fix typo in request handle - !970 gdatetime: Unset LC_ALL for the test as well - !971 docs.c: Forward link from g_auto* → G_DEFINE_AUTO* - !973 doc: fix typo in gio/gresource.c - !979 Experimental clang-cl support - !980 gmacros.h: Add better support for clang-cl - !981 gio: fix typo in g_settings_reset documentation - !982 Various doc fixes - !985 Keyfile portal fixes - !987 gio/tests: Remove code and comments referring to libtool - !991 fix atomic detection on older gcc versions - !992 docs: Add example to g_test_summary() documentation - !994 gio: Fix minor docs mistakes - !996 Small array test fixes - !997 gdbusaddress: Add missing transfer annotation - !1007 Resubmission of !832 “Try to create the complete path right away and fall back” - !1009 gapplication: remove inactivity_timeout source on finalize * Translation updates: - Hungarian - Indonesian - Portuguese (Brazil) - Spanish Overview of changes in GLib 2.61.1 ================================== * `g_unichar_isxdigit()` and `g_unichar_xdigit_value()` now handle full-width characters (U+FF21–U+FF26 and U+FF41–U+FF46) (#58) * Deprecate `gtester` utility and its test reporting format and enable TAP output by default instead — the `--tap` option to tests is now a no-op (#1441, #1619) * Add `g_test_summary()` to allow test authors to programmatically summarise what each unit test in a test suite does (#1450) * Upgrade to Unicode Character Database v12.1 (#1713, !822) * More IPv6 Happy Eyeballs fixes to `GNetworkAddress` and `GSocketClient` (#1747, #1771, #1774) * Fix valgrind and gdb support for the new `GHashTable` changes (#1749, #1780) * Fix GTask wait times growing faster than the number of task threads (#1683) * Change `GApplication` to ignore `-psn_*` arguments on the macOS command line, as they are irrelevant (#1784) * Add `g_autoqueue()` helper macros, similar to `g_autolist()` (!474) * Add pre-allocated link helpers for `GList` and `GQueue`: - `g_list_insert_before_link()` - `g_queue_insert_before_link()` - `g_queue_insert_after_link()` * Improve network availability detection with NetworkManager to treat lower levels of connectivity as having reduced availability (!781) * Add `g_clear_signal_handler()` to allow disconnecting from a `GObject` signal and clearing the signal handler ID to zero in a single call (!819) * Add `g_autoptr()` support for `GRWLock` (!825) * Define `G_OS_UNIX`, not `G_OS_WIN32`, when GLib is built agains Cygwin (!862) * Bugs fixed: - #29 GScanner: should explicitly document modifiable fields (value, next_value, ...) - #58 g_unichar_isxdigit() and g_unichar_xdigit_value() should deal with full-width a-fA-F - #106 Boxed types should be documented better - #135 g_unichar_totitle(0) returns 0x00001F88 instead of 0 - #429 g_format_size() is broken on Windows - #1441 Deprecate gtester - #1450 Add API for tests to describe what they're checking - #1619 GTest should have a way to default to TAP - #1683 GTask: task_wait_time is increased constantly when the number of running thread is greather than 10 - #1713 Upgrade to Unicode Character Database v12 - #1739 meson build failure libdl - #1747 Critical in g_socket_client_async_connect_complete - #1749 New GHashTable implementation confuses valgrind - #1753 Remove memory leaks from gio/test/resolver.c - #1755 Please revert #535 gmacros: Try to use the standard __func__ first in G_STRFUNC - #1759 test_month_names: assertion failed - #1760 Document for g_resolver_lookup_records why it returns a list of list of gchar*. - #1763 tests: -p runs tests in the reverse of the specified order - #1768 g_strlcat(): Possible buffer overflow in implementation - #1771 GNetworkAddressAddressEnumerator unsafely modifies cache in GNetworkAddress - #1774 Leaks in gsocketclient.c connection code - #1776 glib/date test fails - #1780 GDB pretty-printer for GHashTable no longer works - #1782 Error in documentation for cross-compile. - #1784 MacOS adds a -psn_X_XXXXXX parameter to the command line - !474 Add g_autoqueue - !476 Add pre-allocated link helpers for GList and GQueue - !556 gtestutils: Make --tap compatible with -p and --GTestSkipCount - !732 gsocket: Clarify in docs that `flags` arguments can be platform specific - !766 W32: swap special g_get_prgname() for platform_get_argv0() - !774 Only build tests if certain conditions are met. - !780 Add copyright and licensing terms to test report generator - !781 gnetworkmonitornm: Fix network available detection - !782 build: Fix check for RTLD_NEXT - !785 Remove monitor test - !787 build: Remove */.gitignore files - !791 glib/gconstructor.h: Include stdlib.h for MSVC builds - !792 general: Remove a few unhelpful references to ‘master’ - !795 gdesktopappinfo: Add support for MATE and Xfce4 terminals - !802 gio: tests, don't check for libdl on OpenBSD - !806 Get to 100% coverage on GQueue tests - !808 Update the Docker images used for CI - !809 Modified version of !784 — Adding tests cases for a better coverage of glib/tests/strfuncs.c - !813 gappinfo: Add precondition checks to GAppLaunchContext env methods - !814 gschema.dtd: Add target attribute to alias - !819 Clear signal handler - !820 ci: Keep JUnit report script working on Debian stable - !821 Various minor cleanups to autoptrs - !822 glib: Update Unicode Character Database to version 12.1.0 - !825 Add autoptr support for GRWLock - !831 build: (Long time after) post-release version bump - !835 Fix typo in German translation - !836 Document the best practices for binding GInitiallyUnowned - !862 build: define G_OS_UNIX, not G_OS_WIN32 under cygwin * Translation updates: - Basque - Catalan - German - Indonesian - Spanish Overview of changes in GLib 2.61.0 ================================== * Changes to `iconv` configure options, including the default iconv implementation on macOS — distributors may need to check their configure scripts (#1557) * Build fixes when building GLib with `G_DISABLE_ASSERT` defined (#1708) * Fix documentation for `gdbus-tool wait` to use correct units (#1737) * Improvements to symlink handling on Windows (!269) * Add exception handling for crashes on Windows (!582) * Set `G_WITH_CYGWIN` again when GLib is built on Cygwin (this was a regression from the autotools build) (!736) * Use `GCocoaNotificationBackend` by default on macOS, rather than `GGtkNotificationBackend` (!745) * Use Windows symbol visibility when GLib is built on Cygwin, as PE binaries are subject to W32 visibility mechanics — this affects the definition of `_GLIB_EXTERN` (!752) * Add coloured output support to `gdbus introspect` (!761) * Bugs fixed: - #682 docs: advise not to use non-literal strings as qdata keys - #1177 gparted crashes due to g_quark_from_static_string used in global initialization - #1258 the buffer written to by g_input_stream_read is not marked as an out parameter - #1557 By default glib tries to use libc instead of native iconv on OSX - #1566 Meld Windows shows error on startup "There was a problem starting c:\Program" - #1614 GIO tests fail on FreeBSD CI with: Unexpected error from C library during 'pthread_mutex_lock': Invalid argument - #1708 Building GLib with G_DISABLE_ASSERT fails - #1709 GResource generation test incompatible with stable LLVM on Linux - #1710 Crash in g_cancellable_cancel - #1712 gdbus-proxy test is flaky - #1724 unconditional check in fuzzing/meson.build - #1725 gosxappinfo.h is not installed on macOS - #1727 Cannot use trash folder with an NFS mount using automount / autofs - #1728 GSocket does not support ENOTSOCK - #1732 Win32: lookup_by_name_async segfaults for not available domains - #1737 gdbus-tool wait command timeout argument incorrect unit reference - !67 glib: update internal gnulib from upstream - !269 Win32 symlink code refactoring - !493 tests: Check that cancelling g_file_replace don't overwrite existing file - !582 Basic W32 exception handling for glib - !680 Fix warnings glib - !690 Fix thread safety issues - !694 gvariant-parser: Fix pattern coalesce of M and * - !706 Fix data races in task test and gmenumodel test - !709 Bump release version for 2.62 series - !710 socket: Fix annotation for flags in g_socket_receive_message - !712 gwin32: Fix comment for g_win32_veh_handler - !716 Various minor documentation fixes - !717 Improve formatting of GCC attribute documentation - !718 GSocketClient - Free last error if a connection attempt fails and on retry the... - !719 Handle an UNKNOWN NetworkManager connectivity as NONE - !721 codegen: Fix use of uninitialised variable - !723 Provide examples for GNUC attribute macros - !724 meson: do a build-time check for strlcpy before attempting runtime check - !728 gsocket: Remove (type) annotation from flags arguments - !730 Improve gdbus-address parsing tests - !735 docs: Use the right g_autoptr function when using an auxiliary function - !736 Set G_WITH_CYGWIN again - !737 gresolver: Don’t use gai_strerror() on Windows, as it isn’t threadsafe - !741 Fix use-after-free triggered by gnome-session-binary - !745 gcocoanotificationbackend: give more priority than the gtk one - !749 gio: Add missing autocleanup definition for GSettingsSchema{Key,Source} - !750 Check for RTLD_NEXT - !752 Use W32 visibility for Cygwin - !754 Check for /proc/self/cmdline - !757 Fix gnulib build on older Visual Studio builds - !760 Properly ensure the cocoa notification backend type - !761 RFC: gdbus-tool: Add --color option for introspect - !762 gutils: Add (nullable) annotation to g_get_prgname() - !765 gslice: Use a convenience macro - !769 ci: Generate a cover report for the test suite - !772 tests: Check that option-argv0 test succeeds on Linux - !776 tests: Only run --external-data test on GNU ld/objcopy - !779 Fix 2.62 documentation symbols * Translation updates: - Dutch @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.6 2019/10/29 09:22:24 adam Exp $ d15 1 a15 1 --- meson.build.orig 2019-10-04 11:44:24.000000000 +0000 d17 9 a25 1 @@@@ -677,6 +677,7 @@@@ if host_system == 'darwin' d33 1 a33 1 @@@@ -1838,7 +1839,7 @@@@ endif d42 1 a42 1 @@@@ -1889,16 +1890,15 @@@@ if host_system != 'windows' and get_opti d61 1 a61 1 @@@@ -1992,9 +1992,11 @@@@ endif d76 1 a76 1 @@@@ -2003,7 +2005,7 @@@@ if not python_version.version_compare(py d85 2 a86 1 @@@@ -2012,7 +2014,7 @@@@ env_program = find_program('env', requir d89 1 a89 1 glib_conf.set('_XOPEN_SOURCE_EXTENDED', 1) @ 1.6 log @glib2: updated to 2.60.7 Overview of changes in GLib 2.60.7 * Bugs fixed: - Invalid characters in Open Location dialog crashes GIMP - Setting GLIB_VERSION_{MIN_REQUIRED, MAX_ALLOWED} to before 2.56 triggers warnings - Backport !1009 “gapplication: remove inactivity_timeout source on finalize” to glib-2-60 - Backport !1008 “gmessages: Only use structured logs if GLIB_VERSION_MAX_ALLOWED is ≥2.56” to glib-2-60 - Backport !966 “Resolve "Invalid characters in Open Location dialog crashes GIMP"” to glib-2-60 - Backport !1040 “GSettingsBackend - Fix thread-safety during destruction of GSettings instances...” to glib-2-60 - Backport !1017 “gdatetime: Avoid an assertion failure when parsing some ISO 8601 dates” to glib-2-60 @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.5 2019/06/26 10:42:50 prlw1 Exp $ d15 1 a15 7 - auto-detect GNU iconv, even if no arguments are passed. (by checking if iconv.h might in fact be a gnu one) - Ignore __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 as is already done for android and linux. PR pkg/54298 --- meson.build.orig 2019-07-24 10:52:04.000000000 +0000 d17 1 a17 1 @@@@ -643,6 +643,7 @@@@ if host_system == 'darwin' d25 1 a25 55 @@@@ -1570,28 +1571,15 @@@@ atomictest = '''int main() { } ''' -atomicdefine = ''' -#ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 -#error "compiler has atomic ops, but doesn't define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4" -#endif -''' - # We know that we can always use real ("lock free") atomic operations with MSVC if cc.get_id() == 'msvc' or cc.links(atomictest, name : 'atomic ops') - have_atomic_lock_free = true - if (host_system == 'android' or host_system == 'linux') and not cc.compiles(atomicdefine, name : 'atomic ops define') - # When building for armv5 on Linux, gcc provides - # __sync_bool_compare_and_swap but doesn't define - # __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 - glib_conf.set('__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4', true) - endif + glibconfig_conf.set('G_ATOMIC_LOCK_FREE', true) else - have_atomic_lock_free = false if host_machine.cpu_family() == 'x86' and cc.links(atomictest, args : '-march=i486') error('GLib must be built with -march=i486 or later.') endif + glibconfig_conf.set('G_ATOMIC_LOCK_FREE', false) endif -glibconfig_conf.set('G_ATOMIC_LOCK_FREE', have_atomic_lock_free) # === Threads === @@@@ -1696,14 +1684,14 @@@@ else found_iconv = false if iconv_opt == 'libc' if cc.has_function('iconv_open') - libiconv = [] - found_iconv = true - endif - elif iconv_opt == 'gnu' - if cc.has_header_symbol('iconv.h', 'libiconv_open') - glib_conf.set('USE_LIBICONV_GNU', true) - libiconv = [cc.find_library('iconv')] - found_iconv = true + if cc.has_header_symbol('iconv.h', 'libiconv_open') + glib_conf.set('USE_LIBICONV_GNU', true) + libiconv = [cc.find_library('iconv')] + found_iconv = true + else + libiconv = [] + found_iconv = true + endif endif elif iconv_opt == 'native' if cc.has_header_symbol('iconv.h', 'iconv_open') @@@@ -1785,7 +1773,7 @@@@ endif d34 1 a34 1 @@@@ -1836,16 +1824,15 @@@@ if host_system != 'windows' and get_opti d53 3 a55 3 @@@@ -1886,9 +1873,11 @@@@ elif meson.get_cross_property('have_strl glib_conf.set('HAVE_STRLCPY', 1) endif d68 1 a68 1 @@@@ -1897,7 +1886,7 @@@@ if not python_version.version_compare(py d77 1 a77 1 @@@@ -1906,7 +1895,7 @@@@ env_program = find_program('env', requir @ 1.5 log @g/c use of __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 which glib was already ignoring for linux and android. http://mail-index.netbsd.org/tech-userlevel/2019/06/25/msg011965.html Should complete PR pkg/54298 @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 1 - Don't insist that python binary is called "python3". d7 1 d14 1 d21 1 a21 1 --- meson.build.orig 2019-06-10 17:47:20.000000000 +0000 d23 9 a31 1 @@@@ -1570,28 +1570,15 @@@@ atomictest = '''int main() { d62 1 a62 1 @@@@ -1696,14 +1683,14 @@@@ else d85 1 a85 1 @@@@ -1785,7 +1772,7 @@@@ endif d94 1 a94 1 @@@@ -1836,16 +1823,15 @@@@ if host_system != 'windows' and get_opti d113 1 a113 1 @@@@ -1886,9 +1872,11 @@@@ elif meson.get_cross_property('have_strl d128 1 a128 1 @@@@ -1897,7 +1885,7 @@@@ if not python_version.version_compare(py d137 1 a137 1 @@@@ -1906,7 +1894,7 @@@@ env_program = find_program('env', requir @ 1.4 log @glib2: Ensure libintl is pulled in on SunOS. Fixes issue in packages that depend on glib2 where libintl was no longer an explicit dependency as it was pre-meson. @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.3 2019/06/03 23:09:29 maya Exp $ d8 1 a8 1 https://gitlab.gnome.org/GNOME/glib/merge_requests/888 d14 3 d19 32 a50 1 @@@@ -1696,14 +1696,14 @@@@ else d73 1 a73 1 @@@@ -1785,7 +1785,7 @@@@ endif d82 1 a82 1 @@@@ -1836,16 +1836,15 @@@@ if host_system != 'windows' and get_opti d101 1 a101 1 @@@@ -1886,9 +1885,11 @@@@ elif meson.get_cross_property('have_strl d116 1 a116 1 @@@@ -1897,7 +1898,7 @@@@ if not python_version.version_compare(py d125 1 a125 1 @@@@ -1906,7 +1907,7 @@@@ env_program = find_program('env', requir @ 1.3 log @glib2: spell mnt_mntopts correctly. bump pkgrevision. While here, mention upstream merge requests for the things I've already submitted. @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.2 2019/06/03 21:24:04 maya Exp $ d14 1 a14 1 --- meson.build.orig 2019-05-03 13:43:28.000000000 +0000 d39 9 @ 1.2 log @glib2: fix build on sunos. - Default to a newer POSIX, since we build this package with -std=gnu99 - Link against libnsl and libintl - Don't use mnt_opt - XXX who else uses this case in gunixmounts.c? - include for FIONREAD. - Auto-detect GNU iconv. - Don't fail if getxattr is not available. The code is already ready for this case with some small configure changes. @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.1 2019/06/03 09:53:50 prlw1 Exp $ d6 1 d8 2 @ 1.1 log @Update glib2 to 2.60.2 GLib's move to meson from autotools means we are effectively starting from scratch with non-linux build fixes. Support for python 2 has also been dropped (given that meson requires python 3). I replaced sysutils/gio-fam with a build option. The full lengthy list of changes is available from: https://gitlab.gnome.org/GNOME/glib/tags/2.60.2 Some highlights: * Improve network status detection with NetworkManager (!781) * Add async GIO API: g_file_query_default_handler_async(), g_app_info_launch_uris_async() (#1249, #1347) * Add overlay support to g_resources_get_info(). (#1445) * Add writev() and writev_all() APIs to GOutputStream and GPollableOutputStream, and provide implementations of them for many subclasses. (#1431) * Hide bind mounts from GIO mount listings. (#1271) * Automatically realign data passed to `g_variant_new_from_bytes()` or `g_variant_new_from_data()` if it is not correctly aligned. This prevents misaligned accesses on architectures which don’t support them. Callers should still aim to correctly align data to get higher performance. (#1342) * Support `ld -b binary` (on platforms which support it; i.e. Linux) to provide large pre-compiled `GResource` resources with a fast compilation time. (#1489+* Drop Python 2 support and require Python 3.4+. See discussion on https://mail.gnome.org/archives/desktop-devel-list/2018-July/msg00004.html. (!196) * Various fixes to eliminate thread races, found by thread sanitizer (tsan). @ text @d1 1 a1 1 $NetBSD$ d6 4 d13 43 a55 1 @@@@ -1886,9 +1886,11 @@@@ elif meson.get_cross_property('have_strl d70 1 a70 1 @@@@ -1897,7 +1899,7 @@@@ if not python_version.version_compare(py d79 9 @