diff options
| author | Hongxu Jia <hongxu.jia@windriver.com> | 2019-06-25 21:14:08 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2019-06-25 14:21:48 -0700 |
| commit | 50727a227b866f26dc381dff5aff6d21a904e522 (patch) | |
| tree | 7da25f03a606d967cc8c5d398cc63d2d1ba30725 /meta-gnome | |
| parent | 4e50aebeae37980c64262709c6e4d451c29161f6 (diff) | |
| download | meta-openembedded-50727a227b866f26dc381dff5aff6d21a904e522.tar.gz | |
gvfs: add meson option admin and udisks2 to PACKAGECONFIG
Both of admin and udisks2 depend on polkit, conditional support them
See upstream commit:
https://gitlab.gnome.org/GNOME/gvfs/commit/cdc33bf54f501a8b4574f86945628ab6c2036d64
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-gnome')
| -rw-r--r-- | meta-gnome/recipes-gnome/gvfs/gvfs_1.40.0.bb | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/meta-gnome/recipes-gnome/gvfs/gvfs_1.40.0.bb b/meta-gnome/recipes-gnome/gvfs/gvfs_1.40.0.bb index 7caee27711..3a4714a124 100644 --- a/meta-gnome/recipes-gnome/gvfs/gvfs_1.40.0.bb +++ b/meta-gnome/recipes-gnome/gvfs/gvfs_1.40.0.bb | |||
| @@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=05df38dd77c35ec8431f212410a3329e" | |||
| 5 | GNOMEBASEBUILDCLASS = "meson" | 5 | GNOMEBASEBUILDCLASS = "meson" |
| 6 | inherit gnome bash-completion gettext upstream-version-is-even | 6 | inherit gnome bash-completion gettext upstream-version-is-even |
| 7 | 7 | ||
| 8 | DEPENDS += "libsecret glib-2.0 gconf libgudev udisks2 polkit shadow-native" | 8 | DEPENDS += "libsecret glib-2.0 gconf libgudev shadow-native" |
| 9 | 9 | ||
| 10 | SRC_URI = "https://download.gnome.org/sources/${BPN}/${@gnome_verdir("${PV}")}/${BPN}-${PV}.tar.xz;name=archive" | 10 | SRC_URI = "https://download.gnome.org/sources/${BPN}/${@gnome_verdir("${PV}")}/${BPN}-${PV}.tar.xz;name=archive" |
| 11 | 11 | ||
| @@ -18,7 +18,6 @@ EXTRA_OEMESON = " \ | |||
| 18 | -Dgoa=false \ | 18 | -Dgoa=false \ |
| 19 | -Dgoogle=false \ | 19 | -Dgoogle=false \ |
| 20 | -Dnfs=false \ | 20 | -Dnfs=false \ |
| 21 | -Dudisks2=true \ | ||
| 22 | " | 21 | " |
| 23 | 22 | ||
| 24 | PACKAGES =+ "gvfsd-ftp gvfsd-sftp gvfsd-trash" | 23 | PACKAGES =+ "gvfsd-ftp gvfsd-sftp gvfsd-trash" |
| @@ -31,7 +30,6 @@ FILES_${PN} += " \ | |||
| 31 | ${libdir}/tmpfiles.d \ | 30 | ${libdir}/tmpfiles.d \ |
| 32 | ${systemd_user_unitdir} \ | 31 | ${systemd_user_unitdir} \ |
| 33 | " | 32 | " |
| 34 | RDEPENDS_${PN} = "udisks2" | ||
| 35 | 33 | ||
| 36 | FILES_${PN}-dbg += "${libdir}/gio/modules/.debug/*" | 34 | FILES_${PN}-dbg += "${libdir}/gio/modules/.debug/*" |
| 37 | FILES_${PN}-dev += "${libdir}/gio/modules/*.la" | 35 | FILES_${PN}-dev += "${libdir}/gio/modules/*.la" |
| @@ -42,8 +40,14 @@ FILES_gvfsd-trash = "${libexecdir}/gvfsd-trash ${datadir}/gvfs/mounts/trash.moun | |||
| 42 | 40 | ||
| 43 | RRECOMMENDS_gvfsd-ftp += "openssh-sftp openssh-ssh" | 41 | RRECOMMENDS_gvfsd-ftp += "openssh-sftp openssh-ssh" |
| 44 | 42 | ||
| 45 | PACKAGECONFIG ?= "libgphoto2 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" | 43 | PACKAGECONFIG ?= "libgphoto2 \ |
| 44 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ | ||
| 45 | ${@bb.utils.contains('DISTRO_FEATURES','polkit','udisks2','',d)} \ | ||
| 46 | ${@bb.utils.contains('DISTRO_FEATURES','polkit','admin','',d)} \ | ||
| 47 | " | ||
| 46 | 48 | ||
| 49 | PACKAGECONFIG[udisks2] = "-Dudisks2=true, -Dudisks2=false, udisks2, udisks2" | ||
| 50 | PACKAGECONFIG[admin] = "-Dadmin=true, -Dadmin=false, libcap polkit" | ||
| 47 | PACKAGECONFIG[afc] = "-Dafc=true, -Dafc=false, libimobiledevice libplist" | 51 | PACKAGECONFIG[afc] = "-Dafc=true, -Dafc=false, libimobiledevice libplist" |
| 48 | PACKAGECONFIG[archive] = "-Darchive=true, -Darchive=false, libarchive" | 52 | PACKAGECONFIG[archive] = "-Darchive=true, -Darchive=false, libarchive" |
| 49 | PACKAGECONFIG[dnssd] = "-Ddnssd=true, -Ddnssd=false, avahi" | 53 | PACKAGECONFIG[dnssd] = "-Ddnssd=true, -Ddnssd=false, avahi" |
| @@ -62,9 +66,11 @@ PACKAGECONFIG[fuse] = "-Dfuse=true, -Dfuse=false, fuse" | |||
| 62 | PACKAGECONFIG[cdda] = "-Dcdda=true, -Dcdda=false, libcdio-paranoia" | 66 | PACKAGECONFIG[cdda] = "-Dcdda=true, -Dcdda=false, libcdio-paranoia" |
| 63 | 67 | ||
| 64 | do_install_append() { | 68 | do_install_append() { |
| 65 | # Fix up permissions on polkit rules.d to work with rpm4 constraints | 69 | if ${@bb.utils.contains('DISTRO_FEATURES', 'polkit', 'true', 'false', d)}; then |
| 66 | chmod 700 ${D}/${datadir}/polkit-1/rules.d | 70 | # Fix up permissions on polkit rules.d to work with rpm4 constraints |
| 67 | chown polkitd:root ${D}/${datadir}/polkit-1/rules.d | 71 | chmod 700 ${D}/${datadir}/polkit-1/rules.d |
| 72 | chown polkitd:root ${D}/${datadir}/polkit-1/rules.d | ||
| 73 | fi | ||
| 68 | 74 | ||
| 69 | # After rebuilds (not from scracth) it can happen that the executables in | 75 | # After rebuilds (not from scracth) it can happen that the executables in |
| 70 | # libexec ar missing executable permission flag. Not sure but it came up | 76 | # libexec ar missing executable permission flag. Not sure but it came up |
