diff options
author | Mingli Yu <mingli.yu@windriver.com> | 2019-06-13 19:58:26 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-06-14 22:48:22 +0100 |
commit | 3c5fb84222b70cc206b56bfa16b2e91427b8f97f (patch) | |
tree | f82c8eed8af1085575659b754590f54243c97e5c /meta/recipes-core/dbus/dbus-test_1.12.16.bb | |
parent | 404347ebdbbbc5b2edfb30fddeafd496d147a78b (diff) | |
download | poky-3c5fb84222b70cc206b56bfa16b2e91427b8f97f.tar.gz |
dbus-test: Upgrade 1.12.16
(From OE-Core rev: 2a6d75242579655d9e73491b147aad8533d1bcbd)
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/dbus/dbus-test_1.12.16.bb')
-rw-r--r-- | meta/recipes-core/dbus/dbus-test_1.12.16.bb | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/meta/recipes-core/dbus/dbus-test_1.12.16.bb b/meta/recipes-core/dbus/dbus-test_1.12.16.bb new file mode 100644 index 0000000000..bea0e74ed0 --- /dev/null +++ b/meta/recipes-core/dbus/dbus-test_1.12.16.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] = "2dbeae80dfc9e3632320c6a53d5e8890" | ||
20 | SRC_URI[sha256sum] = "54a22d2fa42f2eb2a871f32811c6005b531b9613b1b93a0d269b05e7549fec80" | ||
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" | ||