mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 12:01:41 +02:00
community/gitg: patch for girepository2
This commit is contained in:
parent
c14114ab84
commit
cbac779554
@ -9,8 +9,10 @@ arch="all"
|
||||
license="GPL-2.0-or-later"
|
||||
depends="gsettings-desktop-schemas"
|
||||
makedepends="
|
||||
git
|
||||
glib-dev
|
||||
gobject-introspection-dev
|
||||
gpgme-dev
|
||||
gsettings-desktop-schemas-dev
|
||||
gspell-dev
|
||||
gtk+3.0-dev
|
||||
@ -19,17 +21,18 @@ makedepends="
|
||||
libdazzle-dev
|
||||
libgee-dev
|
||||
libgit2-glib-dev
|
||||
libhandy1-dev
|
||||
libpeas-dev
|
||||
libsecret-dev
|
||||
libxml2-dev
|
||||
meson
|
||||
libhandy1-dev
|
||||
vala
|
||||
gpgme-dev
|
||||
"
|
||||
checkdepends="bash xvfb-run"
|
||||
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-pyc"
|
||||
source="https://download.gnome.org/sources/gitg/${pkgver%.*}/gitg-$pkgver.tar.xz"
|
||||
source="https://download.gnome.org/sources/gitg/${pkgver%.*}/gitg-$pkgver.tar.xz
|
||||
girepository2.patch
|
||||
"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
@ -66,4 +69,5 @@ package() {
|
||||
|
||||
sha512sums="
|
||||
34eb346790d8ea3e766b84419e75d26888222b602c8f67d934ab37e335762d9c30873a48b0582646dc371533440442bb1941ef2e79a0fe86c7c580111f73db01 gitg-44.tar.xz
|
||||
6a90b94419c678b23f87f7faa605654af9091f88b6c118898ed664f82ff88345db54dcebeebf6d27a9092797e506a3222b2f9d6fddce4c40bc1dac2c7f95c5f9 girepository2.patch
|
||||
"
|
||||
|
||||
46
community/gitg/girepository2.patch
Normal file
46
community/gitg/girepository2.patch
Normal file
@ -0,0 +1,46 @@
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user