diff options
author | Chong Lu <Chong.Lu@windriver.com> | 2014-04-08 11:30:56 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-06-16 14:52:07 +0100 |
commit | 7dcd9a6b72ef270772983f13e7a60982daba2d39 (patch) | |
tree | 005f43e5f8a1f15446ca3328aad9c5ca7a6ce2d7 /meta/recipes-core/dbus/dbus-test_1.6.18.bb | |
parent | a43dba8c2904f9c1ce0425c53c5a7f4718121e6b (diff) | |
download | poky-7dcd9a6b72ef270772983f13e7a60982daba2d39.tar.gz |
dbus: fix a hard dependency about dbus-ptest
If image contains dbus and ptest is in DISTRO_FEATURES, dbus-ptest package
is installed, regardless of whether ptest-pkgs is in IMAGE_FEATURES. This
issue will increase size for most small images.
This patch fixes this problem.
[YOCTO #5702]
(From OE-Core rev: 0416583f014138656babdf78a574357ae5ff25bd)
(From OE-Core rev: d865612c7c1aaccb9f4c65224c9e4c888876fe92)
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/dbus/dbus-test_1.6.18.bb')
-rw-r--r-- | meta/recipes-core/dbus/dbus-test_1.6.18.bb | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-core/dbus/dbus-test_1.6.18.bb b/meta/recipes-core/dbus/dbus-test_1.6.18.bb new file mode 100644 index 0000000000..bc260defe0 --- /dev/null +++ b/meta/recipes-core/dbus/dbus-test_1.6.18.bb | |||
@@ -0,0 +1,53 @@ | |||
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 = "python-pygobject dbus dbus-glib" | ||
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://ptest.patch \ | ||
16 | file://dbus-1.init \ | ||
17 | file://run-ptest \ | ||
18 | file://python-config.patch \ | ||
19 | file://clear-guid_from_server-if-send_negotiate_unix_f.patch \ | ||
20 | " | ||
21 | |||
22 | SRC_URI[md5sum] = "b02e9c95027a416987b81f9893831061" | ||
23 | SRC_URI[sha256sum] = "7085a0895a9eb11a952394cdbea6d8b4358e17cb991fed0e8fb85e2b9e686dcd" | ||
24 | |||
25 | S="${WORKDIR}/dbus-${PV}" | ||
26 | FILESPATH = "${FILE_DIRNAME}/dbus" | ||
27 | |||
28 | inherit autotools pkgconfig gettext ptest | ||
29 | |||
30 | EXTRA_OECONF_X = "${@base_contains('DISTRO_FEATURES', 'x11', '--with-x', '--without-x', d)}" | ||
31 | EXTRA_OECONF_X_class-native = "--without-x" | ||
32 | |||
33 | EXTRA_OECONF = "--enable-tests \ | ||
34 | --enable-modular-tests \ | ||
35 | --enable-installed-tests \ | ||
36 | --enable-checks \ | ||
37 | --enable-asserts \ | ||
38 | --enable-verbose-mode \ | ||
39 | --disable-xml-docs \ | ||
40 | --disable-doxygen-docs \ | ||
41 | --disable-libaudit \ | ||
42 | --with-xml=expat \ | ||
43 | --disable-systemd \ | ||
44 | --without-systemdsystemunitdir \ | ||
45 | --with-dbus-test-dir=${PTEST_PATH} \ | ||
46 | ${EXTRA_OECONF_X}" | ||
47 | |||
48 | do_install() { | ||
49 | } | ||
50 | |||
51 | do_install_ptest() { | ||
52 | find ${D}${PTEST_PATH} -name Makefile | xargs sed -i 's/^Makefile:/_Makefile:/' | ||
53 | } | ||