diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2019-02-19 09:53:12 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-20 11:30:35 +0000 |
commit | 5fdf2c7a9dc1aed79dd64305d360f67001f346b9 (patch) | |
tree | ddef90d53a6dff34624c759ee5d32af85579348c /meta/recipes-core/dbus/dbus-test_1.12.12.bb | |
parent | 66dced58214340c483e176cb298bc2de89e058ee (diff) | |
download | poky-5fdf2c7a9dc1aed79dd64305d360f67001f346b9.tar.gz |
dbus-test: upgrade to 1.12.12
(From OE-Core rev: 13790f825c7e72f2fe7944e0ec4abda1e8be7d0f)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/dbus/dbus-test_1.12.12.bb')
-rw-r--r-- | meta/recipes-core/dbus/dbus-test_1.12.12.bb | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/meta/recipes-core/dbus/dbus-test_1.12.12.bb b/meta/recipes-core/dbus/dbus-test_1.12.12.bb new file mode 100644 index 0000000000..f4131926c2 --- /dev/null +++ b/meta/recipes-core/dbus/dbus-test_1.12.12.bb | |||
@@ -0,0 +1,83 @@ | |||
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 | 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} += "make" | ||
11 | RDEPENDS_${PN}-dev = "" | ||
12 | |||
13 | SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \ | ||
14 | file://tmpdir.patch \ | ||
15 | file://run-ptest \ | ||
16 | file://python-config.patch \ | ||
17 | file://clear-guid_from_server-if-send_negotiate_unix_f.patch \ | ||
18 | " | ||
19 | |||
20 | SRC_URI[md5sum] = "ea11069521beeee4e47f0086596a43c8" | ||
21 | SRC_URI[sha256sum] = "9546f226011a1e5d9d77245fe5549ef25af4694053189d624d0d6ac127ecf5f8" | ||
22 | |||
23 | S="${WORKDIR}/dbus-${PV}" | ||
24 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/dbus:" | ||
25 | |||
26 | inherit autotools pkgconfig gettext ptest upstream-version-is-even | ||
27 | |||
28 | EXTRA_OECONF_X = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '--with-x', '--without-x', d)}" | ||
29 | EXTRA_OECONF_X_class-native = "--without-x" | ||
30 | |||
31 | EXTRA_OECONF = "--enable-tests \ | ||
32 | --enable-modular-tests \ | ||
33 | --enable-installed-tests \ | ||
34 | --enable-checks \ | ||
35 | --enable-asserts \ | ||
36 | --enable-verbose-mode \ | ||
37 | --enable-largefile \ | ||
38 | --disable-xml-docs \ | ||
39 | --disable-doxygen-docs \ | ||
40 | --disable-libaudit \ | ||
41 | --with-dbus-test-dir=${PTEST_PATH} \ | ||
42 | ${EXTRA_OECONF_X}" | ||
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 | |||
54 | do_install() { | ||
55 | : | ||
56 | } | ||
57 | |||
58 | do_install_ptest() { | ||
59 | install -d ${D}${PTEST_PATH}/test | ||
60 | l="shell printf refs syslog marshal syntax corrupt dbus-daemon dbus-daemon-eavesdrop loopback relay \ | ||
61 | variant uid-permissions syntax spawn sd-activation names monitor message fdpass " | ||
62 | for i in $l; do install ${B}/test/.libs/test-$i ${D}${PTEST_PATH}/test; done | ||
63 | |||
64 | l="bus bus-system bus-launch-helper" | ||
65 | for i in $l; do install ${B}/bus/.libs/test-$i ${D}${PTEST_PATH}/test; done | ||
66 | |||
67 | cp -r ${B}/test/data ${D}${PTEST_PATH}/test | ||
68 | install ${B}/dbus/.libs/test-dbus ${D}${PTEST_PATH}/test | ||
69 | |||
70 | install -d ${D}${PTEST_PATH}/test/.libs | ||
71 | cp -a ${B}/dbus/.libs/*.so* ${D}${PTEST_PATH}/test/.libs | ||
72 | |||
73 | # Remove build host references... | ||
74 | find "${D}${PTEST_PATH}/test/data" \( -name *.service -o -name *.conf -o -name "*.aaprofile" \) -type f -exec \ | ||
75 | sed -i \ | ||
76 | -e 's:${B}:${PTEST_PATH}:g' \ | ||
77 | {} + | ||
78 | sed -i -e 's;@PTEST_PATH@;${PTEST_PATH};g' ${D}${PTEST_PATH}/run-ptest | ||
79 | } | ||
80 | |||
81 | RDEPENDS_${PN}-ptest += "bash" | ||
82 | |||
83 | PRIVATE_LIBS_${PN}-ptest = "libdbus-1.so.3" | ||