public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/obs-studio-plugin-webkitgtk] epel9: Add patch to fix load path for webkitgtk helper (RH#2225973)
@ 2026-10-14 21:30 Neal Gompa
0 siblings, 0 replies; only message in thread
From: Neal Gompa @ 2026-10-14 21:30 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/obs-studio-plugin-webkitgtk
Branch : epel9
Commit : 5ca22eaf4cb198aa4bf3c89f4fb7ff7d9c70bcba
Author : Neal Gompa <ngompa@fedoraproject.org>
Date : 2023-09-08T18:11:09-04:00
Stats : +67/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/obs-studio-plugin-webkitgtk/c/5ca22eaf4cb198aa4bf3c89f4fb7ff7d9c70bcba?branch=epel9
Log:
Add patch to fix load path for webkitgtk helper (RH#2225973)
---
diff --git a/0001-Support-libexec-and-lib64-paths-for-the-webkitgtk-he.patch b/0001-Support-libexec-and-lib64-paths-for-the-webkitgtk-he.patch
new file mode 100644
index 0000000..3d02066
--- /dev/null
+++ b/0001-Support-libexec-and-lib64-paths-for-the-webkitgtk-he.patch
@@ -0,0 +1,58 @@
+From e2344218f8f33092ab01315905d786c3f8c253c7 Mon Sep 17 00:00:00 2001
+From: Neal Gompa <neal@gompa.dev>
+Date: Fri, 8 Sep 2023 17:53:29 -0400
+Subject: [PATCH] Support libexec and lib64 paths for the webkitgtk helper
+
+The helper should be installed in the libexec directory path,
+so we should default to that.
+
+Additionally, support more permutations of libexec paths so that
+this is more likely to work out of the gate.
+---
+ meson.build | 2 +-
+ obs-webkitgtk.c | 16 +++++++++++++++-
+ 2 files changed, 16 insertions(+), 2 deletions(-)
+
+diff --git a/meson.build b/meson.build
+index cf3a8d2..07c2a68 100644
+--- a/meson.build
++++ b/meson.build
+@@ -38,5 +38,5 @@ executable('obs-webkitgtk-helper',
+ dependency('webkit2gtk-4.0'),
+ ],
+ install : true,
+- install_dir : join_paths(get_option('libdir'), 'obs-plugins'),
++ install_dir : join_paths(get_option('libexecdir'), 'obs-plugins'),
+ )
+diff --git a/obs-webkitgtk.c b/obs-webkitgtk.c
+index 1578be2..32c3234 100644
+--- a/obs-webkitgtk.c
++++ b/obs-webkitgtk.c
+@@ -90,9 +90,23 @@ static void start(data_t *data)
+ gchar *path = g_file_read_link("/proc/self/exe", NULL);
+
+ gchar *app =
+- g_strdup_printf("%s/../lib/obs-plugins/obs-webkitgtk-helper",
++ g_strdup_printf("%s/../libexec/obs-plugins/obs-webkitgtk-helper",
+ g_path_get_dirname(path));
+
++ if (g_file_test(app, G_FILE_TEST_IS_EXECUTABLE) == FALSE) {
++ g_free(app);
++
++ app = g_strdup_printf("%s/../lib64/obs-plugins/obs-webkitgtk-helper",
++ g_path_get_dirname(path));
++ }
++
++ if (g_file_test(app, G_FILE_TEST_IS_EXECUTABLE) == FALSE) {
++ g_free(app);
++
++ app = g_strdup_printf("%s/../lib/obs-plugins/obs-webkitgtk-helper",
++ g_path_get_dirname(path));
++ }
++
+ if (g_file_test(app, G_FILE_TEST_IS_EXECUTABLE) == FALSE) {
+ g_free(app);
+
+--
+2.41.0
+
diff --git a/obs-studio-plugin-webkitgtk.spec b/obs-studio-plugin-webkitgtk.spec
index 3ca5740..1f49bb2 100644
--- a/obs-studio-plugin-webkitgtk.spec
+++ b/obs-studio-plugin-webkitgtk.spec
@@ -5,13 +5,17 @@
Name: obs-studio-plugin-webkitgtk
Version: 0~git%{commitdate}.%{shortcommit}
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: OBS Browser source plugin based on WebKitGTK
License: GPL-2.0-or-later
URL: https://github.com/fzwoch/obs-webkitgtk
Source0: %{url}/archive/%{commit}/%{srcname}-%{shortcommit}.tar.gz
+# Fix load paths for webkitgtk helper
+## From: https://github.com/fzwoch/obs-webkitgtk/pull/1
+Patch0001: 0001-Support-libexec-and-lib64-paths-for-the-webkitgtk-he.patch
+
BuildRequires: meson
BuildRequires: gcc
@@ -49,10 +53,14 @@ sed -e 's/webkit2gtk-4.0/webkit2gtk-4.1/g' -i meson.build
%files
%license LICENSE
+%{_libexecdir}/obs-plugins/%{srcname}*
%{_libdir}/obs-plugins/%{srcname}*
%changelog
+* Fri Sep 08 2023 Neal Gompa <ngompa@fedoraproject.org> - 0~git20201202.0e32b92-4
+- Add patch to fix load path for webkitgtk helper (RH#2225973)
+
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0~git20201202.0e32b92-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-14 21:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-14 21:30 [rpms/obs-studio-plugin-webkitgtk] epel9: Add patch to fix load path for webkitgtk helper (RH#2225973) Neal Gompa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox