diff options
| author | Markus Volk <f_l_k@t-online.de> | 2024-08-14 10:30:09 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-09-01 15:54:30 -0700 |
| commit | 84d6e138cb558cea9155e5a392e2ff7647e2e688 (patch) | |
| tree | 816a1e846cecedb61817337825a37c59fcd7edd8 /meta-gnome | |
| parent | c8f4a786402063d160fa16284c16c8fca8165a5a (diff) | |
| download | meta-openembedded-84d6e138cb558cea9155e5a392e2ff7647e2e688.tar.gz | |
cleanup after polkit fix
This commit removes the need to fix polkit permissions:
https://git.openembedded.org/meta-openembedded/commit/?h=master-next&id=d5e90541f8e35916abc930b2da6de037b23d51a1
That allows to do some cleanup
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-gnome')
3 files changed, 3 insertions, 32 deletions
diff --git a/meta-gnome/dynamic-layers/meta-security/recipes-gnome/gnome-remote-desktop/gnome-remote-desktop_46.2.bb b/meta-gnome/dynamic-layers/meta-security/recipes-gnome/gnome-remote-desktop/gnome-remote-desktop_46.2.bb index 59ae9383db..a16a02aa7b 100644 --- a/meta-gnome/dynamic-layers/meta-security/recipes-gnome/gnome-remote-desktop/gnome-remote-desktop_46.2.bb +++ b/meta-gnome/dynamic-layers/meta-security/recipes-gnome/gnome-remote-desktop/gnome-remote-desktop_46.2.bb | |||
| @@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | |||
| 4 | 4 | ||
| 5 | GNOMEBASEBUILDCLASS = "meson" | 5 | GNOMEBASEBUILDCLASS = "meson" |
| 6 | 6 | ||
| 7 | inherit gnomebase gettext gsettings features_check useradd | 7 | inherit gnomebase gettext gsettings features_check |
| 8 | 8 | ||
| 9 | REQUIRED_DISTRO_FEATURES = "opengl polkit" | 9 | REQUIRED_DISTRO_FEATURES = "opengl polkit" |
| 10 | 10 | ||
| @@ -36,15 +36,5 @@ PACKAGECONFIG[vnc] = "-Dvnc=true,-Dvnc=false,libvncserver" | |||
| 36 | PACKAGECONFIG[rdp] = "-Drdp=true,-Drdp=false,freerdp3 fuse3 libxkbcommon" | 36 | PACKAGECONFIG[rdp] = "-Drdp=true,-Drdp=false,freerdp3 fuse3 libxkbcommon" |
| 37 | PACKAGECONFIG[systemd] = "-Dsystemd=true,-Dsystemd=false,systemd" | 37 | PACKAGECONFIG[systemd] = "-Dsystemd=true,-Dsystemd=false,systemd" |
| 38 | 38 | ||
| 39 | USERADD_PACKAGES = "${PN}" | ||
| 40 | USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 polkitd" | ||
| 41 | |||
| 42 | do_install:append() { | ||
| 43 | if [ -d ${D}${datadir}/polkit-1/rules.d ]; then | ||
| 44 | chmod 700 ${D}${datadir}/polkit-1/rules.d | ||
| 45 | chown polkitd:root ${D}${datadir}/polkit-1/rules.d | ||
| 46 | fi | ||
| 47 | } | ||
| 48 | |||
| 49 | PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src" | 39 | PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src" |
| 50 | FILES:${PN} += "${systemd_user_unitdir} ${systemd_system_unitdir} ${datadir} ${libdir}/sysusers.d ${libdir}/tmpfiles.d" | 40 | FILES:${PN} += "${systemd_user_unitdir} ${systemd_system_unitdir} ${datadir} ${libdir}/sysusers.d ${libdir}/tmpfiles.d" |
diff --git a/meta-gnome/recipes-gnome/gnome-control-center/gnome-control-center_46.2.bb b/meta-gnome/recipes-gnome/gnome-control-center/gnome-control-center_46.2.bb index 152e803b5d..ae96caf94f 100644 --- a/meta-gnome/recipes-gnome/gnome-control-center/gnome-control-center_46.2.bb +++ b/meta-gnome/recipes-gnome/gnome-control-center/gnome-control-center_46.2.bb | |||
| @@ -33,7 +33,7 @@ DEPENDS = " \ | |||
| 33 | upower \ | 33 | upower \ |
| 34 | " | 34 | " |
| 35 | 35 | ||
| 36 | inherit gtk-icon-cache pkgconfig gnomebase gsettings gettext upstream-version-is-even bash-completion features_check useradd | 36 | inherit gtk-icon-cache pkgconfig gnomebase gsettings gettext upstream-version-is-even bash-completion features_check |
| 37 | 37 | ||
| 38 | REQUIRED_DISTRO_FEATURES += "opengl polkit pulseaudio systemd x11" | 38 | REQUIRED_DISTRO_FEATURES += "opengl polkit pulseaudio systemd x11" |
| 39 | 39 | ||
| @@ -52,16 +52,6 @@ EXTRA_OEMESON += "-Doe_sysroot=${STAGING_DIR_HOST}" | |||
| 52 | 52 | ||
| 53 | export XDG_DATA_DIRS = "${STAGING_DATADIR}" | 53 | export XDG_DATA_DIRS = "${STAGING_DATADIR}" |
| 54 | 54 | ||
| 55 | USERADD_PACKAGES = "${PN}" | ||
| 56 | USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 polkitd" | ||
| 57 | |||
| 58 | do_install:append() { | ||
| 59 | if [ -d ${D}${datadir}/polkit-1/rules.d ]; then | ||
| 60 | chmod 700 ${D}${datadir}/polkit-1/rules.d | ||
| 61 | chown polkitd:root ${D}${datadir}/polkit-1/rules.d | ||
| 62 | fi | ||
| 63 | } | ||
| 64 | |||
| 65 | PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src" | 55 | PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src" |
| 66 | 56 | ||
| 67 | FILES:${PN} += " \ | 57 | FILES:${PN} += " \ |
diff --git a/meta-gnome/recipes-gnome/gvfs/gvfs_1.54.0.bb b/meta-gnome/recipes-gnome/gvfs/gvfs_1.54.0.bb index 01cdb4eef5..6549b1900f 100644 --- a/meta-gnome/recipes-gnome/gvfs/gvfs_1.54.0.bb +++ b/meta-gnome/recipes-gnome/gvfs/gvfs_1.54.0.bb | |||
| @@ -2,7 +2,7 @@ DESCRIPTION = "gvfs is a userspace virtual filesystem" | |||
| 2 | LICENSE = "LGPL-2.0-only" | 2 | LICENSE = "LGPL-2.0-only" |
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=05df38dd77c35ec8431f212410a3329e" | 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=05df38dd77c35ec8431f212410a3329e" |
| 4 | 4 | ||
| 5 | inherit gnomebase gsettings bash-completion gettext upstream-version-is-even features_check useradd | 5 | inherit gnomebase gsettings bash-completion gettext upstream-version-is-even features_check |
| 6 | 6 | ||
| 7 | DEPENDS += "\ | 7 | DEPENDS += "\ |
| 8 | dbus \ | 8 | dbus \ |
| @@ -77,16 +77,7 @@ PACKAGECONFIG[fuse] = "-Dfuse=true, -Dfuse=false, fuse3" | |||
| 77 | # libcdio-paranoia recipe doesn't exist yet | 77 | # libcdio-paranoia recipe doesn't exist yet |
| 78 | PACKAGECONFIG[cdda] = "-Dcdda=true, -Dcdda=false, libcdio-paranoia" | 78 | PACKAGECONFIG[cdda] = "-Dcdda=true, -Dcdda=false, libcdio-paranoia" |
| 79 | 79 | ||
| 80 | USERADD_PACKAGES = "${PN}" | ||
| 81 | USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 polkitd" | ||
| 82 | |||
| 83 | do_install:append() { | 80 | do_install:append() { |
| 84 | if ${@bb.utils.contains('DISTRO_FEATURES', 'polkit', 'true', 'false', d)}; then | ||
| 85 | # Fix up permissions on polkit rules.d to work with rpm4 constraints | ||
| 86 | chmod 700 ${D}${datadir}/polkit-1/rules.d | ||
| 87 | chown polkitd:root ${D}${datadir}/polkit-1/rules.d | ||
| 88 | fi | ||
| 89 | |||
| 90 | # After rebuilds (not from scracth) it can happen that the executables in | 81 | # After rebuilds (not from scracth) it can happen that the executables in |
| 91 | # libexec ar missing executable permission flag. Not sure but it came up | 82 | # libexec ar missing executable permission flag. Not sure but it came up |
| 92 | # during transition to meson. Looked into build files and logs but could | 83 | # during transition to meson. Looked into build files and logs but could |
