aports/community/gitg/girepository2.patch
2026-03-15 16:24:07 +01:00

47 lines
1.7 KiB
Diff

From db6f9d896d4b5b9ded8b23c724d3861d5adb63f0 Mon Sep 17 00:00:00 2001
From: Dominik Mierzejewski <dominik@greysector.net>
Date: Wed, 10 Sep 2025 12:55:14 +0200
Subject: [PATCH] fix build with libpeas1-1.38.0 (ported to girepository-2.0)
See: https://src.fedoraproject.org/rpms/libpeas1/c/247a876ce08dc8cc7f56111ffd7fc8a9acefd4a8
---
gitg/gitg-plugins-engine.vala | 2 +-
vapi/gobject-introspection-1.0.vapi | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/gitg/gitg-plugins-engine.vala b/gitg/gitg-plugins-engine.vala
index 93a14eff..5dacb839 100644
--- a/gitg/gitg-plugins-engine.vala
+++ b/gitg/gitg-plugins-engine.vala
@@ -28,7 +28,7 @@ public class PluginsEngine : Peas.Engine
{
enable_loader("python");
- var repo = Introspection.Repository.get_default();
+ var repo = Introspection.Repository.dup_default();
try
{
diff --git a/vapi/gobject-introspection-1.0.vapi b/vapi/gobject-introspection-1.0.vapi
index 28f7c496..e0394e65 100644
--- a/vapi/gobject-introspection-1.0.vapi
+++ b/vapi/gobject-introspection-1.0.vapi
@@ -1,4 +1,4 @@
-[CCode (cprefix = "GI", lower_case_cprefix = "g_i", cheader_filename = "girepository.h")]
+[CCode (cprefix = "GI", lower_case_cprefix = "gi_", cheader_filename = "girepository/girepository.h")]
namespace Introspection
{
[CCode (cprefix = "G_IREPOSITORY_ERROR_")]
@@ -16,7 +16,7 @@ namespace Introspection
[CCode (ref_function = "", unref_function = "")]
public class Repository {
- public static unowned Repository get_default();
+ public static unowned Repository dup_default();
public static void prepend_search_path(string directory);
public static unowned GLib.SList<string> get_search_path();
--
GitLab