From 7ef8668f0ab7c68a8c40333c6013f8523a4b3fa6 Mon Sep 17 00:00:00 2001 From: Felix Krull Date: Fri, 24 Jul 2020 14:57:04 +0200 Subject: [PATCH] Add command to grab latest OSTree-1.0.gir from Fedora Rawhide --- rust-bindings/rust/Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/rust-bindings/rust/Makefile b/rust-bindings/rust/Makefile index 48d6d69f..d418862f 100644 --- a/rust-bindings/rust/Makefile +++ b/rust-bindings/rust/Makefile @@ -34,7 +34,8 @@ update-gir-files: \ gir-files \ gir-files/GLib-2.0.gir \ gir-files/Gio-2.0.gir \ - gir-files/GObject-2.0.gir + gir-files/GObject-2.0.gir \ + gir-files/OSTree-1.0.gir remove-gir-files: rm -f gir-files/G*-2.0.gir @@ -46,5 +47,10 @@ gir-files: curl -o $@ -L https://github.com/gtk-rs/gir-files/raw/master/${@F} gir-files/OSTree-1.0.gir: - echo Best to build libostree with all features and use that - exit 1 + podman run \ + --rm \ + -v $(PWD)/gir-files:/gir-files \ + fedora:rawhide \ + bash -eu -c "\ + dnf install -y ostree-devel && \ + cp /usr/share/gir-1.0/OSTree-1.0.gir /gir-files/"