summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/dbus/dbus.inc
AgeCommit message (Collapse)Author
2020-07-12dbus: upgrade 1.12.18 -> 1.12.20Wang Mingyu
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-23dbus,dbus-test: Move common parts to dbus.incOvidiu Panait
dbus and dbus-test share the same source code and base configuration options, so factor out the common parts into dbus.inc. This way we can eliminate the need to keep the two recipes in sync. When they are not properly in sync (e.g. when dbus recipe has extra patches/config options that are not duplicated in dbus-test) ptest testsuite will actually test a slightly different codebase. This is due to the fact that dbus-test does not run the testsuite against the system libdbus library, but instead it generates a local libdbus.so that needs to configured/compiled as close as possible to the system one. Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-12-01dbus: merge .bb and .incAndrew Shadura
The split is no longer necessary, and only makes it more complicated to do changes in external layers. Signed-off-by: Andrew Shadura <andrew.shadura@collabora.co.uk> Signed-off-by: Joshua Lock <joshua.lock@collabora.co.uk> Signed-off-by: Ross Burton <ross.burton@intel.com>
2015-07-16dbus-ptest: set INSANE_SKIP for build-depsRobert Yang
Skip the warning for dbus-ptest: dbus-1.8.18: dbus-ptest rdepends on dbus-test-ptest, but it isn't a build dependency? [build-deps] We add dbus-test to dbus' DEPENDS to fix the problem usually, but dbus-test DEPENDS on dbus, so we can't do that, use INSANE_SKIP to fix the problem. (From OE-Core rev: 7bf27752cdfcb83a951086d6e5609593c79437c3) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-05-12dbus: Fix do_install files outside ${D}Richard Purdie
do_install should not access the sysroot directly. Add missing ${D} reference. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-12-05dbus: don't use PTEST_ENABLED as recipe doesn't inherit ptestRoss Burton
As this recipe's ptest support is merely a shim to pull in dbus-test-ptest it doesn't inherit ptest. This means that PTEST_ENABLED isn't ever set, so check DISTRO_FEATURES directly. Signed-off-by: Ross Burton <ross.burton@intel.com>
2014-06-18dbus: don't override EXTRA_OECONFRobert Yang
We need use EXTRA_OECONF_append_class-native rather than EXTRA_OECONF_class-native. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-17dbus-native: dbus-native: do_compile failed on selinux.c on CentOS 5.10Robert Yang
Found this error on CentOS 5.10, other distros may also has this problem, I think that we can disable the selinux for dbus-native: bus/selinux.c:327: error: array type has incomplete element type [YOCTO #6374] Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-13dbus: fixed mode if systemd service fileEnrico Scholz
systemd complains with | Configuration file /lib/systemd/system/dbus.socket is marked executable. Please remove executable permission bits. Proceeding anyway. | Configuration file /lib/systemd/system/dbus.service is marked executable. Please remove executable permission bits. Proceeding anyway. else. Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-13dbus: disable usage of dbus-glib explicitlyEnrico Scholz
on rebuilds, dbus-native can detect an already existing dbus-glib and tries to link some tests against it. As files were unstaged and due to libtool insanities this fails with: | /usr/bin/grep: .../sysroots/x86_64-oe-linux/usr/lib/libdbus-1.la: No such file or directory | sed: can't read .../sysroots/x86_64-oe-linux/usr/lib/libdbus-1.la: No such file or directory | x86_64-oe-linux-libtool: link: `.../sysroots/x86_64-oe-linux/usr/lib/libdbus-1.la' is not a valid libtool archive | make[3]: *** [libdbus-testutils.la] Error 1 | make[3]: Leaving directory `.../work/x86_64-oe-linux/dbus-native/1.8.2-r0/build/test' Make builds predicatable (and working) by disabling usage of dbus-glib explicitly. Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-05-15dbus: Update to 1.8.2 versionChong Lu
Upgrade dbus to 1.8.2. Modify ptest suite to make it enabled on new version. If systemd in DISTRO_FEATURES, we expect to install dbus systemd unit files. Remove unneeded patches since it's included in new version. Remove unrecognized option: "--with-xml" [YOCTO #6092] Signed-off-by: Chong Lu <Chong.Lu@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2014-05-08ptest: Work from PTEST_ENABLED, not DISTRO_FEATURESRichard Purdie
Some classes of recipe disable ptest even though its in DISTRO_FEATURES (e.g. nativesdk). We shouldn't attempt to build ptest packages when its disabled. This replaces some DISTRO_FEATURE checks with PTEST_ENABLED checks instead. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2014-04-25dbus: fix a hard dependency about dbus-ptestChong Lu
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] Signed-off-by: Chong Lu <Chong.Lu@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2014-04-25Globally replace 'base_contains' calls with 'bb.utils.contains'Otavio Salvador
The base_contains is kept as a compatibility method and we ought to not use it in OE-Core so we can remove it from base metadata in future. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-25Globally replace oe.utils.contains to bb.utils.containsOtavio Salvador
BitBake has the exact same code as oe.utils.contains so there's no reason to duplicate it. We now rely on the bb.utils.contains code for metadata. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-04dbus: backport memory leak patch for error when listing servicesJonathan Liu
Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-04dbus: backport fix for bus activation under systemd sessionJonathan Liu
Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-28dbus: proper error handler should be given after send_negotiate_unix_fd failedRoy Li
Once send_negotiate_unix_fd failed, this failure will happen, since auth->guid_from_server has been set to some value before send_negotiate_unix_fd. send_negotiate_unix_fd failure will lead to this auth be handled by process_ok again, but this auth->guid_from_server is not zero. Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2014-02-06dbus: mask the dbus-1 init script if using systemdRoss Burton
If the image is built with both systemd and sysvinit there'll be a dbus-1 init script and a dbus service. This means systemd can try and launch both, which won't work. There's a systemctl mask to stop this in systemd-compat-units, but the logical place for it to be is in the dbus recipe so it can't be left out of an image. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-02Revert "Add missing RDEPENDS of initscripts-functions"Chen Qi
Instead of manually adding initscripts to RDEPENDS of each package, we should make it automatically handled by the update-rc.d.bbclass. This solution would have the benefit of backward compatibility. In other words, users need not modify their recipes. This reverts commit 16080a3485bd793edd66ed8361f1e8b86a9e19ea. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2014-01-14dbus: Remove stray semicolon from SRC_URIPhil Blundell
Signed-off-by: Phil Blundell <pb@pbcl.net> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2014-01-06Add missing RDEPENDS of initscripts-functionsChen Qi
Now that the initscripts-functions has been packaged separately, packages which may use the functions script should have a runtime dependency on it. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-02dbus: enable API entry point checksRoss Burton
We were disabling API entry point sanity checking which should only be done if the performance gain is prefereable to correctness. Instead don't disable checks explicitly as the default is enabled, allowing distributions to append --disable-checks if required. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-02dbus: use PACKAGECONFIG for X11 and systemdRoss Burton
Instead of several variables and overrides, use PACKAGECONFIG to respect X11 and systemd DISTRO_FEATURES. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-12-18dbus: upgrade to 1.6.18Ross Burton
Drop PR and INC_PR. Move patches into a non-versioned directory, and update dbus-ptest to match. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-12-05classes/recipes: More optimal DISTRO_FEATURES referencesRichard Purdie
Using the contains function results in more optimal sstate checksums resulting in better cache reuse as we as more consistent code. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-11-20dbus: Don't depend on dbus-ptest-ptest for the nativesdk-dbus packageDominik Holland
I also changed RDEPENDS_class-native to RDEPENDS_dbus_class-native now Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-10-04dbus: fix QA error building nativesdk-dbusPaul Eggleton
Fixes the following QA error: ERROR: QA Issue: nativesdk-dbus: Files/directories were installed but not shipped /run /run/dbus Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-07-31dbus: remove build host test in configure scriptJackie Huang
The dbus build tests the build host to detect what initscript environment it expects. Remove the test and set it to "redhat" unconditionally as the oe-core initscript has a redhat-style pid file path. Signed-off-by: Andy Ross <andy.ross@windriver.com Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
2013-07-12dbus: upgrade to 1.6.10Cristian Iorga
dbus-ptest also upgraded to 1.6.10 systemd-address.patch removed; included in upstream. Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-05-24dbus: remove /var/run from package as it is created on startupJonathan Liu
/var/run is a tmpfs that is created on startup. For sysvinit, /var/run/dbus is created by populate-volatiles.sh. For systemd, /var/run/dbus is created implicitly by dbus.socket when creating a listen stream socket at /var/run/dbus/system_bus_socket. Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-04-04dbus: set INHIBIT_UPDATERCD_BBCLASS without sysvinit in featuresMartin Jansa
* fixes udev configure in run-postinsts failing with: update-rc.d: /etc/init.d/dbus-1: file does not exist because dbus-udev is installed only with sysvinit in features but update-rc.d was always called from PN postinst Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-03-29dbus: Depend on dbus-ptest-ptestBjörn Stenberg
The dbus-ptest recipe doesn't produce an output package called dbus-ptest. What we are interested in is actually the dbus-ptest-ptest package. Signed-off-by: Björn Stenberg <bjst@enea.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-03-26dbus: explicitly disable systemd when no systemdRoss Burton
If systemd isn't a distro feature, explicitly disable the systemd unit path check as otherwise it will search the sysroot. Signed-off-by: Ross Burton <ross.burton@intel.com>
2013-02-28dbus: set correct address when using --address=systemd:Ross Burton
Patch taken from upstream 1.7 branch. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-02-19dbus: Drop x11 support from nativesdkOtavio Salvador
This avoid a libx11 dependency for nativesdk as it is not intended to be run in the toolchain. We also remove the dbus-launch as without x11 support it might case trouble for user Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-02-08dbus-native: Don't install dbus-launchRichard Purdie
dbus-launch from dbus-native has no X support so lets not install it in case the host has a more featured and useful version. It can interfere with running X utils with STAGING_BINDIR_NATIVE is in PATH and we don' use it anywhere. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-01-20dbus: respect systemd distro featureRoss Burton
Only configure for systemd if we are using systemd, and remove the dbus-systemd package by putting the service files into PN itself. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-01-16dbus: fix license segment md5sum boundaryMarko Lindqvist
Replaced incorrect "firstline" with correct "beginline" for telling where license segment in file begins. Old md5sum was calculated from the beginning of the file, not from beginning of the license segment. Signed-off-by: Marko Lindqvist <cazfi74@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-12-25Add ptest for dbus.Björn Stenberg
This patch adds a new recipe dbus-test to build and package the dbus test suite. The reason for a separate recipe is that the dbus test suite depends on dbus-glib, so it cannot be compiled at the same time as dbus. Signed-off-by: Björn Stenberg <bjst@enea.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-11-02recipes-core: replace virtclass-native(sdk) with class-native(sdk)Robert Yang
The overrides virtclass-native and virtclass-nativesdk are deprecated, which should be replaced by class-native and class-nativesdk. [YOCTO #3297] Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-09-27dbus: disable all X11 when nativeRoss Burton
Without --without-x the X11 detection would still go ahead and find the host X11 headers, which seems to cause problems at link time. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-24dbus: Remove hardcoded reference to /usr in System V startup scriptPhil Blundell
Use ${bindir} to locate the binary instead. Signed-off-by: Phil Blundell <pb@pbcl.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-08-31nativesdk: Switch to using nativesdk as a prefix, not a suffixRichard Purdie
As discussed on the mailing lists, using a suffix to package names is hard and has lead to many recipes having to do PKGSUFFIX games. Its looking extremely hard to scale nativesdk much further without hacking many recipes. By comparison, using a prefix like multilib does works much better and doesn't involve "hacking" as many recipes. This change converts nativesdk to use a prefix using the existing multilib infrastructure. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-08-02dbus: Ensure dbus-nativesdk doesn't RPROVIDE dbus-x11Richard Purdie
dbus-x11 should not RPROVIDE dbus-x11 as this is incorrect and confuses builds. This fixes the nativesdk case. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-07-31dbus: include dbus-launch in the main dbus packageRadu Moisan
Followed suggestions from Bugz 2261: 2) make the virtual/libx11 DEPENDS conditional based on the x11 distro feature. This makes the build dependencies reflect the feature list. 3) remove dbus-x11, meaning that dbus-launch with its potential X11 dependency is now back in dbus where is belongs. 4) make dbus provide dbus-x11, for compatibility. Fixes [Yocto #2261] Signed-off-by: Radu Moisan <radu.moisan@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-22dbus: use systemd_unitdirAndreas Müller
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-02-23dbus: Remove empty ${lindir}dbus-1.0/test directory as we don't build testsAndrei Gherzan
This empty directory generates a QA warning of unshippped files/dirs. Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2012-01-09dbus: change permissions of dbus-daemon-launch-helper to 4755Steve Sakoman
With current permissions of 4754 on systemd systems various services will fail to activate with "helpful" error messages of the type: 2000-01-01T00:00:25+00:00 omap3-multi dbus[178]: [system] Activated service 'org.freedesktop.nm_dispatcher' failed: Failed to execute program /usr/libexec/dbus-daemon-launch-helper: Success Signed-off-by: Steve Sakoman <steve@sakoman.com>
2011-11-08dbus: fix install for virtclass-nativesdkEric Bénard
* 46e6c3fa8034b12d178d605f3f5d7efe69671a13 changed do_install which now fails for nativesdk (chown messagebus leads to no such user) * tested by building meta-toolchain-qte and running the generated sdk Signed-off-by: Eric Bénard <eric@eukrea.com> Acked-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>