guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/03: gnu: glib: Fix argument handling in keyfile backend.


From: guix-commits
Subject: 01/03: gnu: glib: Fix argument handling in keyfile backend.
Date: Fri, 12 Jul 2019 10:54:09 -0400 (EDT)

mbakke pushed a commit to branch core-updates
in repository guix.

commit ee46474d54a661e87cd501c3fde6e572b3423a60
Author: Marius Bakke <address@hidden>
Date:   Fri Jul 12 16:50:14 2019 +0200

    gnu: glib: Fix argument handling in keyfile backend.
    
    * gnu/packages/patches/glib-keyfile-arguments.patch: New file.
    * gnu/local.mk (dist_patch_DATA): Adjust accordingly.
    * gnu/packages/glib.scm (glib)[source](patches): Add it.
---
 gnu/local.mk                                      |  1 +
 gnu/packages/glib.scm                             |  3 ++-
 gnu/packages/patches/glib-keyfile-arguments.patch | 20 ++++++++++++++++++++
 3 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/gnu/local.mk b/gnu/local.mk
index 75cb7b6..0a34b91 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -851,6 +851,7 @@ dist_patch_DATA =                                           
\
   %D%/packages/patches/ghostscript-no-header-uuid.patch                \
   %D%/packages/patches/ghostscript-no-header-creationdate.patch \
   %D%/packages/patches/giflib-make-reallocarray-private.patch  \
+  %D%/packages/patches/glib-keyfile-arguments.patch            \
   %D%/packages/patches/glib-tests-timer.patch                  \
   %D%/packages/patches/glibc-CVE-2015-5180.patch               \
   %D%/packages/patches/glibc-CVE-2015-7547.patch               \
diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm
index 3d17bc7..8f1b91e 100644
--- a/gnu/packages/glib.scm
+++ b/gnu/packages/glib.scm
@@ -168,7 +168,8 @@ shared NFS home directories.")
             (sha256
              (base32
               "0bk2l9mhvc44c0gfg442wrifwj2fci1w71dsp3nb50pffvsivpry"))
-            (patches (search-patches "glib-tests-timer.patch"))
+            (patches (search-patches "glib-tests-timer.patch"
+                                     "glib-keyfile-arguments.patch"))
             (modules '((guix build utils)))
             (snippet
              '(begin
diff --git a/gnu/packages/patches/glib-keyfile-arguments.patch 
b/gnu/packages/patches/glib-keyfile-arguments.patch
new file mode 100644
index 0000000..8d428f4
--- /dev/null
+++ b/gnu/packages/patches/glib-keyfile-arguments.patch
@@ -0,0 +1,20 @@
+Fix a problem with the keyfile backend whereby instantiating it with
+the default NULL value would cause an assertion error:
+
+https://gitlab.gnome.org/GNOME/glib/issues/1825
+
+This issue showed up when running the test suites of uhttpmock and spice.
+
+diff --git a/gio/gkeyfilesettingsbackend.c b/gio/gkeyfilesettingsbackend.c
+--- a/gio/gkeyfilesettingsbackend.c
++++ b/gio/gkeyfilesettingsbackend.c
+@@ -740,7 +740,8 @@ g_keyfile_settings_backend_set_property (GObject      
*object,
+     case PROP_FILENAME:
+       /* Construct only. */
+       g_assert (kfsb->file == NULL);
+-      kfsb->file = g_file_new_for_path (g_value_get_string (value));
++      if (g_value_get_string (value))
++        kfsb->file = g_file_new_for_path (g_value_get_string (value));
+       break;
+ 
+     case PROP_ROOT_PATH:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]