diff options
-rw-r--r-- | meta/recipes-devtools/rpm/rpm_4.15.1.bb | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/meta/recipes-devtools/rpm/rpm_4.15.1.bb b/meta/recipes-devtools/rpm/rpm_4.15.1.bb index 71e2c033fd..a1c5205554 100644 --- a/meta/recipes-devtools/rpm/rpm_4.15.1.bb +++ b/meta/recipes-devtools/rpm/rpm_4.15.1.bb | |||
@@ -49,7 +49,7 @@ SRCREV = "ab2179452c5be276a6b96c591afded485c7e58c3" | |||
49 | 49 | ||
50 | S = "${WORKDIR}/git" | 50 | S = "${WORKDIR}/git" |
51 | 51 | ||
52 | DEPENDS = "openssl db file popt xz bzip2 dbus elfutils python3" | 52 | DEPENDS = "openssl db file popt xz bzip2 elfutils python3" |
53 | DEPENDS_append_class-native = " file-replacement-native bzip2-replacement-native" | 53 | DEPENDS_append_class-native = " file-replacement-native bzip2-replacement-native" |
54 | 54 | ||
55 | inherit autotools gettext pkgconfig python3native | 55 | inherit autotools gettext pkgconfig python3native |
@@ -62,18 +62,21 @@ EXTRA_OECONF_append = " --without-lua --enable-python --with-crypto=openssl" | |||
62 | EXTRA_OECONF_append_libc-musl = " --disable-nls --disable-openmp" | 62 | EXTRA_OECONF_append_libc-musl = " --disable-nls --disable-openmp" |
63 | 63 | ||
64 | # --sysconfdir prevents rpm from attempting to access machine-specific configuration in sysroot/etc; we need to have it in rootfs | 64 | # --sysconfdir prevents rpm from attempting to access machine-specific configuration in sysroot/etc; we need to have it in rootfs |
65 | # | ||
66 | # --localstatedir prevents rpm from writing its database to native sysroot when building images | 65 | # --localstatedir prevents rpm from writing its database to native sysroot when building images |
67 | # | 66 | # Forcibly disable plugins for native/nativesdk, as the inhibit and prioreset |
68 | # Disable dbus for native, so that rpm doesn't attempt to inhibit shutdown via session dbus even when plugins support is enabled. | 67 | # plugins both behave badly inside builds. |
69 | # Also disable plugins by default for native. | ||
70 | EXTRA_OECONF_append_class-native = " --sysconfdir=/etc --localstatedir=/var --disable-plugins" | 68 | EXTRA_OECONF_append_class-native = " --sysconfdir=/etc --localstatedir=/var --disable-plugins" |
71 | EXTRA_OECONF_append_class-nativesdk = " --sysconfdir=/etc --disable-plugins" | 69 | EXTRA_OECONF_append_class-nativesdk = " --sysconfdir=/etc --disable-plugins" |
72 | 70 | ||
73 | BBCLASSEXTEND = "native nativesdk" | 71 | BBCLASSEXTEND = "native nativesdk" |
74 | 72 | ||
75 | PACKAGECONFIG ??= "" | 73 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'inhibit', '', d)}" |
74 | # The inhibit plugin serves no purpose outside of the target | ||
75 | PACKAGECONFIG_remove_class-native = "inhibit" | ||
76 | PACKAGECONFIG_remove_class-nativesdk = "inhibit" | ||
77 | |||
76 | PACKAGECONFIG[imaevm] = "--with-imaevm,,ima-evm-utils" | 78 | PACKAGECONFIG[imaevm] = "--with-imaevm,,ima-evm-utils" |
79 | PACKAGECONFIG[inhibit] = "--enable-inhibit-plugin,--disable-inhibit-plugin,dbus" | ||
77 | PACKAGECONFIG[rpm2archive] = "--with-archive,--without-archive,libarchive" | 80 | PACKAGECONFIG[rpm2archive] = "--with-archive,--without-archive,libarchive" |
78 | 81 | ||
79 | ASNEEDED = "" | 82 | ASNEEDED = "" |