* Re: [PR PATCH] [Updated] glib: update to 2.70.0, patch out warning about deprecated scheme paths
2021-09-18 22:37 [PR PATCH] glib: update to 2.70.0, patch out warning about deprecated scheme paths paper42
@ 2021-09-18 22:37 ` paper42
2021-09-20 10:54 ` paper42
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: paper42 @ 2021-09-18 22:37 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1044 bytes --]
There is an updated pull request by paper42 against master on the void-packages repository
https://github.com/paper42/void-packages glib-2.70
https://github.com/void-linux/void-packages/pull/33017
glib: update to 2.70.0, patch out warning about deprecated scheme paths
#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
Adds a patch to remove the annoying warnings about deprecated paths on each glib-compile-schemas call (for example xbps updates). Other distributions also have this patch.
This PR needs a bit more testing especially on musl before it can be merged.
A patch file from https://github.com/void-linux/void-packages/pull/33017.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-glib-2.70-33017.patch --]
[-- Type: text/x-diff, Size: 6028 bytes --]
From bd8ea4573d41b5761f02c315da627667815eb9be Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Sat, 18 Sep 2021 22:37:13 +0200
Subject: [PATCH] glib: update to 2.70.0.
* patch out warning about deprecated scheme paths
* fix update-check detection
---
.../glib/patches/disable-broken-tests.patch | 49 ++++++++++++-------
...e-schemas-remove-deprecated-warnings.patch | 22 +++++++++
srcpkgs/glib/template | 10 ++--
srcpkgs/glib/update | 2 +-
4 files changed, 59 insertions(+), 24 deletions(-)
create mode 100644 srcpkgs/glib/patches/glib-compile-schemas-remove-deprecated-warnings.patch
diff --git a/srcpkgs/glib/patches/disable-broken-tests.patch b/srcpkgs/glib/patches/disable-broken-tests.patch
index 9fd27bb105a5..c6bb8d96fadf 100644
--- a/srcpkgs/glib/patches/disable-broken-tests.patch
+++ b/srcpkgs/glib/patches/disable-broken-tests.patch
@@ -1,5 +1,3 @@
-diff --git gio/tests/meson.build gio/tests/meson.build
-index a926ae01a..c2093cf4e 100644
--- a/gio/tests/meson.build
+++ b/gio/tests/meson.build
@@ -50,7 +50,6 @@ gio_tests = {
@@ -15,23 +13,33 @@ index a926ae01a..c2093cf4e 100644
'network-monitor-race' : {},
'permission' : {},
- 'pollable' : {'dependencies' : [libdl_dep]},
+ 'power-profile-monitor' : {},
'proxy-test' : {},
'readwrite' : {},
- 'simple-async-result' : {},
-@@ -567,7 +565,7 @@ if installed_tests_enabled
- endforeach
+@@ -151,7 +149,6 @@ endif
+ # Test programs buildable on UNIX only
+ if host_machine.system() != 'windows'
+ gio_tests += {
+- 'file' : {},
+ 'gdbus-peer' : {
+ 'dependencies' : [libgdbus_example_objectmanager_dep],
+ 'install_rpath' : installed_tests_execdir
+@@ -737,12 +734,6 @@ if not meson.is_cross_build() or meson.has_exe_wrapper()
+ test_resources_binary2,
+ ]
+ endif
+-
+- gio_tests += {
+- 'resources' : {
+- 'extra_sources' : resources_extra_sources,
+- },
+- }
endif
--if not meson.is_cross_build() or meson.has_exe_wrapper()
-+if false
-
- plugin_resources_c = custom_target('plugin-resources.c',
- input : 'test4.gresource.xml',
-diff --git glib/tests/meson.build glib/tests/meson.build
-index c77ccdd14..b0dab692a 100644
+ foreach test_name, extra_args : gio_tests
--- a/glib/tests/meson.build
+++ b/glib/tests/meson.build
-@@ -11,21 +11,13 @@ glib_tests = {
+@@ -11,21 +11,14 @@ glib_tests = {
'cache' : {},
'charset' : {},
'checksum' : {},
@@ -46,14 +54,14 @@ index c77ccdd14..b0dab692a 100644
'dir' : {},
'environment' : {},
- 'error' : {},
-- 'fileutils' : {},
+ 'fileutils' : {},
- 'gdatetime' : {
- 'suite' : ['slow'],
- },
'guuid' : {},
'gvariant' : {
'suite' : ['slow'],
-@@ -57,7 +49,6 @@ glib_tests = {
+@@ -57,7 +50,6 @@ glib_tests = {
'mutex' : {},
'node' : {},
'once' : {},
@@ -61,6 +69,11 @@ index c77ccdd14..b0dab692a 100644
'option-argv0' : {},
'overflow' : {},
'overflow-fallback' : {
---
-2.31.0
-
+@@ -102,7 +94,6 @@ glib_tests = {
+ 'thread' : {},
+ 'thread-pool' : {},
+ 'timeout' : {},
+- 'timer' : {},
+ 'tree' : {},
+ 'utf8-performance' : {},
+ 'utf8-pointer' : {},
diff --git a/srcpkgs/glib/patches/glib-compile-schemas-remove-deprecated-warnings.patch b/srcpkgs/glib/patches/glib-compile-schemas-remove-deprecated-warnings.patch
new file mode 100644
index 000000000000..8e53c977df4a
--- /dev/null
+++ b/srcpkgs/glib/patches/glib-compile-schemas-remove-deprecated-warnings.patch
@@ -0,0 +1,22 @@
+--- a/gio/glib-compile-schemas.c
++++ b/gio/glib-compile-schemas.c
+@@ -1232,19 +1232,6 @@ parse_state_start_schema (ParseState *state,
+ return;
+ }
+
+- if (path && (g_str_has_prefix (path, "/apps/") ||
+- g_str_has_prefix (path, "/desktop/") ||
+- g_str_has_prefix (path, "/system/")))
+- {
+- gchar *message = NULL;
+- message = g_strdup_printf (_("Warning: Schema “%s” has path “%s”. "
+- "Paths starting with "
+- "“/apps/”, “/desktop/” or “/system/” are deprecated."),
+- id, path);
+- g_printerr ("%s\n", message);
+- g_free (message);
+- }
+-
+ state->schema_state = schema_state_new (path, gettext_domain,
+ extends, extends_name, list_of);
+
diff --git a/srcpkgs/glib/template b/srcpkgs/glib/template
index 666b0cc86ad3..ea4b41be9493 100644
--- a/srcpkgs/glib/template
+++ b/srcpkgs/glib/template
@@ -1,7 +1,7 @@
# Template file for 'glib'
pkgname=glib
-version=2.68.3
-revision=2
+version=2.70.0
+revision=1
build_style=meson
# static version is necessary for qemu-user-static;
# also disable LTO, otherwise there are multiple failures when linking qemu
@@ -15,9 +15,9 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://wiki.gnome.org/Projects/GLib"
#changelog="https://gitlab.gnome.org/GNOME/glib/raw/main/NEWS"
-changelog="https://gitlab.gnome.org/GNOME/glib/raw/glib-2-68/NEWS"
+changelog="https://gitlab.gnome.org/GNOME/glib/raw/glib-2-70/NEWS"
distfiles="${GNOME_SITE}/glib/${version%.*}/glib-${version}.tar.xz"
-checksum=e7e1a3c20c026109c45c9ec4a31d8dcebc22e86c69486993e565817d64be3138
+checksum=200d7df811c5ba634afbf109f14bb40ba7fde670e89389885da14e27c0840742
build_options="gtk_doc"
desc_option_gtk_doc="Build GTK API docs"
@@ -31,7 +31,7 @@ do_check() {
}
libglib-devel_package() {
- depends="${makedepends} glib>=${version}_${revision}"
+ depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
lib32files="/usr/lib/glib-2.0/include/glibconfig.h"
pkg_install() {
diff --git a/srcpkgs/glib/update b/srcpkgs/glib/update
index 89470583c5dc..98ff14720ccf 100644
--- a/srcpkgs/glib/update
+++ b/srcpkgs/glib/update
@@ -1 +1 @@
-site="https://gitlab.gnome.org/GNOME/glib/-/tags"
+pattern="glib-[0-9]+\.[0-9]*[02468]\.[0-9]+"
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: glib: update to 2.70.0, patch out warning about deprecated scheme paths
2021-09-18 22:37 [PR PATCH] glib: update to 2.70.0, patch out warning about deprecated scheme paths paper42
2021-09-18 22:37 ` [PR PATCH] [Updated] " paper42
@ 2021-09-20 10:54 ` paper42
2021-09-20 16:04 ` paper42
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: paper42 @ 2021-09-20 10:54 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 6188 bytes --]
New comment by paper42 on void-packages repository
https://github.com/void-linux/void-packages/pull/33017#issuecomment-922820479
Comment:
This update breaks getting secrets in Geary:
```
$ geary -d
[deb] 12:51:03.0874 GLib-GIO:_g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
[deb] 12:51:03.0878 GLib-GIO:_g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for ‘gsettings-backend’
[deb] 12:51:03.0878 dconf:watch_fast: "/org/gnome/desktop/interface/" (establishing: 0, active: 0)
[deb] 12:51:03.0878 dconf:watch_fast: "/org/gnome/desktop/peripherals/mouse/" (establishing: 0, active: 0)
[deb] 12:51:03.0878 dconf:watch_fast: "/org/gnome/desktop/sound/" (establishing: 0, active: 0)
[deb] 12:51:03.0878 dconf:watch_fast: "/org/gnome/desktop/privacy/" (establishing: 0, active: 0)
[deb] 12:51:03.0878 dconf:watch_fast: "/org/gnome/desktop/wm/preferences/" (establishing: 0, active: 0)
[deb] 12:51:03.0878 dconf:watch_fast: "/org/gnome/settings-daemon/plugins/xsettings/" (establishing: 0, active: 0)
[deb] 12:51:03.0879 dconf:watch_fast: "/org/gnome/desktop/a11y/" (establishing: 0, active: 0)
[deb] 12:51:03.0879 dconf:watch_established: "/org/gnome/desktop/interface/" (establishing: 1)
[deb] 12:51:03.0879 dconf:watch_established: "/org/gnome/desktop/peripherals/mouse/" (establishing: 1)
[deb] 12:51:03.0879 dconf:watch_established: "/org/gnome/desktop/sound/" (establishing: 1)
[deb] 12:51:03.0879 dconf:watch_established: "/org/gnome/desktop/privacy/" (establishing: 1)
[deb] 12:51:03.0879 dconf:watch_established: "/org/gnome/desktop/wm/preferences/" (establishing: 1)
[deb] 12:51:03.0879 dconf:watch_established: "/org/gnome/settings-daemon/plugins/xsettings/" (establishing: 1)
[deb] 12:51:03.0879 dconf:watch_established: "/org/gnome/desktop/a11y/" (establishing: 1)
[deb] 12:51:03.0922 GLib:unsetenv() is not thread-safe and should not be used after threads are created
[deb] 12:51:03.0922 Gtk:Connecting to session manager
[deb] 12:51:03.0928 dconf:watch_fast: "/org/gnome/Geary/" (establishing: 0, active: 0)
[deb] 12:51:03.0928 dconf:watch_fast: "/org/gnome/desktop/interface/" (establishing: 0, active: 1)
[deb] 12:51:03.0929 dconf:watch_established: "/org/gnome/Geary/" (establishing: 1)
[msg] 12:51:03.0931 geary:application-client.vala:984: Geary 40.0 prefix=/usr exec_dir=/usr/bin is_installed=true
[deb] 12:51:04.0051 dconf:watch_fast: "/org/freedesktop/folks/" (establishing: 0, active: 0)
[deb] 12:51:04.0052 dconf:watch_established: "/org/freedesktop/folks/" (establishing: 1)
[deb] 12:51:04.0053 geary:application-plugin-manager.vala:599: Loading autoload plugin: folder-highlight
[deb] 12:51:04.0055 geary:application-plugin-manager.vala:599: Loading autoload plugin: special-folders
[deb] 12:51:04.0056 geary:application-plugin-manager.vala:599: Loading autoload plugin: notification-badge
[deb] 12:51:04.0058 geary:application-plugin-manager.vala:599: Loading autoload plugin: desktop-notifications
[deb] 12:51:04.0060 Gcr:starting initialize of registered modules
[deb] 12:51:04.0090 dconf:watch_fast: "/org/gnome/evolution/" (establishing: 0, active: 0)
[deb] 12:51:04.0090 Gcr:completed initialize of registered modules
[deb] 12:51:04.0090 dconf:watch_established: "/org/gnome/evolution/" (establishing: 1)
[deb] 12:51:04.0090 Gcr:trust store uri is: pkcs11:library-manufacturer=GNOME%20Keyring;serial=1:XDG:DEFAULT
[deb] 12:51:04.0090 Gcr:trust lookup uris are: pkcs11:library-manufacturer=GNOME%20Keyring pkcs11:library-description=PKCS%2311%20Kit%20Trust%20Module
[deb] 12:51:04.0090 geary:application-certificate-manager.vala:72: GCR slot URIs found: true
[deb] 12:51:04.0090 geary:application-certificate-manager.vala:85: GCR store is R/W: true
[deb] 12:51:04.0102 GLib-GIO:_g_io_module_get_default: Found default implementation gnutls (GTlsBackendGnutls) for ‘gio-tls-backend’
*[wrn] 12:51:29.0120 geary:application-client.vala:1001: Error creating controller: Error calling StartServiceByName for org.freedesktop.secrets: Timeout was reached
[msg] 12:51:29.0264 geary:application-client.vala:984: Geary 40.0 prefix=/usr exec_dir=/usr/bin is_installed=true
[deb] 12:51:29.0270 dconf:watch_fast: "/org/freedesktop/folks/" (establishing: 0, active: 1)
[deb] 12:51:29.0270 geary:application-plugin-manager.vala:599: Loading autoload plugin: folder-highlight
[deb] 12:51:29.0270 geary:application-plugin-manager.vala:599: Loading autoload plugin: special-folders
[deb] 12:51:29.0270 geary:application-plugin-manager.vala:599: Loading autoload plugin: notification-badge
![crt] 12:51:29.0270 GLib-GIO:g_bus_unwatch_name: assertion 'watcher_id > 0' failed
![crt] 12:51:29.0270 GLib-GIO:g_bus_unwatch_name: assertion 'watcher_id > 0' failed
[deb] 12:51:29.0270 geary:application-plugin-manager.vala:599: Loading autoload plugin: desktop-notifications
[deb] 12:51:29.0271 Gcr:already initialized, no need to async
*[wrn] 12:51:29.0271 geary:application-plugin-manager.vala:791: Activating plugin notification-badge threw error, unloading: An object is already exported for the interface com.canonical.Unity.LauncherEntry at /org/gnome/Geary/plugin/notificationbadge
*[wrn] 12:51:29.0271 geary:application-plugin-manager.vala:791: Activating plugin notification-badge threw error, unloading: An object is already exported for the interface com.canonical.Unity.LauncherEntry at /org/gnome/Geary/plugin/notificationbadge
[deb] 12:51:29.0271 geary:application-certificate-manager.vala:72: GCR slot URIs found: true
[deb] 12:51:29.0271 geary:application-certificate-manager.vala:85: GCR store is R/W: true
[deb] 12:51:29.0273 dconf:unwatch_fast: "/org/gnome/evolution/" (active: 1, establishing: 0)
[deb] 12:51:29.0273 dconf:unwatch_fast: "/org/freedesktop/folks/" (active: 2, establishing: 0)
[deb] 12:51:29.0274 dconf:watch_fast: "/org/gnome/evolution/" (establishing: 0, active: 0)
[deb] 12:51:29.0274 dconf:watch_established: "/org/gnome/evolution/" (establishing: 1)
*[wrn] 12:51:34.0283 geary:application-client.vala:485: Forcing shutdown of Geary, 5s passed...
```
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: glib: update to 2.70.0, patch out warning about deprecated scheme paths
2021-09-18 22:37 [PR PATCH] glib: update to 2.70.0, patch out warning about deprecated scheme paths paper42
2021-09-18 22:37 ` [PR PATCH] [Updated] " paper42
2021-09-20 10:54 ` paper42
@ 2021-09-20 16:04 ` paper42
2021-09-20 16:04 ` paper42
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: paper42 @ 2021-09-20 16:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 266 bytes --]
New comment by paper42 on void-packages repository
https://github.com/void-linux/void-packages/pull/33017#issuecomment-923064660
Comment:
> This update breaks getting secrets in Geary:
Also pinentry takes a few seconds to show up, so I suspect Geary times out.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: glib: update to 2.70.0, patch out warning about deprecated scheme paths
2021-09-18 22:37 [PR PATCH] glib: update to 2.70.0, patch out warning about deprecated scheme paths paper42
` (2 preceding siblings ...)
2021-09-20 16:04 ` paper42
@ 2021-09-20 16:04 ` paper42
2021-09-27 20:18 ` [PR PATCH] [Updated] " paper42
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: paper42 @ 2021-09-20 16:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 256 bytes --]
New comment by paper42 on void-packages repository
https://github.com/void-linux/void-packages/pull/33017#issuecomment-923064660
Comment:
> This update breaks getting secrets in Geary:
Also pinentry takes a few seconds to show up, so Geary times out.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PR PATCH] [Updated] glib: update to 2.70.0, patch out warning about deprecated scheme paths
2021-09-18 22:37 [PR PATCH] glib: update to 2.70.0, patch out warning about deprecated scheme paths paper42
` (3 preceding siblings ...)
2021-09-20 16:04 ` paper42
@ 2021-09-27 20:18 ` paper42
2021-09-27 20:46 ` paper42
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: paper42 @ 2021-09-27 20:18 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1044 bytes --]
There is an updated pull request by paper42 against master on the void-packages repository
https://github.com/paper42/void-packages glib-2.70
https://github.com/void-linux/void-packages/pull/33017
glib: update to 2.70.0, patch out warning about deprecated scheme paths
#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
Adds a patch to remove the annoying warnings about deprecated paths on each glib-compile-schemas call (for example xbps updates). Other distributions also have this patch.
This PR needs a bit more testing especially on musl before it can be merged.
A patch file from https://github.com/void-linux/void-packages/pull/33017.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-glib-2.70-33017.patch --]
[-- Type: text/x-diff, Size: 8378 bytes --]
From 0213a0e7100e7a119ffa6ade710c619b0f51e645 Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Sat, 18 Sep 2021 22:37:13 +0200
Subject: [PATCH 1/2] glib: update to 2.70.0.
* patch out warning about deprecated scheme paths
* fix update-check detection
---
.../glib/patches/disable-broken-tests.patch | 49 ++++++++++++-------
...e-schemas-remove-deprecated-warnings.patch | 22 +++++++++
srcpkgs/glib/template | 10 ++--
srcpkgs/glib/update | 2 +-
4 files changed, 59 insertions(+), 24 deletions(-)
create mode 100644 srcpkgs/glib/patches/glib-compile-schemas-remove-deprecated-warnings.patch
diff --git a/srcpkgs/glib/patches/disable-broken-tests.patch b/srcpkgs/glib/patches/disable-broken-tests.patch
index 9fd27bb105a5..c6bb8d96fadf 100644
--- a/srcpkgs/glib/patches/disable-broken-tests.patch
+++ b/srcpkgs/glib/patches/disable-broken-tests.patch
@@ -1,5 +1,3 @@
-diff --git gio/tests/meson.build gio/tests/meson.build
-index a926ae01a..c2093cf4e 100644
--- a/gio/tests/meson.build
+++ b/gio/tests/meson.build
@@ -50,7 +50,6 @@ gio_tests = {
@@ -15,23 +13,33 @@ index a926ae01a..c2093cf4e 100644
'network-monitor-race' : {},
'permission' : {},
- 'pollable' : {'dependencies' : [libdl_dep]},
+ 'power-profile-monitor' : {},
'proxy-test' : {},
'readwrite' : {},
- 'simple-async-result' : {},
-@@ -567,7 +565,7 @@ if installed_tests_enabled
- endforeach
+@@ -151,7 +149,6 @@ endif
+ # Test programs buildable on UNIX only
+ if host_machine.system() != 'windows'
+ gio_tests += {
+- 'file' : {},
+ 'gdbus-peer' : {
+ 'dependencies' : [libgdbus_example_objectmanager_dep],
+ 'install_rpath' : installed_tests_execdir
+@@ -737,12 +734,6 @@ if not meson.is_cross_build() or meson.has_exe_wrapper()
+ test_resources_binary2,
+ ]
+ endif
+-
+- gio_tests += {
+- 'resources' : {
+- 'extra_sources' : resources_extra_sources,
+- },
+- }
endif
--if not meson.is_cross_build() or meson.has_exe_wrapper()
-+if false
-
- plugin_resources_c = custom_target('plugin-resources.c',
- input : 'test4.gresource.xml',
-diff --git glib/tests/meson.build glib/tests/meson.build
-index c77ccdd14..b0dab692a 100644
+ foreach test_name, extra_args : gio_tests
--- a/glib/tests/meson.build
+++ b/glib/tests/meson.build
-@@ -11,21 +11,13 @@ glib_tests = {
+@@ -11,21 +11,14 @@ glib_tests = {
'cache' : {},
'charset' : {},
'checksum' : {},
@@ -46,14 +54,14 @@ index c77ccdd14..b0dab692a 100644
'dir' : {},
'environment' : {},
- 'error' : {},
-- 'fileutils' : {},
+ 'fileutils' : {},
- 'gdatetime' : {
- 'suite' : ['slow'],
- },
'guuid' : {},
'gvariant' : {
'suite' : ['slow'],
-@@ -57,7 +49,6 @@ glib_tests = {
+@@ -57,7 +50,6 @@ glib_tests = {
'mutex' : {},
'node' : {},
'once' : {},
@@ -61,6 +69,11 @@ index c77ccdd14..b0dab692a 100644
'option-argv0' : {},
'overflow' : {},
'overflow-fallback' : {
---
-2.31.0
-
+@@ -102,7 +94,6 @@ glib_tests = {
+ 'thread' : {},
+ 'thread-pool' : {},
+ 'timeout' : {},
+- 'timer' : {},
+ 'tree' : {},
+ 'utf8-performance' : {},
+ 'utf8-pointer' : {},
diff --git a/srcpkgs/glib/patches/glib-compile-schemas-remove-deprecated-warnings.patch b/srcpkgs/glib/patches/glib-compile-schemas-remove-deprecated-warnings.patch
new file mode 100644
index 000000000000..8e53c977df4a
--- /dev/null
+++ b/srcpkgs/glib/patches/glib-compile-schemas-remove-deprecated-warnings.patch
@@ -0,0 +1,22 @@
+--- a/gio/glib-compile-schemas.c
++++ b/gio/glib-compile-schemas.c
+@@ -1232,19 +1232,6 @@ parse_state_start_schema (ParseState *state,
+ return;
+ }
+
+- if (path && (g_str_has_prefix (path, "/apps/") ||
+- g_str_has_prefix (path, "/desktop/") ||
+- g_str_has_prefix (path, "/system/")))
+- {
+- gchar *message = NULL;
+- message = g_strdup_printf (_("Warning: Schema “%s” has path “%s”. "
+- "Paths starting with "
+- "“/apps/”, “/desktop/” or “/system/” are deprecated."),
+- id, path);
+- g_printerr ("%s\n", message);
+- g_free (message);
+- }
+-
+ state->schema_state = schema_state_new (path, gettext_domain,
+ extends, extends_name, list_of);
+
diff --git a/srcpkgs/glib/template b/srcpkgs/glib/template
index 666b0cc86ad3..ea4b41be9493 100644
--- a/srcpkgs/glib/template
+++ b/srcpkgs/glib/template
@@ -1,7 +1,7 @@
# Template file for 'glib'
pkgname=glib
-version=2.68.3
-revision=2
+version=2.70.0
+revision=1
build_style=meson
# static version is necessary for qemu-user-static;
# also disable LTO, otherwise there are multiple failures when linking qemu
@@ -15,9 +15,9 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://wiki.gnome.org/Projects/GLib"
#changelog="https://gitlab.gnome.org/GNOME/glib/raw/main/NEWS"
-changelog="https://gitlab.gnome.org/GNOME/glib/raw/glib-2-68/NEWS"
+changelog="https://gitlab.gnome.org/GNOME/glib/raw/glib-2-70/NEWS"
distfiles="${GNOME_SITE}/glib/${version%.*}/glib-${version}.tar.xz"
-checksum=e7e1a3c20c026109c45c9ec4a31d8dcebc22e86c69486993e565817d64be3138
+checksum=200d7df811c5ba634afbf109f14bb40ba7fde670e89389885da14e27c0840742
build_options="gtk_doc"
desc_option_gtk_doc="Build GTK API docs"
@@ -31,7 +31,7 @@ do_check() {
}
libglib-devel_package() {
- depends="${makedepends} glib>=${version}_${revision}"
+ depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
lib32files="/usr/lib/glib-2.0/include/glibconfig.h"
pkg_install() {
diff --git a/srcpkgs/glib/update b/srcpkgs/glib/update
index 89470583c5dc..98ff14720ccf 100644
--- a/srcpkgs/glib/update
+++ b/srcpkgs/glib/update
@@ -1 +1 @@
-site="https://gitlab.gnome.org/GNOME/glib/-/tags"
+pattern="glib-[0-9]+\.[0-9]*[02468]\.[0-9]+"
From 487736a83610cec89255344fa3df24c8d4ca1df3 Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Mon, 27 Sep 2021 22:08:58 +0200
Subject: [PATCH 2/2] gnome-keyring: remove CAP_IPC_LOCK
due to hardening in glib 2.70, gnome-keyring is broken with CAP_IPC_LOCK
https://gitlab.gnome.org/GNOME/gnome-keyring/-/issues/77
---
srcpkgs/gnome-keyring/INSTALL | 12 ------------
srcpkgs/gnome-keyring/template | 13 ++++---------
2 files changed, 4 insertions(+), 21 deletions(-)
delete mode 100644 srcpkgs/gnome-keyring/INSTALL
diff --git a/srcpkgs/gnome-keyring/INSTALL b/srcpkgs/gnome-keyring/INSTALL
deleted file mode 100644
index 405c7c8890ef..000000000000
--- a/srcpkgs/gnome-keyring/INSTALL
+++ /dev/null
@@ -1,12 +0,0 @@
-case "${ACTION}" in
-post)
- # Set IPC capability, exit gracefully if we cannot set the capability
- # due to invalid permissions (fakeroot install).
- set +e
- setcap cap_ipc_lock=ep usr/bin/gnome-keyring-daemon
- if [ $? -ne 0 ]; then
- echo "ERROR: failed to set ipc_lock capability on gnome-keyring-daemon."
- exit 0
- fi
- ;;
-esac
diff --git a/srcpkgs/gnome-keyring/template b/srcpkgs/gnome-keyring/template
index b8defd1997dd..380489919d0b 100644
--- a/srcpkgs/gnome-keyring/template
+++ b/srcpkgs/gnome-keyring/template
@@ -1,24 +1,19 @@
# Template file for 'gnome-keyring'
pkgname=gnome-keyring
version=40.0
-revision=1
+revision=2
build_style=gnu-configure
configure_args="--with-pam-dir=/usr/lib/security --disable-schemas-compile"
hostmakedepends="autoconf docbook-xsl glib-devel intltool libtasn1-tools libxslt
openssh pkg-config"
makedepends="gcr-devel libcap-devel libcap-ng-devel libtasn1-devel pam-devel"
-# For setcap(8).
-depends="dconf gcr libcap-progs"
+depends="dconf gcr"
short_desc="GNOME password and secret manager"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
-#changelog="https://raw.githubusercontent.com/GNOME/gnome-keyring/gnome-3-28/NEWS"
+changelog="https://raw.githubusercontent.com/GNOME/gnome-keyring/gnome-40/NEWS"
homepage="https://www.gnome.org"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=a3d24db08ee2fdf240fbbf0971a98c8ee295aa0e1a774537f4ea938038a3b931
lib32disabled=yes
-
-do_check() {
- # Requires X11 server
- :
-}
+make_check=no # Requires X11 server
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PR PATCH] [Updated] glib: update to 2.70.0, patch out warning about deprecated scheme paths
2021-09-18 22:37 [PR PATCH] glib: update to 2.70.0, patch out warning about deprecated scheme paths paper42
` (4 preceding siblings ...)
2021-09-27 20:18 ` [PR PATCH] [Updated] " paper42
@ 2021-09-27 20:46 ` paper42
2021-09-27 20:50 ` paper42
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: paper42 @ 2021-09-27 20:46 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1044 bytes --]
There is an updated pull request by paper42 against master on the void-packages repository
https://github.com/paper42/void-packages glib-2.70
https://github.com/void-linux/void-packages/pull/33017
glib: update to 2.70.0, patch out warning about deprecated scheme paths
#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
Adds a patch to remove the annoying warnings about deprecated paths on each glib-compile-schemas call (for example xbps updates). Other distributions also have this patch.
This PR needs a bit more testing especially on musl before it can be merged.
A patch file from https://github.com/void-linux/void-packages/pull/33017.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-glib-2.70-33017.patch --]
[-- Type: text/x-diff, Size: 8403 bytes --]
From 0213a0e7100e7a119ffa6ade710c619b0f51e645 Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Sat, 18 Sep 2021 22:37:13 +0200
Subject: [PATCH 1/2] glib: update to 2.70.0.
* patch out warning about deprecated scheme paths
* fix update-check detection
---
.../glib/patches/disable-broken-tests.patch | 49 ++++++++++++-------
...e-schemas-remove-deprecated-warnings.patch | 22 +++++++++
srcpkgs/glib/template | 10 ++--
srcpkgs/glib/update | 2 +-
4 files changed, 59 insertions(+), 24 deletions(-)
create mode 100644 srcpkgs/glib/patches/glib-compile-schemas-remove-deprecated-warnings.patch
diff --git a/srcpkgs/glib/patches/disable-broken-tests.patch b/srcpkgs/glib/patches/disable-broken-tests.patch
index 9fd27bb105a5..c6bb8d96fadf 100644
--- a/srcpkgs/glib/patches/disable-broken-tests.patch
+++ b/srcpkgs/glib/patches/disable-broken-tests.patch
@@ -1,5 +1,3 @@
-diff --git gio/tests/meson.build gio/tests/meson.build
-index a926ae01a..c2093cf4e 100644
--- a/gio/tests/meson.build
+++ b/gio/tests/meson.build
@@ -50,7 +50,6 @@ gio_tests = {
@@ -15,23 +13,33 @@ index a926ae01a..c2093cf4e 100644
'network-monitor-race' : {},
'permission' : {},
- 'pollable' : {'dependencies' : [libdl_dep]},
+ 'power-profile-monitor' : {},
'proxy-test' : {},
'readwrite' : {},
- 'simple-async-result' : {},
-@@ -567,7 +565,7 @@ if installed_tests_enabled
- endforeach
+@@ -151,7 +149,6 @@ endif
+ # Test programs buildable on UNIX only
+ if host_machine.system() != 'windows'
+ gio_tests += {
+- 'file' : {},
+ 'gdbus-peer' : {
+ 'dependencies' : [libgdbus_example_objectmanager_dep],
+ 'install_rpath' : installed_tests_execdir
+@@ -737,12 +734,6 @@ if not meson.is_cross_build() or meson.has_exe_wrapper()
+ test_resources_binary2,
+ ]
+ endif
+-
+- gio_tests += {
+- 'resources' : {
+- 'extra_sources' : resources_extra_sources,
+- },
+- }
endif
--if not meson.is_cross_build() or meson.has_exe_wrapper()
-+if false
-
- plugin_resources_c = custom_target('plugin-resources.c',
- input : 'test4.gresource.xml',
-diff --git glib/tests/meson.build glib/tests/meson.build
-index c77ccdd14..b0dab692a 100644
+ foreach test_name, extra_args : gio_tests
--- a/glib/tests/meson.build
+++ b/glib/tests/meson.build
-@@ -11,21 +11,13 @@ glib_tests = {
+@@ -11,21 +11,14 @@ glib_tests = {
'cache' : {},
'charset' : {},
'checksum' : {},
@@ -46,14 +54,14 @@ index c77ccdd14..b0dab692a 100644
'dir' : {},
'environment' : {},
- 'error' : {},
-- 'fileutils' : {},
+ 'fileutils' : {},
- 'gdatetime' : {
- 'suite' : ['slow'],
- },
'guuid' : {},
'gvariant' : {
'suite' : ['slow'],
-@@ -57,7 +49,6 @@ glib_tests = {
+@@ -57,7 +50,6 @@ glib_tests = {
'mutex' : {},
'node' : {},
'once' : {},
@@ -61,6 +69,11 @@ index c77ccdd14..b0dab692a 100644
'option-argv0' : {},
'overflow' : {},
'overflow-fallback' : {
---
-2.31.0
-
+@@ -102,7 +94,6 @@ glib_tests = {
+ 'thread' : {},
+ 'thread-pool' : {},
+ 'timeout' : {},
+- 'timer' : {},
+ 'tree' : {},
+ 'utf8-performance' : {},
+ 'utf8-pointer' : {},
diff --git a/srcpkgs/glib/patches/glib-compile-schemas-remove-deprecated-warnings.patch b/srcpkgs/glib/patches/glib-compile-schemas-remove-deprecated-warnings.patch
new file mode 100644
index 000000000000..8e53c977df4a
--- /dev/null
+++ b/srcpkgs/glib/patches/glib-compile-schemas-remove-deprecated-warnings.patch
@@ -0,0 +1,22 @@
+--- a/gio/glib-compile-schemas.c
++++ b/gio/glib-compile-schemas.c
+@@ -1232,19 +1232,6 @@ parse_state_start_schema (ParseState *state,
+ return;
+ }
+
+- if (path && (g_str_has_prefix (path, "/apps/") ||
+- g_str_has_prefix (path, "/desktop/") ||
+- g_str_has_prefix (path, "/system/")))
+- {
+- gchar *message = NULL;
+- message = g_strdup_printf (_("Warning: Schema “%s” has path “%s”. "
+- "Paths starting with "
+- "“/apps/”, “/desktop/” or “/system/” are deprecated."),
+- id, path);
+- g_printerr ("%s\n", message);
+- g_free (message);
+- }
+-
+ state->schema_state = schema_state_new (path, gettext_domain,
+ extends, extends_name, list_of);
+
diff --git a/srcpkgs/glib/template b/srcpkgs/glib/template
index 666b0cc86ad3..ea4b41be9493 100644
--- a/srcpkgs/glib/template
+++ b/srcpkgs/glib/template
@@ -1,7 +1,7 @@
# Template file for 'glib'
pkgname=glib
-version=2.68.3
-revision=2
+version=2.70.0
+revision=1
build_style=meson
# static version is necessary for qemu-user-static;
# also disable LTO, otherwise there are multiple failures when linking qemu
@@ -15,9 +15,9 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://wiki.gnome.org/Projects/GLib"
#changelog="https://gitlab.gnome.org/GNOME/glib/raw/main/NEWS"
-changelog="https://gitlab.gnome.org/GNOME/glib/raw/glib-2-68/NEWS"
+changelog="https://gitlab.gnome.org/GNOME/glib/raw/glib-2-70/NEWS"
distfiles="${GNOME_SITE}/glib/${version%.*}/glib-${version}.tar.xz"
-checksum=e7e1a3c20c026109c45c9ec4a31d8dcebc22e86c69486993e565817d64be3138
+checksum=200d7df811c5ba634afbf109f14bb40ba7fde670e89389885da14e27c0840742
build_options="gtk_doc"
desc_option_gtk_doc="Build GTK API docs"
@@ -31,7 +31,7 @@ do_check() {
}
libglib-devel_package() {
- depends="${makedepends} glib>=${version}_${revision}"
+ depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
lib32files="/usr/lib/glib-2.0/include/glibconfig.h"
pkg_install() {
diff --git a/srcpkgs/glib/update b/srcpkgs/glib/update
index 89470583c5dc..98ff14720ccf 100644
--- a/srcpkgs/glib/update
+++ b/srcpkgs/glib/update
@@ -1 +1 @@
-site="https://gitlab.gnome.org/GNOME/glib/-/tags"
+pattern="glib-[0-9]+\.[0-9]*[02468]\.[0-9]+"
From 099f0dbd04abbe481fe8e69c640fbdc0af2af7da Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Mon, 27 Sep 2021 22:08:58 +0200
Subject: [PATCH 2/2] gnome-keyring: remove CAP_IPC_LOCK
due to hardening in glib 2.70, gnome-keyring is broken with CAP_IPC_LOCK
https://gitlab.gnome.org/GNOME/gnome-keyring/-/issues/77
* run tests
---
srcpkgs/gnome-keyring/INSTALL | 12 ------------
srcpkgs/gnome-keyring/template | 11 +++++------
2 files changed, 5 insertions(+), 18 deletions(-)
delete mode 100644 srcpkgs/gnome-keyring/INSTALL
diff --git a/srcpkgs/gnome-keyring/INSTALL b/srcpkgs/gnome-keyring/INSTALL
deleted file mode 100644
index 405c7c8890ef..000000000000
--- a/srcpkgs/gnome-keyring/INSTALL
+++ /dev/null
@@ -1,12 +0,0 @@
-case "${ACTION}" in
-post)
- # Set IPC capability, exit gracefully if we cannot set the capability
- # due to invalid permissions (fakeroot install).
- set +e
- setcap cap_ipc_lock=ep usr/bin/gnome-keyring-daemon
- if [ $? -ne 0 ]; then
- echo "ERROR: failed to set ipc_lock capability on gnome-keyring-daemon."
- exit 0
- fi
- ;;
-esac
diff --git a/srcpkgs/gnome-keyring/template b/srcpkgs/gnome-keyring/template
index b8defd1997dd..42e5f53898cb 100644
--- a/srcpkgs/gnome-keyring/template
+++ b/srcpkgs/gnome-keyring/template
@@ -1,24 +1,23 @@
# Template file for 'gnome-keyring'
pkgname=gnome-keyring
version=40.0
-revision=1
+revision=2
build_style=gnu-configure
configure_args="--with-pam-dir=/usr/lib/security --disable-schemas-compile"
hostmakedepends="autoconf docbook-xsl glib-devel intltool libtasn1-tools libxslt
openssh pkg-config"
+checkdepends="dbus xvfb-run"
makedepends="gcr-devel libcap-devel libcap-ng-devel libtasn1-devel pam-devel"
-# For setcap(8).
-depends="dconf gcr libcap-progs"
+depends="dconf gcr"
short_desc="GNOME password and secret manager"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
-#changelog="https://raw.githubusercontent.com/GNOME/gnome-keyring/gnome-3-28/NEWS"
homepage="https://www.gnome.org"
+changelog="https://raw.githubusercontent.com/GNOME/gnome-keyring/gnome-40/NEWS"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=a3d24db08ee2fdf240fbbf0971a98c8ee295aa0e1a774537f4ea938038a3b931
lib32disabled=yes
do_check() {
- # Requires X11 server
- :
+ xvfb-run make check
}
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: glib: update to 2.70.0, patch out warning about deprecated scheme paths
2021-09-18 22:37 [PR PATCH] glib: update to 2.70.0, patch out warning about deprecated scheme paths paper42
` (5 preceding siblings ...)
2021-09-27 20:46 ` paper42
@ 2021-09-27 20:50 ` paper42
2021-09-27 22:10 ` [PR PATCH] [Updated] " paper42
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: paper42 @ 2021-09-27 20:50 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 299 bytes --]
New comment by paper42 on void-packages repository
https://github.com/void-linux/void-packages/pull/33017#issuecomment-928266528
Comment:
gnome-keyring fixed:
> due to hardening in glib 2.70, gnome-keyring is broken with CAP_IPC_LOCK
https://gitlab.gnome.org/GNOME/gnome-keyring/-/issues/77
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PR PATCH] [Updated] glib: update to 2.70.0, patch out warning about deprecated scheme paths
2021-09-18 22:37 [PR PATCH] glib: update to 2.70.0, patch out warning about deprecated scheme paths paper42
` (6 preceding siblings ...)
2021-09-27 20:50 ` paper42
@ 2021-09-27 22:10 ` paper42
2021-09-29 7:47 ` paper42
2021-09-29 20:34 ` [PR PATCH] [Merged]: " paper42
9 siblings, 0 replies; 11+ messages in thread
From: paper42 @ 2021-09-27 22:10 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1044 bytes --]
There is an updated pull request by paper42 against master on the void-packages repository
https://github.com/paper42/void-packages glib-2.70
https://github.com/void-linux/void-packages/pull/33017
glib: update to 2.70.0, patch out warning about deprecated scheme paths
#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
Adds a patch to remove the annoying warnings about deprecated paths on each glib-compile-schemas call (for example xbps updates). Other distributions also have this patch.
This PR needs a bit more testing especially on musl before it can be merged.
A patch file from https://github.com/void-linux/void-packages/pull/33017.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-glib-2.70-33017.patch --]
[-- Type: text/x-diff, Size: 8424 bytes --]
From 48cdc71cbfec9c7de8ba61ee97e29451ba99e9e9 Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Sat, 18 Sep 2021 22:37:13 +0200
Subject: [PATCH 1/2] glib: update to 2.70.0.
* patch out warning about deprecated scheme paths
* fix update-check detection
---
.../glib/patches/disable-broken-tests.patch | 49 ++++++++++++-------
...e-schemas-remove-deprecated-warnings.patch | 22 +++++++++
srcpkgs/glib/template | 10 ++--
srcpkgs/glib/update | 2 +-
4 files changed, 59 insertions(+), 24 deletions(-)
create mode 100644 srcpkgs/glib/patches/glib-compile-schemas-remove-deprecated-warnings.patch
diff --git a/srcpkgs/glib/patches/disable-broken-tests.patch b/srcpkgs/glib/patches/disable-broken-tests.patch
index 9fd27bb105a5..c6bb8d96fadf 100644
--- a/srcpkgs/glib/patches/disable-broken-tests.patch
+++ b/srcpkgs/glib/patches/disable-broken-tests.patch
@@ -1,5 +1,3 @@
-diff --git gio/tests/meson.build gio/tests/meson.build
-index a926ae01a..c2093cf4e 100644
--- a/gio/tests/meson.build
+++ b/gio/tests/meson.build
@@ -50,7 +50,6 @@ gio_tests = {
@@ -15,23 +13,33 @@ index a926ae01a..c2093cf4e 100644
'network-monitor-race' : {},
'permission' : {},
- 'pollable' : {'dependencies' : [libdl_dep]},
+ 'power-profile-monitor' : {},
'proxy-test' : {},
'readwrite' : {},
- 'simple-async-result' : {},
-@@ -567,7 +565,7 @@ if installed_tests_enabled
- endforeach
+@@ -151,7 +149,6 @@ endif
+ # Test programs buildable on UNIX only
+ if host_machine.system() != 'windows'
+ gio_tests += {
+- 'file' : {},
+ 'gdbus-peer' : {
+ 'dependencies' : [libgdbus_example_objectmanager_dep],
+ 'install_rpath' : installed_tests_execdir
+@@ -737,12 +734,6 @@ if not meson.is_cross_build() or meson.has_exe_wrapper()
+ test_resources_binary2,
+ ]
+ endif
+-
+- gio_tests += {
+- 'resources' : {
+- 'extra_sources' : resources_extra_sources,
+- },
+- }
endif
--if not meson.is_cross_build() or meson.has_exe_wrapper()
-+if false
-
- plugin_resources_c = custom_target('plugin-resources.c',
- input : 'test4.gresource.xml',
-diff --git glib/tests/meson.build glib/tests/meson.build
-index c77ccdd14..b0dab692a 100644
+ foreach test_name, extra_args : gio_tests
--- a/glib/tests/meson.build
+++ b/glib/tests/meson.build
-@@ -11,21 +11,13 @@ glib_tests = {
+@@ -11,21 +11,14 @@ glib_tests = {
'cache' : {},
'charset' : {},
'checksum' : {},
@@ -46,14 +54,14 @@ index c77ccdd14..b0dab692a 100644
'dir' : {},
'environment' : {},
- 'error' : {},
-- 'fileutils' : {},
+ 'fileutils' : {},
- 'gdatetime' : {
- 'suite' : ['slow'],
- },
'guuid' : {},
'gvariant' : {
'suite' : ['slow'],
-@@ -57,7 +49,6 @@ glib_tests = {
+@@ -57,7 +50,6 @@ glib_tests = {
'mutex' : {},
'node' : {},
'once' : {},
@@ -61,6 +69,11 @@ index c77ccdd14..b0dab692a 100644
'option-argv0' : {},
'overflow' : {},
'overflow-fallback' : {
---
-2.31.0
-
+@@ -102,7 +94,6 @@ glib_tests = {
+ 'thread' : {},
+ 'thread-pool' : {},
+ 'timeout' : {},
+- 'timer' : {},
+ 'tree' : {},
+ 'utf8-performance' : {},
+ 'utf8-pointer' : {},
diff --git a/srcpkgs/glib/patches/glib-compile-schemas-remove-deprecated-warnings.patch b/srcpkgs/glib/patches/glib-compile-schemas-remove-deprecated-warnings.patch
new file mode 100644
index 000000000000..8e53c977df4a
--- /dev/null
+++ b/srcpkgs/glib/patches/glib-compile-schemas-remove-deprecated-warnings.patch
@@ -0,0 +1,22 @@
+--- a/gio/glib-compile-schemas.c
++++ b/gio/glib-compile-schemas.c
+@@ -1232,19 +1232,6 @@ parse_state_start_schema (ParseState *state,
+ return;
+ }
+
+- if (path && (g_str_has_prefix (path, "/apps/") ||
+- g_str_has_prefix (path, "/desktop/") ||
+- g_str_has_prefix (path, "/system/")))
+- {
+- gchar *message = NULL;
+- message = g_strdup_printf (_("Warning: Schema “%s” has path “%s”. "
+- "Paths starting with "
+- "“/apps/”, “/desktop/” or “/system/” are deprecated."),
+- id, path);
+- g_printerr ("%s\n", message);
+- g_free (message);
+- }
+-
+ state->schema_state = schema_state_new (path, gettext_domain,
+ extends, extends_name, list_of);
+
diff --git a/srcpkgs/glib/template b/srcpkgs/glib/template
index 666b0cc86ad3..ea4b41be9493 100644
--- a/srcpkgs/glib/template
+++ b/srcpkgs/glib/template
@@ -1,7 +1,7 @@
# Template file for 'glib'
pkgname=glib
-version=2.68.3
-revision=2
+version=2.70.0
+revision=1
build_style=meson
# static version is necessary for qemu-user-static;
# also disable LTO, otherwise there are multiple failures when linking qemu
@@ -15,9 +15,9 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://wiki.gnome.org/Projects/GLib"
#changelog="https://gitlab.gnome.org/GNOME/glib/raw/main/NEWS"
-changelog="https://gitlab.gnome.org/GNOME/glib/raw/glib-2-68/NEWS"
+changelog="https://gitlab.gnome.org/GNOME/glib/raw/glib-2-70/NEWS"
distfiles="${GNOME_SITE}/glib/${version%.*}/glib-${version}.tar.xz"
-checksum=e7e1a3c20c026109c45c9ec4a31d8dcebc22e86c69486993e565817d64be3138
+checksum=200d7df811c5ba634afbf109f14bb40ba7fde670e89389885da14e27c0840742
build_options="gtk_doc"
desc_option_gtk_doc="Build GTK API docs"
@@ -31,7 +31,7 @@ do_check() {
}
libglib-devel_package() {
- depends="${makedepends} glib>=${version}_${revision}"
+ depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
lib32files="/usr/lib/glib-2.0/include/glibconfig.h"
pkg_install() {
diff --git a/srcpkgs/glib/update b/srcpkgs/glib/update
index 89470583c5dc..98ff14720ccf 100644
--- a/srcpkgs/glib/update
+++ b/srcpkgs/glib/update
@@ -1 +1 @@
-site="https://gitlab.gnome.org/GNOME/glib/-/tags"
+pattern="glib-[0-9]+\.[0-9]*[02468]\.[0-9]+"
From 3c89b684aa00c8ec1238ff45c61229ded3e80ee5 Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Mon, 27 Sep 2021 22:08:58 +0200
Subject: [PATCH 2/2] gnome-keyring: remove CAP_IPC_LOCK
due to hardening in glib 2.70, gnome-keyring is broken with CAP_IPC_LOCK
https://gitlab.gnome.org/GNOME/gnome-keyring/-/issues/77
* run tests
---
srcpkgs/gnome-keyring/INSTALL | 12 ------------
srcpkgs/gnome-keyring/template | 12 ++++++------
2 files changed, 6 insertions(+), 18 deletions(-)
delete mode 100644 srcpkgs/gnome-keyring/INSTALL
diff --git a/srcpkgs/gnome-keyring/INSTALL b/srcpkgs/gnome-keyring/INSTALL
deleted file mode 100644
index 405c7c8890ef..000000000000
--- a/srcpkgs/gnome-keyring/INSTALL
+++ /dev/null
@@ -1,12 +0,0 @@
-case "${ACTION}" in
-post)
- # Set IPC capability, exit gracefully if we cannot set the capability
- # due to invalid permissions (fakeroot install).
- set +e
- setcap cap_ipc_lock=ep usr/bin/gnome-keyring-daemon
- if [ $? -ne 0 ]; then
- echo "ERROR: failed to set ipc_lock capability on gnome-keyring-daemon."
- exit 0
- fi
- ;;
-esac
diff --git a/srcpkgs/gnome-keyring/template b/srcpkgs/gnome-keyring/template
index b8defd1997dd..12f1e8d2df64 100644
--- a/srcpkgs/gnome-keyring/template
+++ b/srcpkgs/gnome-keyring/template
@@ -1,24 +1,24 @@
# Template file for 'gnome-keyring'
pkgname=gnome-keyring
version=40.0
-revision=1
+revision=2
build_style=gnu-configure
configure_args="--with-pam-dir=/usr/lib/security --disable-schemas-compile"
hostmakedepends="autoconf docbook-xsl glib-devel intltool libtasn1-tools libxslt
openssh pkg-config"
makedepends="gcr-devel libcap-devel libcap-ng-devel libtasn1-devel pam-devel"
-# For setcap(8).
-depends="dconf gcr libcap-progs"
+depends="dconf gcr"
+checkdepends="dbus xvfb-run"
short_desc="GNOME password and secret manager"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
-#changelog="https://raw.githubusercontent.com/GNOME/gnome-keyring/gnome-3-28/NEWS"
homepage="https://www.gnome.org"
+changelog="https://raw.githubusercontent.com/GNOME/gnome-keyring/gnome-40/NEWS"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=a3d24db08ee2fdf240fbbf0971a98c8ee295aa0e1a774537f4ea938038a3b931
+make_check=ci-skip
lib32disabled=yes
do_check() {
- # Requires X11 server
- :
+ xvfb-run make check
}
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PR PATCH] [Updated] glib: update to 2.70.0, patch out warning about deprecated scheme paths
2021-09-18 22:37 [PR PATCH] glib: update to 2.70.0, patch out warning about deprecated scheme paths paper42
` (7 preceding siblings ...)
2021-09-27 22:10 ` [PR PATCH] [Updated] " paper42
@ 2021-09-29 7:47 ` paper42
2021-09-29 20:34 ` [PR PATCH] [Merged]: " paper42
9 siblings, 0 replies; 11+ messages in thread
From: paper42 @ 2021-09-29 7:47 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1044 bytes --]
There is an updated pull request by paper42 against master on the void-packages repository
https://github.com/paper42/void-packages glib-2.70
https://github.com/void-linux/void-packages/pull/33017
glib: update to 2.70.0, patch out warning about deprecated scheme paths
#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
Adds a patch to remove the annoying warnings about deprecated paths on each glib-compile-schemas call (for example xbps updates). Other distributions also have this patch.
This PR needs a bit more testing especially on musl before it can be merged.
A patch file from https://github.com/void-linux/void-packages/pull/33017.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-glib-2.70-33017.patch --]
[-- Type: text/x-diff, Size: 9165 bytes --]
From 4b0074e261693e9b7d84733f80360ea7edf2792a Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Sat, 18 Sep 2021 22:37:13 +0200
Subject: [PATCH 1/2] glib: update to 2.70.0.
* patch out warning about deprecated schema paths
---
common/shlibs | 10 ++--
.../glib/patches/disable-broken-tests.patch | 49 ++++++++++++-------
...e-schemas-remove-deprecated-warnings.patch | 22 +++++++++
srcpkgs/glib/template | 10 ++--
srcpkgs/glib/update | 2 +-
5 files changed, 64 insertions(+), 29 deletions(-)
create mode 100644 srcpkgs/glib/patches/glib-compile-schemas-remove-deprecated-warnings.patch
diff --git a/common/shlibs b/common/shlibs
index 54d7918a4bd0..8872fbfe9392 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -79,11 +79,11 @@ libmagic.so.1 libmagic-5.12_1
libbluetooth.so.3 libbluetooth-4.58_1
libwmf-0.2.so.7 libwmf-0.2.8.4_1
libwmflite-0.2.so.7 libwmf-0.2.8.4_1
-libgthread-2.0.so.0 glib-2.68.0_1
-libglib-2.0.so.0 glib-2.68.0_1
-libgmodule-2.0.so.0 glib-2.68.0_1
-libgio-2.0.so.0 glib-2.68.0_1
-libgobject-2.0.so.0 glib-2.68.0_1
+libgthread-2.0.so.0 glib-2.70.0_1
+libglib-2.0.so.0 glib-2.70.0_1
+libgmodule-2.0.so.0 glib-2.70.0_1
+libgio-2.0.so.0 glib-2.70.0_1
+libgobject-2.0.so.0 glib-2.70.0_1
libatk-1.0.so.0 atk-1.26.0_1
libpangocairo-1.0.so.0 pango-1.24.0_1
libpangoft2-1.0.so.0 pango-1.24.0_1
diff --git a/srcpkgs/glib/patches/disable-broken-tests.patch b/srcpkgs/glib/patches/disable-broken-tests.patch
index 9fd27bb105a5..c6bb8d96fadf 100644
--- a/srcpkgs/glib/patches/disable-broken-tests.patch
+++ b/srcpkgs/glib/patches/disable-broken-tests.patch
@@ -1,5 +1,3 @@
-diff --git gio/tests/meson.build gio/tests/meson.build
-index a926ae01a..c2093cf4e 100644
--- a/gio/tests/meson.build
+++ b/gio/tests/meson.build
@@ -50,7 +50,6 @@ gio_tests = {
@@ -15,23 +13,33 @@ index a926ae01a..c2093cf4e 100644
'network-monitor-race' : {},
'permission' : {},
- 'pollable' : {'dependencies' : [libdl_dep]},
+ 'power-profile-monitor' : {},
'proxy-test' : {},
'readwrite' : {},
- 'simple-async-result' : {},
-@@ -567,7 +565,7 @@ if installed_tests_enabled
- endforeach
+@@ -151,7 +149,6 @@ endif
+ # Test programs buildable on UNIX only
+ if host_machine.system() != 'windows'
+ gio_tests += {
+- 'file' : {},
+ 'gdbus-peer' : {
+ 'dependencies' : [libgdbus_example_objectmanager_dep],
+ 'install_rpath' : installed_tests_execdir
+@@ -737,12 +734,6 @@ if not meson.is_cross_build() or meson.has_exe_wrapper()
+ test_resources_binary2,
+ ]
+ endif
+-
+- gio_tests += {
+- 'resources' : {
+- 'extra_sources' : resources_extra_sources,
+- },
+- }
endif
--if not meson.is_cross_build() or meson.has_exe_wrapper()
-+if false
-
- plugin_resources_c = custom_target('plugin-resources.c',
- input : 'test4.gresource.xml',
-diff --git glib/tests/meson.build glib/tests/meson.build
-index c77ccdd14..b0dab692a 100644
+ foreach test_name, extra_args : gio_tests
--- a/glib/tests/meson.build
+++ b/glib/tests/meson.build
-@@ -11,21 +11,13 @@ glib_tests = {
+@@ -11,21 +11,14 @@ glib_tests = {
'cache' : {},
'charset' : {},
'checksum' : {},
@@ -46,14 +54,14 @@ index c77ccdd14..b0dab692a 100644
'dir' : {},
'environment' : {},
- 'error' : {},
-- 'fileutils' : {},
+ 'fileutils' : {},
- 'gdatetime' : {
- 'suite' : ['slow'],
- },
'guuid' : {},
'gvariant' : {
'suite' : ['slow'],
-@@ -57,7 +49,6 @@ glib_tests = {
+@@ -57,7 +50,6 @@ glib_tests = {
'mutex' : {},
'node' : {},
'once' : {},
@@ -61,6 +69,11 @@ index c77ccdd14..b0dab692a 100644
'option-argv0' : {},
'overflow' : {},
'overflow-fallback' : {
---
-2.31.0
-
+@@ -102,7 +94,6 @@ glib_tests = {
+ 'thread' : {},
+ 'thread-pool' : {},
+ 'timeout' : {},
+- 'timer' : {},
+ 'tree' : {},
+ 'utf8-performance' : {},
+ 'utf8-pointer' : {},
diff --git a/srcpkgs/glib/patches/glib-compile-schemas-remove-deprecated-warnings.patch b/srcpkgs/glib/patches/glib-compile-schemas-remove-deprecated-warnings.patch
new file mode 100644
index 000000000000..8e53c977df4a
--- /dev/null
+++ b/srcpkgs/glib/patches/glib-compile-schemas-remove-deprecated-warnings.patch
@@ -0,0 +1,22 @@
+--- a/gio/glib-compile-schemas.c
++++ b/gio/glib-compile-schemas.c
+@@ -1232,19 +1232,6 @@ parse_state_start_schema (ParseState *state,
+ return;
+ }
+
+- if (path && (g_str_has_prefix (path, "/apps/") ||
+- g_str_has_prefix (path, "/desktop/") ||
+- g_str_has_prefix (path, "/system/")))
+- {
+- gchar *message = NULL;
+- message = g_strdup_printf (_("Warning: Schema “%s” has path “%s”. "
+- "Paths starting with "
+- "“/apps/”, “/desktop/” or “/system/” are deprecated."),
+- id, path);
+- g_printerr ("%s\n", message);
+- g_free (message);
+- }
+-
+ state->schema_state = schema_state_new (path, gettext_domain,
+ extends, extends_name, list_of);
+
diff --git a/srcpkgs/glib/template b/srcpkgs/glib/template
index 666b0cc86ad3..ea4b41be9493 100644
--- a/srcpkgs/glib/template
+++ b/srcpkgs/glib/template
@@ -1,7 +1,7 @@
# Template file for 'glib'
pkgname=glib
-version=2.68.3
-revision=2
+version=2.70.0
+revision=1
build_style=meson
# static version is necessary for qemu-user-static;
# also disable LTO, otherwise there are multiple failures when linking qemu
@@ -15,9 +15,9 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://wiki.gnome.org/Projects/GLib"
#changelog="https://gitlab.gnome.org/GNOME/glib/raw/main/NEWS"
-changelog="https://gitlab.gnome.org/GNOME/glib/raw/glib-2-68/NEWS"
+changelog="https://gitlab.gnome.org/GNOME/glib/raw/glib-2-70/NEWS"
distfiles="${GNOME_SITE}/glib/${version%.*}/glib-${version}.tar.xz"
-checksum=e7e1a3c20c026109c45c9ec4a31d8dcebc22e86c69486993e565817d64be3138
+checksum=200d7df811c5ba634afbf109f14bb40ba7fde670e89389885da14e27c0840742
build_options="gtk_doc"
desc_option_gtk_doc="Build GTK API docs"
@@ -31,7 +31,7 @@ do_check() {
}
libglib-devel_package() {
- depends="${makedepends} glib>=${version}_${revision}"
+ depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
lib32files="/usr/lib/glib-2.0/include/glibconfig.h"
pkg_install() {
diff --git a/srcpkgs/glib/update b/srcpkgs/glib/update
index 89470583c5dc..98ff14720ccf 100644
--- a/srcpkgs/glib/update
+++ b/srcpkgs/glib/update
@@ -1 +1 @@
-site="https://gitlab.gnome.org/GNOME/glib/-/tags"
+pattern="glib-[0-9]+\.[0-9]*[02468]\.[0-9]+"
From f19d315649d14eb43ac807b0d7690aaf5889006c Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Mon, 27 Sep 2021 22:08:58 +0200
Subject: [PATCH 2/2] gnome-keyring: remove CAP_IPC_LOCK
due to hardening in glib 2.70, gnome-keyring is broken with CAP_IPC_LOCK
https://gitlab.gnome.org/GNOME/gnome-keyring/-/issues/77
---
srcpkgs/gnome-keyring/INSTALL | 12 ------------
srcpkgs/gnome-keyring/template | 12 ++++++------
2 files changed, 6 insertions(+), 18 deletions(-)
delete mode 100644 srcpkgs/gnome-keyring/INSTALL
diff --git a/srcpkgs/gnome-keyring/INSTALL b/srcpkgs/gnome-keyring/INSTALL
deleted file mode 100644
index 405c7c8890ef..000000000000
--- a/srcpkgs/gnome-keyring/INSTALL
+++ /dev/null
@@ -1,12 +0,0 @@
-case "${ACTION}" in
-post)
- # Set IPC capability, exit gracefully if we cannot set the capability
- # due to invalid permissions (fakeroot install).
- set +e
- setcap cap_ipc_lock=ep usr/bin/gnome-keyring-daemon
- if [ $? -ne 0 ]; then
- echo "ERROR: failed to set ipc_lock capability on gnome-keyring-daemon."
- exit 0
- fi
- ;;
-esac
diff --git a/srcpkgs/gnome-keyring/template b/srcpkgs/gnome-keyring/template
index b8defd1997dd..12f1e8d2df64 100644
--- a/srcpkgs/gnome-keyring/template
+++ b/srcpkgs/gnome-keyring/template
@@ -1,24 +1,24 @@
# Template file for 'gnome-keyring'
pkgname=gnome-keyring
version=40.0
-revision=1
+revision=2
build_style=gnu-configure
configure_args="--with-pam-dir=/usr/lib/security --disable-schemas-compile"
hostmakedepends="autoconf docbook-xsl glib-devel intltool libtasn1-tools libxslt
openssh pkg-config"
makedepends="gcr-devel libcap-devel libcap-ng-devel libtasn1-devel pam-devel"
-# For setcap(8).
-depends="dconf gcr libcap-progs"
+depends="dconf gcr"
+checkdepends="dbus xvfb-run"
short_desc="GNOME password and secret manager"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
-#changelog="https://raw.githubusercontent.com/GNOME/gnome-keyring/gnome-3-28/NEWS"
homepage="https://www.gnome.org"
+changelog="https://raw.githubusercontent.com/GNOME/gnome-keyring/gnome-40/NEWS"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=a3d24db08ee2fdf240fbbf0971a98c8ee295aa0e1a774537f4ea938038a3b931
+make_check=ci-skip
lib32disabled=yes
do_check() {
- # Requires X11 server
- :
+ xvfb-run make check
}
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PR PATCH] [Merged]: glib: update to 2.70.0, patch out warning about deprecated scheme paths
2021-09-18 22:37 [PR PATCH] glib: update to 2.70.0, patch out warning about deprecated scheme paths paper42
` (8 preceding siblings ...)
2021-09-29 7:47 ` paper42
@ 2021-09-29 20:34 ` paper42
9 siblings, 0 replies; 11+ messages in thread
From: paper42 @ 2021-09-29 20:34 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 886 bytes --]
There's a merged pull request on the void-packages repository
glib: update to 2.70.0, patch out warning about deprecated scheme paths
https://github.com/void-linux/void-packages/pull/33017
Description:
#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
Adds a patch to remove the annoying warnings about deprecated paths on each glib-compile-schemas call (for example xbps updates). Other distributions also have this patch.
This PR needs a bit more testing especially on musl before it can be merged.
^ permalink raw reply [flat|nested] 11+ messages in thread