Sync from SUSE:SLFO:Main glib2 revision 2157613dbf31de14583d31542421549e

This commit is contained in:
Adrian Schröter 2024-07-22 17:02:14 +02:00
parent e48dba8eb3
commit a041836165
4 changed files with 324 additions and 13 deletions

BIN
glib-2.76.2.tar.xz (Stored with Git LFS)

Binary file not shown.

BIN
glib-2.78.6.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,296 @@
-------------------------------------------------------------------
Mon May 20 21:44:26 UTC 2024 - Michael Gorse <mgorse@suse.com>
- Update to version 2.78.6 (boo#1224044):
+ Fix a regression with IBus caused by the fix for CVE-2024-34397
+ Changes in version 2.78.5:
+ Fix CVE-2024-34397: GDBus signal subscriptions for well-known
names are vulnerable to unicast spoofing.
+ Bugs fixed:
- gvfs-udisks2-volume-monitor SIGSEGV in
g_content_type_guess_for_tree() due to filename with bad
encoding
- gcontenttype: Make filename valid utf-8 string before
processing.
- “gdbusconnection: Don't deliver signals if the sender
doesn't match.
+ Changes in version 2.78.4:
+ Bugs fixed:
- “Fix generated RST anchors for methods, signals and
properties.
- docs/reference: depend on a native gtk-doc.
- “gobject_gdb.py: Do not break bt on optimized build.
- “gregex: clean up usage of _GRegex.jit_status.
-------------------------------------------------------------------
Tue Apr 2 16:17:11 UTC 2024 - Dirk Müller <dmueller@suse.com>
- require dbus-launch only if dbus-service is wanted. This helps
with stripping down container-only builds (jsc#PED-8153)
-------------------------------------------------------------------
Thu Dec 7 10:52:01 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 2.78.3:
+ Fix a crash-causing regression in xdgmime
+ Bugs fixed:
- Crash in __gio_xdg_cache_mime_type_subclass
- Backport “xdgmime: Update to upstream commit c2c814d4051f232”
to glib-2-78
-------------------------------------------------------------------
Tue Dec 5 15:35:51 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 2.78.2:
+ Bugs fixed:
- check for #ifdef PTRACE_O_EXITKILL will always fail since it
isn't a macro
- gsubprocess build-time test intermittently timing out since
2.78.1
- “meson: Improve PTRACE_O_EXITKILL presence check”
- “Make GQuark register intentional leaks”
- “gsignalgroup: Avoid function call with side effect in
g_return_* macro”
- “tests: Don't assume that sh optimizes simple commands into
exec”
- “xdgmime: Handle buggy type definitions with circular
inheritance”
- “collate: Don't segfault on bad input”
-------------------------------------------------------------------
Tue Nov 28 11:03:25 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
- Use %autosetup instead of %setup/%patch.
-------------------------------------------------------------------
Wed Oct 25 13:18:49 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 2.78.1:
+ Fix truncating files when `g_file_set_contents_full()` is
called without `G_FILE_SET_CONTENTS_CONSISTENT`
+ Fix `-Dlibelf=disabled` on Linux
+ Bugs fixed:
- NetworkManager 1.44.0 crashes repeatedly with glib 2.78.0
- gsubprocess-testprog.c: build error with cygwin
(sys/ptrace.h: No such file or directory)
- gio clears modification time in microseconds when setting
with `set_modification_date_time`
- Build of glib 2.78.0 ignores -Dlibelf=disabled
- glib-2.78.0 fails at gio/tests/gsubprocess.p/gsubprocess.c.o
- Segfault when creating GIO GPropertyAction without properties
- `g_file_set_contents_full()` doesn't truncate the file
(without `G_FILE_SET_CONTENTS_CONSISTENT`)
- guniprop.c: Avoid creating (temporarily) out-of-bounds
pointers
- Fixes for integer cast warnings when targeting CHERI
- Fix test_find_program on FreeBSD
- gconstructor.h: Ensure [c|d]tor prototypes are present for
MSVC
- Fix gutils-user-database test on macOS
- Add value annotation to G_TYPE_FUNDAMENTAL_MAX
- meson: Fix Windows build with PCRE2 as sibling subproject
- gconstructor.h: Ensure [c|d]tor prototypes are present for
MSVC
- glocalfileinfo: Preserve microseconds for access/modify times
- Make sure the `GTask` is freed on a graceful disconnect
- Buffer needs to be aligned correctly to receive
linux_dirent64.
- gtestutils.h: Fix warning with -Wsign-conversion caused by
g_assert_cmpint
- tests: Drop unnecessary include from gsubprocess-testprog.c
- wakeup: do single read when using eventfd()
- wakeup: Fix g_wakeup_acknowledge if signal comes in”
- Use g_task_return in task threads
- build: Fix -Dlibelf=disabled on Linux
- gfileutils: Add a missing ftruncate() call when writing files
+ Updated translations.
- Drop 0005-gthreadedresolver-Fix-race.patch: Fixed upstream.
-------------------------------------------------------------------
Tue Oct 24 08:22:09 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- Use sed call to replace gio-querymodules with gio-querymodules-64
in gio-2.0.pc where appropiate.
-------------------------------------------------------------------
Wed Oct 11 09:38:15 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
- Require /usr/bin/dbus-daemon by the devel package: GDBusTest
launches an own dbus-daemon with a separate environment, so that
test code does not have to rely on the session bus. Ensure
consumers of GDBusTest have the needed dep present.
- Change the dbus-launch Requires to %{_bindir}/dbus-launch: be
flexible about potential future package layout changes.
-------------------------------------------------------------------
Thu Sep 28 07:40:17 UTC 2023 - Samuel Cabrero <scabrero@suse.de>
- Fix NetworkManager crashing repeatedly with glib 2.78.0;
(bsc#1215709); Add patch 0005-gthreadedresolver-Fix-race.patch
-------------------------------------------------------------------
Fri Sep 8 19:58:59 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 2.78.0:
+ Bugs fixed:
- Error handling of invalid GKeyFile string escape sequences
changed in GLib 2.77.3
- gdb: Workaround optimized out quark_seq_id
- meson: fix `gnetworking.h` install tag
- gthread: Annotate g_thread_exit() with G_NORETURN
- Fix gutils-user-database unit test
+ Updated translations.
-------------------------------------------------------------------
Mon Sep 4 14:28:48 UTC 2023 - Luciano Santos <luc14n0@opensuse.org>
- Update to version 2.77.3:
+ Bugs fixed:
- GSettings schemas default value translations don't work when
using l10n=time.
- gdbus-codegen eats indentation in RST in XML comments.
- g_dbus_connection_export_menu_model() is not thread_safe.
- Possible SEGV (null pointer deref) in
distribute_method_call().
- arg_data in GOptionEntry is not a list.
- Possible SEGV (null pointer deref) in _g_resource_file_new().
- glib-unix: Clean up use of O_NONBLOCK.
- gnetworkaddress: use reentrant getservbyname_r() if
available.
- gio-tool-info: Move translator comments so theyre visible.
- gregex: set default max stack size for PCRE2 JIT compiler to
512KiB.
- glib-unix: Accept O_CLOEXEC as well as FD_CLOEXEC in
g_unix_open_pipe().
- gio: Add gresource.dtd.
- gtestutils: Mention not ignoring SIGCHLD in
g_test_trap_subprocess() docs.
- [th/gchildwatch-fail-message] gmain: improve g_warning() for
failure in g_child_watch_dispatch().
- [th/use-localtime-r] use localtime_r() in
g_log_writer_format_fields().
- gregex: if JIT stack limit is reached, fall back to
interpretive matching.
- glib/gfileutils.c: use 64 bits for value in get_tmp_file().
- gkeyfile: Fix overwriting of GError.
+ Updated translations.
- Update https://wiki.gnome.org/Projects/GLib URL tag to
https://gitlab.gnome.org/GNOME/glib/, as the former points to the
latter.
-------------------------------------------------------------------
Mon Sep 4 14:27:48 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 2.77.2:
+ Bugs fixed:
- g_test_trap_subprocess and g_test_subprocess broken in 2.77.1
- ci: Dont run pipeline after merging a MR
- Fix typos
- GTree: Handle node counter overflow and return it as an
unsigned value
- gspawn, gdataset: Restore nullable callback functions
+ Updated translations.
-------------------------------------------------------------------
Mon Sep 4 14:26:48 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 2.77.1:
+ Fix some regressions with `GKeyFile` comment handling.
+ Improve handling of query and fragment components in `file:`
URIs.
+ Various bugs fixed.
+ Updated transltations.
- Drop glib2-revert-004f48f4.patch: Fixed upstream.
-------------------------------------------------------------------
Mon Sep 4 14:25:48 UTC 2023 - Luciano Santos <luc14n0@opensuse.org>
- Add glib2-revert-004f48f4.patch: This patch reverts the "build/\
gmodule-2.0.pc: Move compiler flags from Libs to Cglags" MR
(glgo#GNOME/glib!3356), as per agreement discussed in said MR.
-------------------------------------------------------------------
Mon Sep 4 14:24:48 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 2.77.0:
+ Fix `GSocketClient` connecting to a proxy if the port is not
specified
+ Support using `copy_file_range()` in `g_file_copy()`, if
available
+ Improve handling of comments above groups in key files
+ Re-upgrade missing attribute debugs to criticals in `GFileInfo`
+ Do not redefine NULL on C++
+ Make `g_signal_handlers_block_matched()` work for
`G_SIGNAL_MATCH_ID`
+ Fixes to support building with bionic libc better
+ Fix potential stack overflow in gspawn on macOS if open file
limit is very high
+ Fix support for `--force-fallback-for libpcre` in meson
configuration
+ Generate specific marshallers in `gdbus-codegen`
+ Fix build failure on Android with `statx()` support
+ Improve locking performance of `GSignal`
+ Improve locking performance of `g_main_context_iterate()`
+ Add an inline definition of `g_free()` to automatically use
`g_free_sized()` if available
+ Fix race with `waitpid()` and `GChildWatchSource`
+ Add `glib_valgrind_suppressions` variable to glib pkg-config
file
+ Fix build on macOS SDK 10.11
+ Switch to using a separate thread pool and support timeouts in
`GThreadedResolver`
+ Track pending `GTask`s if `G_ENABLE_DEBUG` is defined
+ Support GSignal fast path and more marshallers in
`gobject_gdb.py`
+ Disable the macOS CI because its too unreliable — if you rely
on GLib working on macOS, please get in touch and do something
to help!
+ Updated translations.
-------------------------------------------------------------------
Mon Sep 4 14:23:48 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 2.76.5:
+ Bugs fixed:
- Possible SEGV (null pointer deref) in
distribute_method_call().
- Possible SEGV (null pointer deref) in _g_resource_file_new().
- Backport !3529 “gmenuexporter: synchronization in
org_gtk_Menus_get_interface.” to glib-2-76.
- Backport !3547 “glib/gfileutils.c: use 64 bits for value in
get_tmp_file()” to glib-2-76.
- Backport !3554 “gresourcefile: Fix crash if called with a
badly escaped URI” to glib-2-76.
- Backport !3555 “gkeyfile: Fix overwriting of GError” to
glib-2-76.
- Backport !3539 “gdbusmessage: Validate required headers have
the right type” to glib-2-76.
-------------------------------------------------------------------
Thu Jul 6 16:01:21 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 2.76.4:
+ Fix build failure on Android with `statx()` support
+ Bugs fixed:
- glib-compile-schemas failed on directory name with no Latin
symbols
- Build failure due to statx fields with NDK r25.c
- glib-compile-resources: Fix non-ASCII arg parsing on Windows
- glib: reset errno to 0 when futex() returns EAGAIN
- Avoid stack overflow in gspawn on macOS
- glocalfileinfo: Fix incorrect use of struct
statx.st_mtimensec on Android
+ Updated translations.
-------------------------------------------------------------------
Tue May 23 16:14:57 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 2.76.3:
+ Bugs fixed: glgo#GNOME/GLib#1264, glgo#GNOME/GLib!3402,
glgo#GNOME/GLib!3403, glgo#GNOME/GLib!3427,
glgo#GNOME/GLib!3428, glgo#GNOME/GLib!3434.
+ Updated translations.
-------------------------------------------------------------------
Fri Apr 21 16:14:57 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
@ -162,7 +455,24 @@ Fri Feb 24 02:50:22 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
`/var/run/dbus/system_bus_socket` to
`/run/dbus/system_bus_socket`, in line with changes in
dbus.git.
- Drop glib2-dbus-socket-path.patch: fixed upstream.
- Drop patches:
+ glib2-dbus-socket-path.patch: fixed upstream.
+ glib2-fix-normal-form-handling-in-gvariant.patch: fixed upstream
-------------------------------------------------------------------
Tue Feb 23 16:14:12 UTC 2023 - Alynx Zhou <alynx.zhou@suse.com>
- Update glib2-fix-normal-form-handling-in-gvariant.patch:
Backported from upstream to fix regression on s390x.
(bsc#1210135, glgo#GNOME/glib!2978)
-------------------------------------------------------------------
Fri Feb 23 15:00:15 UTC 2023 - Alynx Zhou <alynx.zhou@suse.com>
- Add glib2-fix-normal-form-handling-in-gvariant.patch: Backported
from upstream to fix normal form handling in GVariant.
(CVE-2023-24593, CVE-2023-25180, bsc#1209714, bsc#1209713,
glgo#GNOME/glib!3125)
-------------------------------------------------------------------
Thu Feb 23 14:27:05 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>

View File

@ -30,13 +30,13 @@
%define libgthread libgthread-%{libver}
%bcond_without systemtap
Name: glib2%{psuffix}
Version: 2.76.2
Version: 2.78.6
Release: 0
Summary: General-Purpose Utility Library
License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
URL: https://wiki.gnome.org/Projects/GLib
Source0: https://download.gnome.org/sources/glib/2.76/glib-%{version}.tar.xz
URL: https://gitlab.gnome.org/GNOME/glib/
Source0: https://download.gnome.org/sources/glib/2.78/glib-%{version}.tar.xz
Source1: glib2.sh
Source2: glib2.csh
# Not upstream file. Only proposes upstream packages:
@ -147,6 +147,9 @@ Requires: glibc-devel
Requires: pkgconfig
# Required by gdbus-codegen
Requires: python3-xml
# GDbusTest launches dbus-daemon with a special env to not interfere with
# the real session bus.
Requires: %{_bindir}/dbus-daemon
#
%description devel
@ -200,7 +203,7 @@ Group: System/Libraries
#!BuildIgnore: shared-mime-info
Requires: %{name}-tools
# bnc#678518: libgio interacts with others by means of dbus-launch
Requires: dbus-launch
Requires: (%{_bindir}/dbus-launch if dbus-service)
Requires: gio-branding = %{version}
Requires: shared-mime-info
# Needed for branding packages
@ -253,11 +256,7 @@ the functionality of the installed glib2 package.
%lang_package
%prep
%setup -q -n glib-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch4 -p1
%autosetup -p1 -n glib-%{version}
cp -a %{SOURCE1} %{SOURCE2} %{SOURCE5} .
cp -a %{SOURCE4} gnome_defaults.conf
@ -312,6 +311,7 @@ ln -s %{_localstatedir}/cache/gio-2.0/gnome-mimeapps.list %{buildroot}%{_datadir
# gio-querymodules magic
%if "%{_lib}" == "lib64"
mv -T %{buildroot}%{_bindir}/gio-querymodules %{buildroot}%{_bindir}/gio-querymodules-64
sed -i -e "/^gio_querymodules=/s/gio-querymodules/gio-querymodules-64/" %{buildroot}%{_libdir}/pkgconfig/gio-2.0.pc
%endif
mkdir -p %{buildroot}%{_libdir}/gio/modules
>> %{buildroot}%{_libdir}/gio/modules/giomodule.cache
@ -468,6 +468,7 @@ done
%dir %{_datadir}/gettext/its/
%{_datadir}/gettext/its/gschema*
%dir %{_datadir}/glib-2.0/
%{_datadir}/glib-2.0/dtds/
%{_datadir}/glib-2.0/gdb/
%{_datadir}/glib-2.0/gettext/
%{_datadir}/glib-2.0/codegen/