[packages/libpeas2] - switched to gjs 1.86/mozjs 140
qboosh
qboosh at pld-linux.org
Wed Sep 17 18:37:58 CEST 2025
commit 3f4a3f05fff402d855bdb2e40d8ad394a364ebb3
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Sep 17 18:40:56 2025 +0200
- switched to gjs 1.86/mozjs 140
libpeas-mozjs.patch | 10 ++++++++++
libpeas2.spec | 9 +++++----
2 files changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/libpeas2.spec b/libpeas2.spec
index 8324c83..bb5bd25 100644
--- a/libpeas2.spec
+++ b/libpeas2.spec
@@ -21,10 +21,11 @@ License: LGPL v2.1+
Group: Libraries
Source0: https://download.gnome.org/sources/libpeas/2.2/libpeas-%{version}.tar.xz
# Source0-md5: 6354185cf4e9e3f93b39ffd3f37c8919
+Patch0: libpeas-mozjs.patch
URL: https://wiki.gnome.org/Libpeas
BuildRequires: gettext-tools >= 0.19.7
%{?with_apidocs:BuildRequires: gi-docgen >= 2021.7}
-%{?with_gjs:BuildRequires: gjs-devel >= 1.81.2}
+%{?with_gjs:BuildRequires: gjs-devel >= 1.86.0}
BuildRequires: glib2-devel >= 1:2.74
BuildRequires: gobject-introspection-devel >= 1.40.0
%{?with_apidocs:BuildRequires: gtk-doc >= 1.11}
@@ -40,8 +41,7 @@ BuildRequires: luajit-devel >= 2.0
%endif
%endif
BuildRequires: meson >= 1.0
-# TODO: drop when switching to gjs >= (1.86?) with mozjs_dep_name variable in gjs-1.0.pc
-%{?with_gjs:BuildRequires: mozjs128-devel >= 128}
+# mozjs dependency handled by gjs-1.0.pc and gjs-devel dependencies
BuildRequires: ninja >= 1.5
BuildRequires: pkgconfig
%if %{with python}
@@ -79,7 +79,7 @@ Summary: JavaScript (GJS) loader for libpeas 2 library
Summary(pl.UTF-8): Moduł ładujący dla JavaScriptu (GJS) do biblioteki libpeas 2
Group: Libraries
Requires: %{name} = %{version}-%{release}
-Requires: gjs >= 1.81.2
+Requires: gjs >= 1.86.0
%description loader-gjs
JavaScript (GJS) loader for libpeas 2 library.
@@ -166,6 +166,7 @@ Dokumentacja API biblioteki libpeas.
%prep
%setup -q -n libpeas-%{version}
+%patch -P0 -p1
%if %{with lua}
# meson buildsystem expects .pc file for lua-lgi detection
diff --git a/libpeas-mozjs.patch b/libpeas-mozjs.patch
new file mode 100644
index 0000000..4b0d912
--- /dev/null
+++ b/libpeas-mozjs.patch
@@ -0,0 +1,10 @@
+--- libpeas-2.2.0/loaders/gjs/peas-plugin-loader-gjs.cpp.orig 2025-09-13 03:03:28.000000000 +0200
++++ libpeas-2.2.0/loaders/gjs/peas-plugin-loader-gjs.cpp 2025-09-17 17:56:47.852004239 +0200
+@@ -24,6 +24,7 @@
+ #include <memory>
+ #include <vector>
+
++#include <prtypes.h> // for XP_ platform defines
+ #include <js/Array.h>
+ #include <js/CompilationAndEvaluation.h>
+ #include <js/CompileOptions.h>
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libpeas2.git/commitdiff/3f4a3f05fff402d855bdb2e40d8ad394a364ebb3
More information about the pld-cvs-commit
mailing list