summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@gmail.com>2025-01-16 11:05:52 +0000
committerKhem Raj <raj.khem@gmail.com>2025-01-16 14:56:27 -0800
commita2f649ecc4659a01a7b75099a0c43cc57b513075 (patch)
tree4730aa7e52dcef868cb0462e6146f0a03ec06a44
parenta519f89ea7624d5051f2257cf0f5f33aee14ede1 (diff)
downloadmeta-openembedded-a2f649ecc4659a01a7b75099a0c43cc57b513075.tar.gz
polkit: update 125 -> 126
Patch merged upstream. mozjs support dropped, remove PACKAGECONFIG. Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-extended/polkit/files/meson-build-Support-openembedded-OS-for-PAM-config.patch48
-rw-r--r--meta-oe/recipes-extended/polkit/polkit_126.bb (renamed from meta-oe/recipes-extended/polkit/polkit_125.bb)15
2 files changed, 3 insertions, 60 deletions
diff --git a/meta-oe/recipes-extended/polkit/files/meson-build-Support-openembedded-OS-for-PAM-config.patch b/meta-oe/recipes-extended/polkit/files/meson-build-Support-openembedded-OS-for-PAM-config.patch
deleted file mode 100644
index 445f2fbdb0..0000000000
--- a/meta-oe/recipes-extended/polkit/files/meson-build-Support-openembedded-OS-for-PAM-config.patch
+++ /dev/null
@@ -1,48 +0,0 @@
1From 7c89b88f0f81ad220d08d69d212c14c6eeefb647 Mon Sep 17 00:00:00 2001
2From: Yoann Congal <yoann.congal@smile.fr>
3Date: Tue, 3 Sep 2024 12:17:42 +0200
4Subject: [PATCH] meson.build: Support "openembedded" OS for PAM config
5
6In Openembedded, same as Suse/Solaris: PAM files are common-*:
7* PAM_FILE_INCLUDE_AUTH: common-auth
8* PAM_FILE_INCLUDE_ACCOUNT: common-account
9* PAM_FILE_INCLUDE_PASSWORD: common-password
10* PAM_FILE_INCLUDE_SESSION: common-session
11See OE-Core libpam recipe.
12
13NB: This is also the same config as Debian but its not mentioned in the
14code.
15
16Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
17Upstream-Status: Backport [https://github.com/polkit-org/polkit/commit/1d4f7f4d9f3d74fb2649c96faa8677416c1aefc2]
18---
19 meson.build | 2 +-
20 meson_options.txt | 2 +-
21 2 files changed, 2 insertions(+), 2 deletions(-)
22
23diff --git a/meson.build b/meson.build
24index 302c189..a55f2d6 100644
25--- a/meson.build
26+++ b/meson.build
27@@ -311,7 +311,7 @@ endif
28
29 pam_include = get_option('pam_include')
30 if pam_include == ''
31- if ['suse', 'solaris'].contains(os_type)
32+ if ['suse', 'solaris', 'openembedded'].contains(os_type)
33 pam_conf = {
34 'PAM_FILE_INCLUDE_AUTH': 'common-auth',
35 'PAM_FILE_INCLUDE_ACCOUNT': 'common-account',
36diff --git a/meson_options.txt b/meson_options.txt
37index c2e4a6c..14d7a50 100644
38--- a/meson_options.txt
39+++ b/meson_options.txt
40@@ -6,7 +6,7 @@ option('polkitd_user', type: 'string', value: 'polkitd', description: 'User for
41 option('polkitd_uid', type: 'string', value: '-', description: 'Fixed UID for user running polkitd (polkitd)')
42
43 option('authfw', type: 'combo', choices: ['pam', 'shadow', 'bsdauth'], value: 'pam', description: 'Authentication framework (pam/shadow)')
44-option('os_type', type: 'combo', choices: ['redhat', 'suse', 'gentoo', 'pardus', 'solaris', 'netbsd', 'lfs', ''], value: '', description: 'distribution or OS')
45+option('os_type', type: 'combo', choices: ['redhat', 'suse', 'gentoo', 'pardus', 'solaris', 'netbsd', 'lfs', 'openembedded', ''], value: '', description: 'distribution or OS')
46
47 option('pam_include', type: 'string', value: '', description: 'pam file to include')
48 option('pam_module_dir', type: 'string', value: '', description: 'directory to install PAM security module')
diff --git a/meta-oe/recipes-extended/polkit/polkit_125.bb b/meta-oe/recipes-extended/polkit/polkit_126.bb
index a67aaf908f..a2f5449c2f 100644
--- a/meta-oe/recipes-extended/polkit/polkit_125.bb
+++ b/meta-oe/recipes-extended/polkit/polkit_126.bb
@@ -5,14 +5,12 @@ LICENSE = "LGPL-2.0-or-later"
5LIC_FILES_CHKSUM = "file://COPYING;md5=155db86cdbafa7532b41f390409283eb" 5LIC_FILES_CHKSUM = "file://COPYING;md5=155db86cdbafa7532b41f390409283eb"
6BUGTRACKER = "https://github.com/polkit-org/polkit/issues" 6BUGTRACKER = "https://github.com/polkit-org/polkit/issues"
7 7
8SRC_URI = "git://github.com/polkit-org/polkit.git;protocol=https;branch=main \ 8SRC_URI = "git://github.com/polkit-org/polkit.git;protocol=https;branch=main"
9 file://meson-build-Support-openembedded-OS-for-PAM-config.patch \
10 "
11 9
12S = "${WORKDIR}/git" 10S = "${WORKDIR}/git"
13SRCREV = "112752c12da812a163dac67d7f675b60de8f7d7b" 11SRCREV = "d627b0d1e1108563658dabe3fb8d2a065e64df10"
14 12
15DEPENDS = "expat glib-2.0" 13DEPENDS = "expat glib-2.0 duktape"
16 14
17inherit meson pkgconfig useradd systemd gettext gobject-introspection features_check 15inherit meson pkgconfig useradd systemd gettext gobject-introspection features_check
18 16
@@ -36,13 +34,6 @@ PACKAGECONFIG[consolekit] = "-Dsession_tracking=ConsoleKit,,,consolekit,,systemd
36PACKAGECONFIG[elogind] = "-Dsession_tracking=libelogin,,elogind,,,systemd consolekit" 34PACKAGECONFIG[elogind] = "-Dsession_tracking=libelogin,,elogind,,,systemd consolekit"
37PACKAGECONFIG[libs-only] = "-Dlibs-only=true,-Dlibs-only=false" 35PACKAGECONFIG[libs-only] = "-Dlibs-only=true,-Dlibs-only=false"
38 36
39# Default to mozjs javascript library
40PACKAGECONFIG[mozjs] = "-Djs_engine=mozjs,,mozjs-115,,,duktape"
41# duktape javascript engine is much smaller and faster but is not compatible with
42# same javascript standards as mozjs. For example array.includes() function is not
43# supported. Test rule compatibility when switching to duktape.
44PACKAGECONFIG[duktape] = "-Djs_engine=duktape,,duktape,,,mozjs"
45
46USERADD_PACKAGES = "${PN}" 37USERADD_PACKAGES = "${PN}"
47USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/${BPN}-1 --shell /bin/nologin polkitd" 38USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/${BPN}-1 --shell /bin/nologin polkitd"
48 39