[gnome-build-meta/valentindavid/ostree-workaround] ostree: Work around issue with newer glib




commit 54f7e288e7dbb80d02046a19acca9fe0f47a190c
Author: Valentin David <me valentindavid com>
Date:   Tue Nov 2 19:46:03 2021 +0100

    ostree: Work around issue with newer glib
    
    A new assert in glib breaks a broken call to `g_file_get_child`
    
    Fixes #447

 elements/core-deps/libostree.bst         |  2 ++
 files/ostree/glib-absolute-subpath.patch | 12 ++++++++++++
 2 files changed, 14 insertions(+)
---
diff --git a/elements/core-deps/libostree.bst b/elements/core-deps/libostree.bst
index 192b46321..a1fd476c8 100644
--- a/elements/core-deps/libostree.bst
+++ b/elements/core-deps/libostree.bst
@@ -5,6 +5,8 @@ sources:
   url: github_com:ostreedev/ostree/releases/download/v2021.5/libostree-2021.5.tar.xz
 - kind: patch
   path: files/ostree/no-boot-symlink.patch
+- kind: patch
+  path: files/ostree/glib-absolute-subpath.patch
 
 build-depends:
 - sdk/gobject-introspection.bst
diff --git a/files/ostree/glib-absolute-subpath.patch b/files/ostree/glib-absolute-subpath.patch
new file mode 100644
index 000000000..b2ad18ae2
--- /dev/null
+++ b/files/ostree/glib-absolute-subpath.patch
@@ -0,0 +1,12 @@
+diff -ur ostree.old/src/libostree/ostree-repo-checkout.c ostree/src/libostree/ostree-repo-checkout.c
+--- ostree.old/src/libostree/ostree-repo-checkout.c    2021-08-30 19:35:53.000000000 +0200
++++ ostree/src/libostree/ostree-repo-checkout.c        2021-11-03 21:42:58.034678442 +0100
+@@ -1389,7 +1389,7 @@
+   g_autoptr(GFile) target_dir = NULL;
+ 
+   if (strcmp (options->subpath, "/") != 0)
+-    target_dir = g_file_get_child (commit_root, options->subpath);
++    target_dir = g_file_resolve_relative_path (commit_root, options->subpath);
+   else
+     target_dir = g_object_ref (commit_root);
+   g_autoptr(GFileInfo) target_info =


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