Skip to content

Commit 0a84b75

Browse files
committed
totem: rebuild for libpeas 1.38
1 parent 8fa7476 commit 0a84b75

2 files changed

Lines changed: 36 additions & 1 deletion

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
Source: https://src.fedoraproject.org/rpms/totem/raw/rawhide/f/girepository-2.0.patch
2+
3+
Note this patch leaks the default GIRepository and would not be suitable for
4+
upstream. But it's a one-time leak of global data, so who cares.
5+
6+
Totem upstream uses libpeas2 instead.
7+
8+
Patch by: Leigh Scott
9+
This note by: Michael Catanzaro
10+
11+
diff -uNrp a/src/plugins/totem-plugins-engine.c b/src/plugins/totem-plugins-engine.c
12+
--- a/src/plugins/totem-plugins-engine.c 2025-05-21 14:08:29.000000000 +0100
13+
+++ b/src/plugins/totem-plugins-engine.c 2025-09-09 15:26:14.748670355 +0100
14+
@@ -35,7 +35,7 @@
15+
16+
#include <glib/gi18n.h>
17+
#include <glib.h>
18+
-#include <girepository.h>
19+
+#include <girepository/girepository.h>
20+
#include <libpeas/peas-activatable.h>
21+
#include <libpeas/peas-extension-set.h>
22+
23+
@@ -101,9 +101,9 @@ totem_plugins_engine_get_default (TotemO
24+
25+
g_return_val_if_fail (totem != NULL, NULL);
26+
27+
- g_irepository_require (g_irepository_get_default (), "Peas", "1.0", 0, NULL);
28+
- g_irepository_require (g_irepository_get_default (), "PeasGtk", "1.0", 0, NULL);
29+
- g_irepository_require (g_irepository_get_default (), "Totem", TOTEM_API_VERSION, 0, NULL);
30+
+ gi_repository_require (gi_repository_dup_default (), "Peas", "1.0", 0, NULL);
31+
+ gi_repository_require (gi_repository_dup_default (), "PeasGtk", "1.0", 0, NULL);
32+
+ gi_repository_require (gi_repository_dup_default (), "Totem", TOTEM_API_VERSION, 0, NULL);
33+
34+
paths = totem_get_plugin_paths ();
35+

srcpkgs/totem/template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Template file for 'totem'
22
pkgname=totem
33
version=43.2
4-
revision=2
4+
revision=3
55
build_style=meson
66
build_helper="gir"
77
configure_args="-Denable-python=yes"

0 commit comments

Comments
 (0)