summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rpm/rpm_4.14.1.bb
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2018-04-08 15:56:07 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-04-10 09:10:36 +0100
commit1ed050ae47d681d5892fb58f00e07767f8a06233 (patch)
treee1103d887988020a39be2bf25a8036dc4ed81192 /meta/recipes-devtools/rpm/rpm_4.14.1.bb
parent003e90886584f0b92bdebf23fc1661443b6d50f2 (diff)
downloadpoky-1ed050ae47d681d5892fb58f00e07767f8a06233.tar.gz
rpm: build without dbus for rpm-native
Add option for dbus in configure.ac, and explicitly build without dbus for rpm-native. Previously, the rpm recipe tries to prevent rpm-native from attempting to inhibit shutdown via session dbus by appending '--disable-plugins' to EXTRA_OECONF in case of native. However, some layer may need some functionality via plugin support. And when it enables it, we would meet the following warning at rootfs time. Unable to get systemd shutdown inhibition lock: Socket name too long As plugins/systemd_inhibit.c is the only place that's related to this dependency, we can be sure that dbus is really not needed for rpm-native. (From OE-Core rev: 815ccef2d5bef1e46c51916e694d0974aee394a9) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rpm/rpm_4.14.1.bb')
-rw-r--r--meta/recipes-devtools/rpm/rpm_4.14.1.bb6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-devtools/rpm/rpm_4.14.1.bb b/meta/recipes-devtools/rpm/rpm_4.14.1.bb
index 7b8ea46a75..818d3ef9e3 100644
--- a/meta/recipes-devtools/rpm/rpm_4.14.1.bb
+++ b/meta/recipes-devtools/rpm/rpm_4.14.1.bb
@@ -40,6 +40,7 @@ SRC_URI = "git://github.com/rpm-software-management/rpm;branch=rpm-4.14.x \
40 file://0004-build-pack.c-remove-static-local-variables-from-buil.patch \ 40 file://0004-build-pack.c-remove-static-local-variables-from-buil.patch \
41 file://0001-perl-disable-auto-reqs.patch \ 41 file://0001-perl-disable-auto-reqs.patch \
42 file://0001-Revert-Set-FD_CLOEXEC-on-opened-files-before-exec-fr.patch \ 42 file://0001-Revert-Set-FD_CLOEXEC-on-opened-files-before-exec-fr.patch \
43 file://0001-configure.ac-add-option-for-dbus.patch \
43 " 44 "
44 45
45PE = "1" 46PE = "1"
@@ -63,8 +64,9 @@ EXTRA_OECONF_append_libc-musl = " --disable-nls"
63# 64#
64# --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
65# 66#
66# Also disable plugins, so that rpm doesn't attempt to inhibit shutdown via session dbus 67# Disable dbus for native, so that rpm doesn't attempt to inhibit shutdown via session dbus even when plugins support is enabled.
67EXTRA_OECONF_append_class-native = " --sysconfdir=/etc --localstatedir=/var --disable-plugins" 68# Also disable plugins by default for native.
69EXTRA_OECONF_append_class-native = " --sysconfdir=/etc --localstatedir=/var --without-dbus --disable-plugins"
68 70
69BBCLASSEXTEND = "native nativesdk" 71BBCLASSEXTEND = "native nativesdk"
70 72