Skip to contentSkip to conversation

nautilus: Fix build with libportal >= 0.5

PATCH Alexander Kanavin 1 participant 1 message Jan 11, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

You really should make this optional Khem, there's no reason to build with it by default.

Alex

Quoted 76 lines · Khem Raj
Cc Alexander Kanavin <[email protected]>
Cc Andreas Müller <[email protected]>
---
 .../nautilus/nautilus/liportal-0.5-fix.patch  | 28 +++++++++++++++++++
 .../recipes-gnome/nautilus/nautilus_41.1.bb   |  1 +
 2 files changed, 29 insertions(+)
 create mode 100644

meta-gnome/recipes-gnome/nautilus/nautilus/liportal-0.5-fix.patch

diff --git a/meta-gnome/recipes-gnome/nautilus/nautilus/liportal-0.5-fix.patch b/meta-gnome/recipes-gnome/nautilus/nautilus/liportal-0.5-fix.patch new file mode 100644
index 0000000000..708595a7f1

meta-gnome/recipes-gnome/nautilus/nautilus/liportal-0.5-fix.patch new file +28 -0
@@ -0,0 +1,28 @@
+Fix an issue building Nautilus with libportal-0.5+
+where expected header is moved to different directory
+in staging sysroot
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <[email protected]>
+--- a/meson.build
++++ b/meson.build
+@@ -123,7 +123,7 @@ gtk = dependency('gtk+-3.0', version: '>
+ libhandy = dependency('libhandy-1', version: '>= 1.1.90')
+ libportal = []
+ if get_option('libportal')
+-  libportal = dependency('libportal', version: '>= 0.3')
++  libportal = dependency('libportal-gtk3', version: '>= 0.3')
+ endif
+ selinux = []
+ if get_option('selinux')
+--- a/src/nautilus-files-view.c
++++ b/src/nautilus-files-view.c
+@@ -92,7 +92,7 @@
+
+ #ifdef HAVE_LIBPORTAL
+ #include <libportal/portal.h>
+-#include <libportal/portal-gtk3.h>
++#include <libportal-gtk3/portal-gtk3.h>
+ #endif
+
+ /* Minimum starting update inverval */
meta-gnome/recipes-gnome/nautilus/nautilus_41.1.bb +0 -0
index c64d49b0ba..330c361806 100644
@@ -22,6 +22,7 @@ inherit gnomebase gsettings gobject-introspection

gtk-doc gettext features_check
def gnome_verdir(v):
return oe.utils.trim_version(v, 1)

+SRC_URI += "file://liportal-0.5-fix.patch"
SRC_URI[archive.sha256sum] =
"3e633098853711a3e96b12fe9228b3201816e554b2823f161e7d901a8880582f"

REQUIRED_DISTRO_FEATURES = "x11"
--
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#94755):
https://lists.openembedded.org/g/openembedded-devel/message/94755
Mute This Topic: https://lists.openembedded.org/mt/88357284/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-