From d0ad436847a6b78ccdb8711482940560bd319eb4 Mon Sep 17 00:00:00 2001 From: alan Date: Sun, 28 Jan 2024 16:20:01 +0530 Subject: [PATCH] Move libwlroots binary to private directory The private directory is /usr/lib/hyprland. This fixes the error: E: hyprland: shared-library-is-multi-arch-foreign usr/lib/libwlroots.so.13032 N: N: The package is marked as Multi-Arch: foreign, but it includes a shared N: library in a public library directory. But we now we also need to let the loader find it. We will use the RPATH configured on the binary to achieve this. That is, the RPATH has been modified to point to /usr/lib/hyprland. --- debian/patches/series | 2 +- debian/rules | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/patches/series b/debian/patches/series index 0b33f80..1f4ac61 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,2 @@ -# You must remove unused comment lines for the released package. 000-destdir.patch +001-move-libwlroots-to-hyprland-location.patch diff --git a/debian/rules b/debian/rules index 5eebf09..0856fd5 100755 --- a/debian/rules +++ b/debian/rules @@ -9,7 +9,7 @@ dh $@ override_dh_auto_install: - chrpath -d build/Hyprland + chrpath -r /usr/lib/hyprland build/Hyprland dh_auto_install -- PREFIX=/usr override_dh_clean: dh_clean