mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 00:49:33 +02:00
Remove build host references from additional files. (From OE-Core rev: 073d8d001033471d7fe44f52212c72a6c3541313) Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
83 lines
3.1 KiB
BlitzBasic
83 lines
3.1 KiB
BlitzBasic
SUMMARY = "D-Bus test package (for D-bus functionality testing only)"
|
|
HOMEPAGE = "http://dbus.freedesktop.org"
|
|
SECTION = "base"
|
|
LICENSE = "AFL-2 | GPLv2+"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=10dded3b58148f3f1fd804b26354af3e \
|
|
file://dbus/dbus.h;beginline=6;endline=20;md5=7755c9d7abccd5dbd25a6a974538bb3c"
|
|
|
|
DEPENDS = "dbus glib-2.0"
|
|
|
|
RDEPENDS_${PN} += "make"
|
|
RDEPENDS_${PN}-dev = ""
|
|
|
|
SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \
|
|
file://tmpdir.patch \
|
|
file://run-ptest \
|
|
file://python-config.patch \
|
|
file://clear-guid_from_server-if-send_negotiate_unix_f.patch \
|
|
"
|
|
|
|
SRC_URI[md5sum] = "3361456cadb99aa6601bed5b48964254"
|
|
SRC_URI[sha256sum] = "272bb5091770b047c8188b926d5e6038fa4fe6745488b2add96b23e2d9a83d88"
|
|
|
|
S="${WORKDIR}/dbus-${PV}"
|
|
FILESEXTRAPATHS =. "${FILE_DIRNAME}/dbus:"
|
|
|
|
inherit autotools pkgconfig gettext ptest upstream-version-is-even
|
|
|
|
EXTRA_OECONF_X = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '--with-x', '--without-x', d)}"
|
|
EXTRA_OECONF_X_class-native = "--without-x"
|
|
|
|
EXTRA_OECONF = "--enable-tests \
|
|
--enable-modular-tests \
|
|
--enable-installed-tests \
|
|
--enable-checks \
|
|
--enable-asserts \
|
|
--enable-verbose-mode \
|
|
--enable-largefile \
|
|
--disable-xml-docs \
|
|
--disable-doxygen-docs \
|
|
--disable-libaudit \
|
|
--with-dbus-test-dir=${PTEST_PATH} \
|
|
${EXTRA_OECONF_X}"
|
|
|
|
EXTRA_OECONF_append_class-target = " SYSTEMCTL=${base_bindir}/systemctl"
|
|
|
|
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd x11', d)}"
|
|
PACKAGECONFIG_class-native = ""
|
|
PACKAGECONFIG_class-nativesdk = ""
|
|
|
|
PACKAGECONFIG[systemd] = "--enable-systemd --with-systemdsystemunitdir=${systemd_system_unitdir},--disable-systemd --without-systemdsystemunitdir,systemd"
|
|
PACKAGECONFIG[x11] = "--with-x --enable-x11-autolaunch,--without-x --disable-x11-autolaunch, virtual/libx11 libsm"
|
|
PACKAGECONFIG[user-session] = "--enable-user-session --with-systemduserunitdir=${systemd_user_unitdir},--disable-user-session"
|
|
|
|
do_install() {
|
|
:
|
|
}
|
|
|
|
do_install_ptest() {
|
|
install -d ${D}${PTEST_PATH}/test
|
|
l="shell printf refs syslog marshal syntax corrupt dbus-daemon dbus-daemon-eavesdrop loopback relay \
|
|
variant uid-permissions syntax spawn sd-activation names monitor message fdpass "
|
|
for i in $l; do install ${B}/test/.libs/test-$i ${D}${PTEST_PATH}/test; done
|
|
|
|
l="bus bus-system bus-launch-helper"
|
|
for i in $l; do install ${B}/bus/.libs/test-$i ${D}${PTEST_PATH}/test; done
|
|
|
|
cp -r ${B}/test/data ${D}${PTEST_PATH}/test
|
|
install ${B}/dbus/.libs/test-dbus ${D}${PTEST_PATH}/test
|
|
|
|
install -d ${D}${PTEST_PATH}/test/.libs
|
|
cp -a ${B}/dbus/.libs/*.so* ${D}${PTEST_PATH}/test/.libs
|
|
|
|
# Remove build host references...
|
|
find "${D}${PTEST_PATH}/test/data" \( -name *.service -o -name *.conf -o -name "*.aaprofile" \) -type f -exec \
|
|
sed -i \
|
|
-e 's:${B}:${PTEST_PATH}:g' \
|
|
{} +
|
|
}
|
|
|
|
RDEPENDS_${PN}-ptest += "bash"
|
|
|
|
PRIVATE_LIBS_${PN}-ptest = "libdbus-1.so.3"
|