From 6ec1eade17906df2cfe347e0fc6ef6d3ce7e9ad5 Mon Sep 17 00:00:00 2001 From: askiiart Date: Sun, 7 Sep 2025 13:02:55 -0500 Subject: [PATCH] hopefully this fixes the rpath thing --- librewolf-allow-dark.spec | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/librewolf-allow-dark.spec b/librewolf-allow-dark.spec index 087a3ea..7ae0af1 100644 --- a/librewolf-allow-dark.spec +++ b/librewolf-allow-dark.spec @@ -1,16 +1,10 @@ -%global __brp_check_rpaths %{nil} -# ^ disable rpath checking -# see https://stackoverflow.com/a/73807744 -# (the problem: https://drone.askiiart.net/pkg-repo/librewolf-allow-dark/4502/1/2) -# (see also: https://fedoraproject.org/wiki/Changes/Broken_RPATH_will_fail_rpmbuild) - Name: librewolf-allow-dark Version: __VERSION__ Release: 1 Summary: Librewolf, with the privacy.override_rfp_for_color_scheme option added License: MPL-2.0 URL: https://git.askiiart.net/pkg-repo/librewolf-allow-dark -BuildRequires: tar zstd +BuildRequires: tar zstd patchelf %description Librewolf with the privacy.override_rfp_for_color_scheme about:config option added, which if enabled lets you change the color scheme even if rfp is turned on @@ -40,6 +34,9 @@ for res in "${resolutions[@]}"; do mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${res}x${res}/apps cp ./browser/chrome/icons/default/default${res}.png %{buildroot}%{_datadir}/icons/hicolor/${res}x${res}/apps/librewolf.png done +# Remove the broken RPATH... hopefully it's only a problem for this file +patchelf --remove-rpath /usr/share/librewolf/libonnxruntime.so +# move the stuff to /usr/share/librewolf mv ./* %{buildroot}%{_datadir}/librewolf/