summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/flatpak
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-extended/flatpak')
-rw-r--r--meta-oe/recipes-extended/flatpak/flatpak-xdg-utils_1.0.6.bb (renamed from meta-oe/recipes-extended/flatpak/flatpak-xdg-utils_1.0.5.bb)3
-rw-r--r--meta-oe/recipes-extended/flatpak/flatpak/0001-meson.build-require-for-native-wayland-scanner.patch28
-rw-r--r--meta-oe/recipes-extended/flatpak/flatpak/0001-meson.build-require-native-gtkdoc.patch33
-rw-r--r--meta-oe/recipes-extended/flatpak/flatpak_1.16.0.bb (renamed from meta-oe/recipes-extended/flatpak/flatpak_1.15.6.bb)32
4 files changed, 18 insertions, 78 deletions
diff --git a/meta-oe/recipes-extended/flatpak/flatpak-xdg-utils_1.0.5.bb b/meta-oe/recipes-extended/flatpak/flatpak-xdg-utils_1.0.6.bb
index 423c6faf7e..df7a4e2758 100644
--- a/meta-oe/recipes-extended/flatpak/flatpak-xdg-utils_1.0.5.bb
+++ b/meta-oe/recipes-extended/flatpak/flatpak-xdg-utils_1.0.6.bb
@@ -5,9 +5,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
5 5
6SRC_URI = "git://github.com/flatpak/flatpak-xdg-utils.git;protocol=https;branch=main" 6SRC_URI = "git://github.com/flatpak/flatpak-xdg-utils.git;protocol=https;branch=main"
7 7
8SRCREV = "5ba39872f81bf8d98d58c5f8acb86604645be468" 8SRCREV = "05abdd7421688be5835a6b12f2b068086c38d4aa"
9 9
10S = "${WORKDIR}/git"
11 10
12inherit meson pkgconfig 11inherit meson pkgconfig
13 12
diff --git a/meta-oe/recipes-extended/flatpak/flatpak/0001-meson.build-require-for-native-wayland-scanner.patch b/meta-oe/recipes-extended/flatpak/flatpak/0001-meson.build-require-for-native-wayland-scanner.patch
deleted file mode 100644
index b076a3fffd..0000000000
--- a/meta-oe/recipes-extended/flatpak/flatpak/0001-meson.build-require-for-native-wayland-scanner.patch
+++ /dev/null
@@ -1,28 +0,0 @@
1From ced2e933cf647874da4baff002e0987b9bfe5fac Mon Sep 17 00:00:00 2001
2From: Markus Volk <f_l_k@t-online.de>
3Date: Sat, 18 Nov 2023 15:07:49 +0100
4Subject: [PATCH] meson.build: require for native wayland-scanner
5
6Signed-off-by: Markus Volk <f_l_k@t-online.de>
7
8Upstream-Status: Submitted [https://github.com/flatpak/flatpak/pull/5596]
9---
10 meson.build | 4 ++--
11 1 file changed, 1 insertions(+), 1 deletions(-)
12
13diff --git a/meson.build b/meson.build
14index f4e5b3a3..5d2f9eba 100644
15--- a/meson.build
16+++ b/meson.build
17@@ -207,7 +207,7 @@ gtkdoc_dep = dependency('gtk-doc', required : get_option('gtkdoc'))
18 build_gtk_doc = gtkdoc_dep.found()
19
20 wayland_client = dependency('wayland-client', required : get_option('wayland_security_context'))
21-wayland_scanner = dependency('wayland-scanner', version : '>= 1.15', required : get_option('wayland_security_context'))
22+wayland_scanner = dependency('wayland-scanner', version : '>= 1.15', required : get_option('wayland_security_context'), native : true)
23 wayland_protocols = dependency('wayland-protocols', version : '>= 1.32', required : get_option('wayland_security_context'))
24 build_wayland_security_context = wayland_client.found() and wayland_scanner.found() and wayland_protocols.found()
25
26--
272.42.0
28
diff --git a/meta-oe/recipes-extended/flatpak/flatpak/0001-meson.build-require-native-gtkdoc.patch b/meta-oe/recipes-extended/flatpak/flatpak/0001-meson.build-require-native-gtkdoc.patch
deleted file mode 100644
index 77b60ec98c..0000000000
--- a/meta-oe/recipes-extended/flatpak/flatpak/0001-meson.build-require-native-gtkdoc.patch
+++ /dev/null
@@ -1,33 +0,0 @@
1From 49737b1e4a74c77a8cd7ae727974d68503da087f Mon Sep 17 00:00:00 2001
2From: Markus Volk <f_l_k@t-online.de>
3Date: Fri, 12 Jan 2024 13:52:08 +0100
4Subject: [PATCH] meson.build: require native gtkdoc
5
6this fixes:
7| Run-time dependency gtk-doc found: NO (tried pkgconfig)
8|
9| ../git/meson.build:206:13: ERROR: Dependency "gtk-doc" not found, tried pkgconfig
10
11Upstream-Status: Submitted [https://github.com/flatpak/flatpak/pull/5650/commits/e5de3e46b917f830d7f81e9db6ed2a9b7d7db942]
12
13Signed-off-by: Markus Volk <f_l_k@t-online.de>
14---
15 meson.build | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/meson.build b/meson.build
19index f7f9372d..dccc3eb4 100644
20--- a/meson.build
21+++ b/meson.build
22@@ -203,7 +203,7 @@ appstream_dep = dependency('appstream', version : '>=0.12.0')
23 gdk_pixbuf_dep = dependency('gdk-pixbuf-2.0')
24 libseccomp_dep = dependency('libseccomp', required : get_option('seccomp'))
25 gir_dep = dependency('gobject-introspection-1.0', version : '>=1.40.0', required : get_option('gir'))
26-gtkdoc_dep = dependency('gtk-doc', required : get_option('gtkdoc'))
27+gtkdoc_dep = dependency('gtk-doc', required : get_option('gtkdoc'), native : true)
28 build_gtk_doc = gtkdoc_dep.found()
29
30 wayland_client = dependency('wayland-client', required : get_option('wayland_security_context'))
31--
322.43.0
33
diff --git a/meta-oe/recipes-extended/flatpak/flatpak_1.15.6.bb b/meta-oe/recipes-extended/flatpak/flatpak_1.16.0.bb
index 97e57c13d5..f99c8ac36a 100644
--- a/meta-oe/recipes-extended/flatpak/flatpak_1.15.6.bb
+++ b/meta-oe/recipes-extended/flatpak/flatpak_1.16.0.bb
@@ -4,24 +4,21 @@ LICENSE = "LGPL-2.1-only"
4LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" 4LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
5 5
6SRC_URI = " \ 6SRC_URI = " \
7 gitsm://github.com/flatpak/flatpak;protocol=https;branch=main \ 7 git://github.com/flatpak/flatpak;protocol=https;branch=main \
8 file://0001-flatpak-pc-add-pc_sysrootdir.patch \ 8 file://0001-flatpak-pc-add-pc_sysrootdir.patch \
9 file://0001-meson.build-require-for-native-wayland-scanner.patch \
10 file://0001-meson.build-require-native-gtkdoc.patch \
11" 9"
12 10
13SRCREV = "27b11b93c2a80a91c9461bc6c7f5e9a201406041" 11SRCREV = "1440f4faa67ebf69c7559f31d2cab59e6ec6fe2b"
14 12
15S = "${WORKDIR}/git"
16 13
17inherit meson pkgconfig gettext systemd gtk-doc gobject-introspection python3native useradd mime features_check 14inherit meson pkgconfig gettext systemd gtk-doc gobject-introspection python3native mime features_check useradd
18 15
19REQUIRED_DISTRO_FEATURES = "polkit" 16REQUIRED_DISTRO_FEATURES = "polkit"
20 17
21DEPENDS = " \ 18DEPENDS = " \
22 appstream \ 19 appstream \
23 bison-native \ 20 bison-native \
24 dconf \ 21 bubblewrap-native \
25 fuse3 \ 22 fuse3 \
26 gdk-pixbuf \ 23 gdk-pixbuf \
27 glib-2.0 \ 24 glib-2.0 \
@@ -33,13 +30,16 @@ DEPENDS = " \
33 ostree \ 30 ostree \
34 polkit \ 31 polkit \
35 python3-pyparsing-native \ 32 python3-pyparsing-native \
33 xdg-dbus-proxy-native \
36 zstd \ 34 zstd \
37" 35"
38 36
39RDEPENDS:${PN} = " \ 37RDEPENDS:${PN} = " \
40 ca-certificates \ 38 ca-certificates \
41 dconf \
42 flatpak-xdg-utils \ 39 flatpak-xdg-utils \
40 fuse3-utils \
41 bubblewrap \
42 xdg-dbus-proxy \
43" 43"
44 44
45GIR_MESON_OPTION = "gir" 45GIR_MESON_OPTION = "gir"
@@ -50,12 +50,14 @@ GTKDOC_MESON_ENABLE_FLAG = 'enabled'
50GTKDOC_MESON_DISABLE_FLAG = 'disabled' 50GTKDOC_MESON_DISABLE_FLAG = 'disabled'
51 51
52PACKAGECONFIG[curl] = "-Dhttp_backend=curl,,curl" 52PACKAGECONFIG[curl] = "-Dhttp_backend=curl,,curl"
53PACKAGECONFIG[dconf] = "-Ddconf=enabled,-Ddconf=disabled,dconf"
53PACKAGECONFIG[docbook_docs] = "-Ddocbook_docs=enabled,-Ddocbook_docs=disabled,xmlto-native" 54PACKAGECONFIG[docbook_docs] = "-Ddocbook_docs=enabled,-Ddocbook_docs=disabled,xmlto-native"
54PACKAGECONFIG[man] = "-Dman=enabled,-Dman=disabled,libxslt-native" 55PACKAGECONFIG[man] = "-Dman=enabled,-Dman=disabled,libxslt-native"
55PACKAGECONFIG[soup] = "-Dhttp_backend=soup,,libsoup-2.4" 56PACKAGECONFIG[soup] = "-Dhttp_backend=soup,,libsoup-2.4"
56PACKAGECONFIG[tests] = "-Dtests=true,-Dtests=false,xauth socat-native" 57PACKAGECONFIG[tests] = "-Dtests=true,-Dtests=false,xauth socat-native"
57PACKAGECONFIG[xauth] = "-Dxauth=enabled,-Dxauth=disabled,xauth" 58PACKAGECONFIG[xauth] = "-Dxauth=enabled,-Dxauth=disabled,xauth"
58PACKAGECONFIG[seccomp] = "-Dseccomp=enabled,-Dseccomp=disabled,libseccomp" 59PACKAGECONFIG[seccomp] = "-Dseccomp=enabled,-Dseccomp=disabled,libseccomp"
60PACKAGECONFIG[malcontent] = "-Dmalcontent=enabled,-Dmalcontent=disabled,malcontent"
59PACKAGECONFIG[selinux] = "-Dselinux_module=enabled,-Dselinux_module=disabled,libselinux" 61PACKAGECONFIG[selinux] = "-Dselinux_module=enabled,-Dselinux_module=disabled,libselinux"
60PACKAGECONFIG[wayland-security-context] = "-Dwayland_security_context=enabled,-Dwayland_security_context=disabled,wayland wayland-native wayland-protocols" 62PACKAGECONFIG[wayland-security-context] = "-Dwayland_security_context=enabled,-Dwayland_security_context=disabled,wayland wayland-native wayland-protocols"
61 63
@@ -66,13 +68,13 @@ PACKAGECONFIG ?= " \
66 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland-security-context', '', d)} \ 68 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland-security-context', '', d)} \
67" 69"
68 70
69FILES:${PN} += "${libdir} ${datadir}" 71EXTRA_OEMESON = " \
72 -Dsystem_fusermount=fusermount3 \
73 -Dsystem_bubblewrap=bwrap \
74 -Dsystem_dbus_proxy=xdg-dbus-proxy \
75"
70 76
71USERADD_PACKAGES = "${PN}" 77USERADD_PACKAGES = "${PN}"
72USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 polkitd" 78USERADD_PARAM:${PN} = "--system --no-create-home --user-group --shell /sbin/nologin flatpak"
73 79
74do_install:append() { 80FILES:${PN} += "${libdir} ${datadir}"
75 chmod 0700 ${D}/${datadir}/polkit-1/rules.d
76 chown polkitd ${D}/${datadir}/polkit-1/rules.d
77 chgrp root ${D}/${datadir}/polkit-1/rules.d
78}