diff options
| author | Yoann Congal <yoann.congal@smile.fr> | 2024-09-05 14:52:20 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-09-05 08:20:29 -0700 |
| commit | 9bdff5feb60994d4ed3a0123b9977c6c6643a242 (patch) | |
| tree | 3c5fc6a6d0947c2c7f910ed1eaa0f54b0834401e /meta-oe/recipes-extended/polkit/polkit_125.bb | |
| parent | 2a3d4be9994ec68f2d94f8a7dd7da77c1675dfe6 (diff) | |
| download | meta-openembedded-9bdff5feb60994d4ed3a0123b9977c6c6643a242.tar.gz | |
polkit: Switch PAM files to common-*
Add a new OS option to polkit meson: "openembedded" and use this to
set PAM include to common-* which matches OE-Core libpam.
This also may fix a non-reproducibility since polkit meson system tried
to detect the host (compiling) OS and changed PAM config from the
detected value.
Fixes: https://github.com/openembedded/meta-openembedded/issues/860
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/polkit/polkit_125.bb')
| -rw-r--r-- | meta-oe/recipes-extended/polkit/polkit_125.bb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta-oe/recipes-extended/polkit/polkit_125.bb b/meta-oe/recipes-extended/polkit/polkit_125.bb index fe1ee467c3..2405ed6034 100644 --- a/meta-oe/recipes-extended/polkit/polkit_125.bb +++ b/meta-oe/recipes-extended/polkit/polkit_125.bb | |||
| @@ -5,7 +5,9 @@ LICENSE = "LGPL-2.0-or-later" | |||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=155db86cdbafa7532b41f390409283eb" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=155db86cdbafa7532b41f390409283eb" |
| 6 | BUGTRACKER = "https://github.com/polkit-org/polkit/issues" | 6 | BUGTRACKER = "https://github.com/polkit-org/polkit/issues" |
| 7 | 7 | ||
| 8 | SRC_URI = "git://github.com/polkit-org/polkit.git;protocol=https;branch=main" | 8 | SRC_URI = "git://github.com/polkit-org/polkit.git;protocol=https;branch=main \ |
| 9 | file://meson-build-Support-openembedded-OS-for-PAM-config.patch \ | ||
| 10 | " | ||
| 9 | 11 | ||
| 10 | S = "${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
| 11 | SRCREV = "112752c12da812a163dac67d7f675b60de8f7d7b" | 13 | SRCREV = "112752c12da812a163dac67d7f675b60de8f7d7b" |
| @@ -16,6 +18,10 @@ inherit meson pkgconfig useradd systemd gettext gobject-introspection features_c | |||
| 16 | 18 | ||
| 17 | REQUIRED_DISTRO_FEATURES = "polkit" | 19 | REQUIRED_DISTRO_FEATURES = "polkit" |
| 18 | 20 | ||
| 21 | # Prevent meson.build to try to autodetect host OS (which could lead to | ||
| 22 | # non-reproducibility) | ||
| 23 | EXTRA_OEMESON = "-Dos_type=openembedded" | ||
| 24 | |||
| 19 | PACKAGECONFIG = " \ | 25 | PACKAGECONFIG = " \ |
| 20 | ${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \ | 26 | ${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \ |
| 21 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', 'consolekit', d)} \ | 27 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', 'consolekit', d)} \ |
