diff options
author | Wang Mingyu <wangmy@cn.fujitsu.com> | 2021-09-07 16:32:24 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-14 17:27:42 +0100 |
commit | 955ae70225a4d207d164595cbb371c3a369946bd (patch) | |
tree | 55c6f591e8b7c46d9edc88c01d018792a6dd332e /meta/recipes-core/dbus/dbus-test_1.12.18.bb | |
parent | 871a37352780e9da9dd82021047651f83a376b4d (diff) | |
download | poky-955ae70225a4d207d164595cbb371c3a369946bd.tar.gz |
dbus-test: upgrade 1.12.16 -> 1.12.18
(From OE-Core rev: 839695e0c1b0c0fcfbb924c2b174c4a638067a32)
(From OE-Core rev: 296746f58dd1b4839c953a7b1eb4aed22e407c29)
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5cbf053481642a820b9f4c6bed9ac79246719087)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/dbus/dbus-test_1.12.18.bb')
-rw-r--r-- | meta/recipes-core/dbus/dbus-test_1.12.18.bb | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/meta/recipes-core/dbus/dbus-test_1.12.18.bb b/meta/recipes-core/dbus/dbus-test_1.12.18.bb new file mode 100644 index 0000000000..0063dcce67 --- /dev/null +++ b/meta/recipes-core/dbus/dbus-test_1.12.18.bb | |||
@@ -0,0 +1,90 @@ | |||
1 | SUMMARY = "D-Bus test package (for D-bus functionality testing only)" | ||
2 | HOMEPAGE = "http://dbus.freedesktop.org" | ||
3 | SECTION = "base" | ||
4 | LICENSE = "AFL-2.1 | GPLv2+" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=10dded3b58148f3f1fd804b26354af3e \ | ||
6 | file://dbus/dbus.h;beginline=6;endline=20;md5=7755c9d7abccd5dbd25a6a974538bb3c" | ||
7 | |||
8 | DEPENDS = "dbus glib-2.0" | ||
9 | |||
10 | RDEPENDS_${PN}-dev = "" | ||
11 | |||
12 | SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \ | ||
13 | file://tmpdir.patch \ | ||
14 | file://run-ptest \ | ||
15 | file://python-config.patch \ | ||
16 | file://clear-guid_from_server-if-send_negotiate_unix_f.patch \ | ||
17 | " | ||
18 | |||
19 | SRC_URI[md5sum] = "4ca570c281be35d0b30ab83436712242" | ||
20 | SRC_URI[sha256sum] = "64cf4d70840230e5e9bc784d153880775ab3db19d656ead8a0cb9c0ab5a95306" | ||
21 | |||
22 | S="${WORKDIR}/dbus-${PV}" | ||
23 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/dbus:" | ||
24 | |||
25 | inherit autotools pkgconfig gettext ptest upstream-version-is-even | ||
26 | |||
27 | EXTRA_OECONF_X = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '--with-x', '--without-x', d)}" | ||
28 | EXTRA_OECONF_X_class-native = "--without-x" | ||
29 | |||
30 | EXTRA_OECONF = "--enable-tests \ | ||
31 | --enable-modular-tests \ | ||
32 | --enable-installed-tests \ | ||
33 | --enable-checks \ | ||
34 | --enable-asserts \ | ||
35 | --enable-largefile \ | ||
36 | --disable-xml-docs \ | ||
37 | --disable-doxygen-docs \ | ||
38 | --disable-libaudit \ | ||
39 | --with-dbus-test-dir=${PTEST_PATH} \ | ||
40 | ${EXTRA_OECONF_X} \ | ||
41 | --enable-embedded-tests \ | ||
42 | " | ||
43 | |||
44 | EXTRA_OECONF_append_class-target = " SYSTEMCTL=${base_bindir}/systemctl" | ||
45 | |||
46 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd x11', d)}" | ||
47 | PACKAGECONFIG_class-native = "" | ||
48 | PACKAGECONFIG_class-nativesdk = "" | ||
49 | |||
50 | PACKAGECONFIG[systemd] = "--enable-systemd --with-systemdsystemunitdir=${systemd_system_unitdir},--disable-systemd --without-systemdsystemunitdir,systemd" | ||
51 | PACKAGECONFIG[x11] = "--with-x --enable-x11-autolaunch,--without-x --disable-x11-autolaunch, virtual/libx11 libsm" | ||
52 | PACKAGECONFIG[user-session] = "--enable-user-session --with-systemduserunitdir=${systemd_user_unitdir},--disable-user-session" | ||
53 | PACKAGECONFIG[verbose-mode] = "--enable-verbose-mode,,," | ||
54 | |||
55 | do_install() { | ||
56 | : | ||
57 | } | ||
58 | |||
59 | do_install_ptest() { | ||
60 | install -d ${D}${PTEST_PATH}/test | ||
61 | l="shell printf refs syslog marshal syntax corrupt dbus-daemon dbus-daemon-eavesdrop loopback relay \ | ||
62 | variant uid-permissions syntax spawn sd-activation names monitor message fdpass service shell-service" | ||
63 | for i in $l; do install ${B}/test/.libs/test-$i ${D}${PTEST_PATH}/test; done | ||
64 | |||
65 | l="bus bus-system bus-launch-helper" | ||
66 | for i in $l; do install ${B}/bus/.libs/test-$i ${D}${PTEST_PATH}/test; done | ||
67 | |||
68 | install -d ${D}${PTEST_PATH}/bus | ||
69 | install ${B}/bus/.libs/dbus-daemon-launch-helper-test ${D}${PTEST_PATH}/bus | ||
70 | |||
71 | install ${B}/test/test-segfault ${D}${PTEST_PATH}/test | ||
72 | |||
73 | cp -r ${B}/test/data ${D}${PTEST_PATH}/test | ||
74 | install ${B}/dbus/.libs/test-dbus ${D}${PTEST_PATH}/test | ||
75 | |||
76 | install -d ${D}${PTEST_PATH}/test/.libs | ||
77 | cp -a ${B}/dbus/.libs/*.so* ${D}${PTEST_PATH}/test/.libs | ||
78 | |||
79 | # Remove build host references... | ||
80 | find "${D}${PTEST_PATH}/test/data" \( -name *.service -o -name *.conf -o -name "*.aaprofile" \) -type f -exec \ | ||
81 | sed -i \ | ||
82 | -e 's:${B}:${PTEST_PATH}:g' \ | ||
83 | {} + | ||
84 | sed -i -e 's;@PTEST_PATH@;${PTEST_PATH};g' ${D}${PTEST_PATH}/run-ptest | ||
85 | } | ||
86 | |||
87 | RDEPENDS_${PN}-ptest += "bash make dbus" | ||
88 | RDEPENDS_${PN}-ptest_remove = "${PN}" | ||
89 | |||
90 | PRIVATE_LIBS_${PN}-ptest = "libdbus-1.so.3" | ||