Hello community, here is the log from the commit of package glib2 for openSUSE:Factory checked in at 2019-03-22 14:57:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/glib2 (Old) and /work/SRC/openSUSE:Factory/.glib2.new.25356 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "glib2" Fri Mar 22 14:57:27 2019 rev:206 rq:686371 version:2.60.0 Changes: -------- --- /work/SRC/openSUSE:Factory/glib2/glib2.changes 2019-02-24 17:05:51.620610119 +0100 +++ /work/SRC/openSUSE:Factory/.glib2.new.25356/glib2.changes 2019-03-22 14:57:32.397943675 +0100 @@ -1,0 +2,49 @@ +Tue Mar 5 16:03:29 UTC 2019 - Antonio Larrosa <[email protected]> + +- Add patch submitted upstream to handle an UNKNOWN NM connectivity + the same as a NONE value. This partly fixes boo#1103678 + (packagekit reports the network as available on a computer + without network connectivity which makes plasma-pk-update start + an update check which obviously fails). + * 0001-Handle-an-UNKNOWN-NetworkManager-connectivity-as-NONE.patch + +------------------------------------------------------------------- +Mon Mar 4 21:28:16 UTC 2019 - Bjørn Lie <[email protected]> + +- Update to version 2.60.0: + + Further fixes to the Happy Eyeballs (RFC 8305) implementation. + + Add support for the XDG trash portal. + + Bugs fixed: glgo#GNOME/GLib#1653, glgo#GNOME/GLib#1658, + glgo#GNOME/GLib#1668, glgo#GNOME/GLib#1675, + glgo#GNOME/GLib#1676, glgo#GNOME/GLib#1679, + glgo#GNOME/GLib#1693, glgo#GNOME/GLib#1697, + glgo#GNOME/GLib#1698, glgo#GNOME/GLib!276, glgo#GNOME/GLib!639, + glgo#GNOME/GLib!666, glgo#GNOME/GLib!674, glgo#GNOME/GLib!676, + glgo#GNOME/GLib!677, glgo#GNOME/GLib!686, glgo#GNOME/GLib!688, + glgo#GNOME/GLib!689, glgo#GNOME/GLib!691, glgo#GNOME/GLib!692, + glgo#GNOME/GLib!696, glgo#GNOME/GLib!698, glgo#GNOME/GLib!699, + glgo#GNOME/GLib!702, glgo#GNOME/GLib!703. + + Updated translations. + +------------------------------------------------------------------- +Wed Feb 13 02:59:02 UTC 2019 - [email protected] + +- Update to version 2.59.2: + + Fix check on GDBusMessage size when reading it. + + Add async GIO API: g_file_query_default_handler_async(), + g_app_info_launch_uris_async(). + + Fix some bugs in the Happy Eyeballs implementation. + + Install a new generated header with enum types for Unicode + enums. + + Support the XDG trash portal. + + Bugs fixed: glgo#GNOME/GLib#1224, glgo#GNOME/GLib#1249, + glgo#GNOME/GLib#1347, glgo#GNOME/GLib#1376, + glgo#GNOME/GLib#1642, glgo#GNOME/GLib#1646, + glgo#GNOME/GLib#1649, glgo#GNOME/GLib#1673, + glgo#GNOME/GLib!276, glgo#GNOME/GLib!481, glgo#GNOME/GLib!585, + glgo#GNOME/GLib!593, glgo#GNOME/GLib!609, glgo#GNOME/GLib!619, + glgo#GNOME/GLib!622, glgo#GNOME/GLib!626, glgo#GNOME/GLib!627, + glgo#GNOME/GLib!629, glgo#GNOME/GLib!630. + + Updated translations. + +------------------------------------------------------------------- @@ -15,0 +65,93 @@ + +------------------------------------------------------------------- +Sat Jan 26 17:20:16 UTC 2019 - [email protected] + +- Update to version 2.59.1: + + Autotools support is gone. + + g_format_size() now uses a no-break space to separate digits + and units; translations will need to be updated accordingly. + + New g_queue_clear_full() API. + + Fix argument quoting on win32 when spawning subprocesses. + + Allow polling more than 64 handles on win32 using g_poll(). + + Tag various tests as ‘flaky’. These are no longer run routinely + on our upstream CI machines, and downstream packagers may want + to not run them (or not treat those test failures as package + build failures) on their test machines either. They are in the + `flaky` test suite. + + Add overlay support to g_resources_get_info(). + + Support defaults and locks in the keyfile GSettings backend. + This will be used for flatpaks. + + Accept unquoted strings in the keyfile GSettings backend to + simplify things for sysadmins. + + Update our contribution guidelines (`CONTRIBUTING.md`). + + Add writev() and writev_all() APIs to GOutputStream and + GPollableOutputStream, and provide implementations of them for + many subclasses. + + Many more bugs fixed, see package NEWS file for full list. + + Updated translations. +- Remove conditionals for meson build, use meson unconditionally + following upstreams removal of autotools. +- Add new glib2-tests subpackage. + +------------------------------------------------------------------- +Mon Jan 21 15:53:14 UTC 2019 - [email protected] + +- Update to version 2.59.0: + + This will be the last development release with autotools + support. As our Meson support has been around since 2.56.x, and + was used to release tarballs in 2.58.x, the next development + release (2.59.1) will drop autotools as used to build GLib. The + macros installed for other packages to use will remain. + + Add `G_TEST_OPTION_ISOLATE_DIRS` to redirect `XDG_*_HOME` to a + temporary directory for each unit test. + + Support `Property.EmitsChangedSignal` annotations in + `gdbus-codegen`. + + Add `g_assert_cmpvariant()` API for unit tests. + + Hide bind mounts from GIO mount listings. + + 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. + + Support `ld -b binary` (on platforms which support it; i.e. + Linux) to provide large pre-compiled `GResource` resources with + a fast compilation time. + + Unconditionally install GLib m4 macros, so that projects which + depend on GLib and which still build using autotools can + continue to build even once GLib has ported entirely to Meson. + + Various fixes to the Meson build. + + Drop Python 2 support and require Python 3.4+. See discussion + on https://mail.gnome.org/archives/desktop-devel-list/2018-July/msg00004.html. + + `GHashTable` performance and memory improvements for common + cases. See + https://hpjansson.org/blag/2018/07/24/a-hash-table-re-hash/. + + Add flags that allow a `GApplication` to signal and replace a + currently running other instance of the same `GApplication`. + This will be used for app upgrades with flatpak. + + Autostart xdg-desktop-portal when using the network monitor and + proxy monitor portal backends. + + Add a g_task_set_name() API to allow `GTask`s to be described; + useful for debugging. + + Enable FreeBSD CI on every commit for upstream GLib. + + Various GVariant, GMarkup and GDBus fuzzing fixes, including + buffer overflow fixes. + + Various fixes to eliminate thread races, found by thread + sanitizer (tsan). + + Deprecate TLS/DTLS rehandshaking, as it has been removed from + the protocol in TLS 1.3. + + Support reading arguments from a file with `glib-mkenums`, + which is useful for long argument lists due to having deeply + nested build directories, on systems with a low limit on the + command line length. + + Make `g_environ_*()` case-insensitive on Windows, as the + environment itself is case-insensitive on Windows. + + Add Application Layer Protocol Negotiation (ALPN) support to + `GTlsConnection` and `GDtlsConnection`, so that higher layer + protocols can be negotiated when setting up a TLS connection, + without additional round trips and latency. This is needed for + eventual HTTP/2 support. + + Add support for TPM keys in PEM files when loading TLS + certificates. + + Add a `GRecMutexLocker` auto-pointer wrapper for `GRecMutex`. + + Many more bugs fixed, see package NEWS file for full list. + + Updated translations. Old: ---- glib-2.58.3.tar.xz New: ---- 0001-Handle-an-UNKNOWN-NetworkManager-connectivity-as-NONE.patch glib-2.60.0.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ glib2.spec ++++++ --- /var/tmp/diff_new_pack.VheyV0/_old 2019-03-22 14:57:33.057943220 +0100 +++ /var/tmp/diff_new_pack.VheyV0/_new 2019-03-22 14:57:33.057943220 +0100 @@ -18,17 +18,14 @@ # systemtap is only offered as build-option, but not enabled, as it causes a build cycle %bcond_with systemtap -# Meson is still not recommended by upstream and openQA has having many -# suspicious failures that seems to point to Glib. -%bcond_with meson Name: glib2 -Version: 2.58.3 +Version: 2.60.0 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.58/glib-%{version}.tar.xz +Source0: https://download.gnome.org/sources/glib/2.60/glib-%{version}.tar.xz Source1: glib2.sh Source2: glib2.csh # Not upstream file. Only proposes upstream packages: @@ -50,6 +47,8 @@ Patch3: glib2-dbus-socket-path.patch # PATCH-FIX-OPENSUSE glib2-gdbus-codegen-version.patch [email protected] -- Remove version string from files generated by gdbus-codegen Patch4: glib2-gdbus-codegen-version.patch +# PATCH-FIX-UPSTREAM 0001-Handle-an-UNKNOWN-NetworkManager-connectivity-as-NONE.patch boo#1103678 [email protected] -- Fix check for network availability when NM reports it as unknown +Patch5: 0001-Handle-an-UNKNOWN-NetworkManager-connectivity-as-NONE.patch BuildRequires: docbook-xsl-stylesheets BuildRequires: fdupes BuildRequires: gamin-devel @@ -57,6 +56,7 @@ BuildRequires: gtk-doc BuildRequires: libselinux-devel BuildRequires: m4 +BuildRequires: meson BuildRequires: pkgconfig BuildRequires: python3-base # gdbus-codegen is run during the build, so we need python3-xml @@ -71,11 +71,6 @@ BuildRequires: pkgconfig(zlib) # gtk-doc requires glib2-devel, but we will only be building this here; break up a cycle #!BuildIgnore: glib2-devel -%if %{with meson} -BuildRequires: meson -%else -BuildRequires: libtool -%endif %if %{with systemtap} BuildRequires: systemtap-sdt-devel %endif @@ -183,10 +178,10 @@ %package -n libgio-2_0-0 Summary: A virtual file system library API -Group: System/Libraries +# The tools are useful for people having libgio # bnc#555605: shared-mime-info is required by libgio to properly detect mime types, but not during build #!BuildIgnore: shared-mime-info -# The tools are useful for people having libgio +Group: System/Libraries Requires: %{name}-tools # bnc#678518: libgio interacts with others by means of dbus-launch Requires: dbus-launch @@ -242,6 +237,15 @@ The GObject library provides an object-oriented framework for C. +%package tests +Summary: Tests for the glib2 package +Group: Development/Libraries/C and C++ +Requires: %{name}-devel = %{version} + +%description tests +The glib2-tests package contains tests that can be used to verify +the functionality of the installed glib2 package. + %lang_package %prep @@ -252,57 +256,35 @@ %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 cp -a %{SOURCE1} %{SOURCE2} %{SOURCE5} . cp -a %{SOURCE4} gnome_defaults.conf -%if !%{with meson} -cp %{_datadir}/gtk-doc/data/gtk-doc.make . -%endif # replace /usr/bin/env shebangs # /usr/bin/env @PYTHON@ -> /usr/bin/python3 grep "%{_bindir}/env @PYTHON@" . -rl | xargs sed -i "s|%{_bindir}/env @PYTHON@|%{_bindir}/python3|g" %build -%if %{with meson} %meson \ --default-library=both \ - -Dselinux=true \ + -Dselinux=enabled \ -Dman=true \ -Dgtk_doc=true \ -Dfam=true \ %if %{with systemtap} -Dsystemtap=true \ -%endif -Ddtrace=true \ - -Dinternal_pcre=false -%meson_build %else -autoreconf -fi -%configure \ - --enable-static \ - --enable-selinux \ - --enable-gtk-doc \ - --enable-man \ - --with-python=%{_bindir}/python3 \ -%if %{with systemtap} - --enable-systemtap \ -%endif - --with-pcre=system -%make_build -%endif - -%if %{with meson} -%check -%meson_test + -Dsystemtap=false \ + -Ddtrace=false \ %endif + -Dinternal_pcre=false \ + -Dinstalled_tests=true \ + %{nil} +%meson_build %install -%if %{with meson} %meson_install -%else -%make_install -find %{buildroot} -type f -name "*.la" -delete -print -rm %{buildroot}%{_libdir}/gio/modules/libgiofam.a -%endif + %if 0%{?suse_version} <= 1120 rm %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/* %endif @@ -353,6 +335,10 @@ fi done +%check +### FIXME ### Figure out how to run the "stable tests" only ref info from upstream. +#%%meson_test + %post -n libgmodule-2_0-0 -p /sbin/ldconfig %post -n libgio-fam %if 0 @@ -510,4 +496,8 @@ %files lang -f glib20.lang +%files tests +%{_libexecdir}/installed-tests +%{_datadir}/installed-tests + %changelog ++++++ 0001-Handle-an-UNKNOWN-NetworkManager-connectivity-as-NONE.patch ++++++ >From 2932a58cd5e968d3f398f00ae9f78688c826606e Mon Sep 17 00:00:00 2001 From: Antonio Larrosa <[email protected]> Date: Tue, 12 Mar 2019 18:35:10 +0100 Subject: [PATCH] Handle an UNKNOWN NetworkManager connectivity as NONE nm_conn_to_g_conn already handles UNKNOWN like NONE (returning G_NETWORK_CONNECTIVITY_LOCAL in both cases). So in sync_properties we should also set new_connectivity to G_NETWORK_CONNECTIVITY_LOCAL for both NM_CONNECTIVITY_UNKNOWN and NM_CONNECTIVITY_NONE. This has the added benefit that when NetworkManager returns the network connectivity is UNKNOWN, we set network_available to FALSE as it should be. Previously, there were cases in a laptop with no network access, that g_network_monitor_get_network_available returned true, which was wrong and is also fixed with this commit. --- gio/gnetworkmonitornm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gio/gnetworkmonitornm.c b/gio/gnetworkmonitornm.c index 5bc8c925a..4e2a35e8a 100644 --- a/gio/gnetworkmonitornm.c +++ b/gio/gnetworkmonitornm.c @@ -167,7 +167,8 @@ sync_properties (GNetworkMonitorNM *nm, nm_connectivity = g_variant_get_uint32 (v); g_variant_unref (v); - if (nm_connectivity == NM_CONNECTIVITY_NONE) + if (nm_connectivity == NM_CONNECTIVITY_UNKNOWN || + nm_connectivity == NM_CONNECTIVITY_NONE) { new_network_available = FALSE; new_network_metered = FALSE; -- 2.21.0 ++++++ glib-2.58.3.tar.xz -> glib-2.60.0.tar.xz ++++++ ++++ 191045 lines of diff (skipped)
