diff options
| author | Markus Volk <f_l_k@t-online.de> | 2022-12-23 04:11:04 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-12-26 09:55:57 -0800 |
| commit | 841daa24d5d0730bfa1fdb0dc7898b29061face4 (patch) | |
| tree | 66da8dba15a2e1e58ba0bb54e201d354ce64548a /meta-oe/recipes-extended/flatpak | |
| parent | f84fd3a028d6081874641ba7f159a6586fc78a74 (diff) | |
| download | meta-openembedded-841daa24d5d0730bfa1fdb0dc7898b29061face4.tar.gz | |
flatpak: add recipe
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/flatpak')
| -rw-r--r-- | meta-oe/recipes-extended/flatpak/flatpak/0001-flatpak-pc-add-pc_sysrootdir.patch | 26 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/flatpak/flatpak_1.15.1.bb | 64 |
2 files changed, 90 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/flatpak/flatpak/0001-flatpak-pc-add-pc_sysrootdir.patch b/meta-oe/recipes-extended/flatpak/flatpak/0001-flatpak-pc-add-pc_sysrootdir.patch new file mode 100644 index 0000000000..99e9cd23b1 --- /dev/null +++ b/meta-oe/recipes-extended/flatpak/flatpak/0001-flatpak-pc-add-pc_sysrootdir.patch | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | From 3a1ab02d821cd4b0af44c0dad87e290ebaabef83 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Markus Volk <f_l_k@t-online.de> | ||
| 3 | Date: Wed, 14 Dec 2022 06:50:40 +0100 | ||
| 4 | Subject: [PATCH] flatpak.pc: add pc_sysrootdir | ||
| 5 | |||
| 6 | Signed-off-by: Markus Volk <f_l_k@t-online.de> | ||
| 7 | --- | ||
| 8 | meson.build | 2 +- | ||
| 9 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 10 | |||
| 11 | diff --git a/meson.build b/meson.build | ||
| 12 | index 4a0b865e..5f69b1d9 100644 | ||
| 13 | --- a/meson.build | ||
| 14 | +++ b/meson.build | ||
| 15 | @@ -509,7 +509,7 @@ pkgconfig_variables += 'exec_prefix=${prefix}' | ||
| 16 | pkgconfig_variables += 'datadir=' + ('${prefix}' / get_option('datadir')) | ||
| 17 | |||
| 18 | pkgconfig_variables += 'datarootdir=' + ('${prefix}' / get_option('datadir')) | ||
| 19 | -pkgconfig_variables += 'interfaces_dir=${datadir}/dbus-1/interfaces/' | ||
| 20 | +pkgconfig_variables += 'interfaces_dir=${pc_sysrootdir}${datadir}/dbus-1/interfaces/' | ||
| 21 | pkgconfig_variables += 'httpbackend=' + get_option('http_backend') | ||
| 22 | |||
| 23 | pkgconfig.generate( | ||
| 24 | -- | ||
| 25 | 2.34.1 | ||
| 26 | |||
diff --git a/meta-oe/recipes-extended/flatpak/flatpak_1.15.1.bb b/meta-oe/recipes-extended/flatpak/flatpak_1.15.1.bb new file mode 100644 index 0000000000..a906e67614 --- /dev/null +++ b/meta-oe/recipes-extended/flatpak/flatpak_1.15.1.bb | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | DESCRIPTION = "Desktop containment framework." | ||
| 2 | HOMEPAGE = "http://flatpak.org" | ||
| 3 | LICENSE = "LGPL-2.1-only" | ||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" | ||
| 5 | |||
| 6 | SRC_URI = " \ | ||
| 7 | gitsm://github.com/flatpak/flatpak;protocol=https;nobranch=1 \ | ||
| 8 | file://0001-flatpak-pc-add-pc_sysrootdir.patch \ | ||
| 9 | " | ||
| 10 | |||
| 11 | SRCREV = "47ea3934c0e055605b8dff93edad2136141e48ec" | ||
| 12 | |||
| 13 | S = "${WORKDIR}/git" | ||
| 14 | |||
| 15 | inherit meson pkgconfig gettext systemd gobject-introspection python3native useradd mime features_check | ||
| 16 | |||
| 17 | REQUIRED_DISTRO_FEATURES = "polkit" | ||
| 18 | |||
| 19 | DEPENDS = " \ | ||
| 20 | appstream \ | ||
| 21 | bison-native \ | ||
| 22 | curl \ | ||
| 23 | dconf \ | ||
| 24 | fuse3 \ | ||
| 25 | gdk-pixbuf \ | ||
| 26 | glib-2.0 \ | ||
| 27 | gpgme \ | ||
| 28 | json-glib \ | ||
| 29 | libarchive \ | ||
| 30 | libcap \ | ||
| 31 | libxslt-native \ | ||
| 32 | ostree \ | ||
| 33 | polkit \ | ||
| 34 | python3-pyparsing-native \ | ||
| 35 | xmlto-native \ | ||
| 36 | " | ||
| 37 | |||
| 38 | RDEPENDS:${PN} = " \ | ||
| 39 | bubblewrap \ | ||
| 40 | ca-certificates \ | ||
| 41 | dconf \ | ||
| 42 | " | ||
| 43 | |||
| 44 | GIR_MESON_OPTION = "" | ||
| 45 | |||
| 46 | PACKAGECONFIG[tests] = "-Dtests=true,-Dtests=false,xauth" | ||
| 47 | PACKAGECONFIG[xauth] = "-Dxauth=enabled,-Dxauth=disabled,xauth" | ||
| 48 | PACKAGECONFIG[seccomp] = "-Dseccomp=enabled,-Dseccomp=disabled,libseccomp" | ||
| 49 | |||
| 50 | PACKAGECONFIG ?= " \ | ||
| 51 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xauth', '', d)} \ | ||
| 52 | ${@bb.utils.contains('DISTRO_FEATURES', 'security', 'seccomp', '', d)} \ | ||
| 53 | " | ||
| 54 | |||
| 55 | FILES:${PN} += "${libdir} ${datadir}" | ||
| 56 | |||
| 57 | USERADD_PACKAGES = "${PN}" | ||
| 58 | USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 polkitd" | ||
| 59 | |||
| 60 | do_install:append() { | ||
| 61 | chmod 0700 ${D}/${datadir}/polkit-1/rules.d | ||
| 62 | chown polkitd ${D}/${datadir}/polkit-1/rules.d | ||
| 63 | chgrp root ${D}/${datadir}/polkit-1/rules.d | ||
| 64 | } | ||
