22 Commits

Author SHA1 Message Date
mingli.yu@windriver.com
4756aea459 collectd: replace deprecated readdir_r() with readdir()
* Replace the usage of readdir_r() with readdir()
  to address a compilation error under glibc 2.24
  due to the deprecation of readdir_r

| ../../collectd-5.5.0/src/vserver.c: In function 'vserver_read':
| ../../collectd-5.5.0/src/vserver.c:167:3: error: 'readdir_r' is deprecated [-Werror=deprecated-declarations]
|    status = readdir_r (proc, (struct dirent *) dirent_buffer, &dent);
|    ^~~~~~
| In file included from /buildarea4/myu2/build/prj_test_20160722/bitbake_build/tmp/sysroots/qemux86/usr/include/features.h:368:0,
|                  from /buildarea4/myu2/build/prj_test_20160722/bitbake_build/tmp/sysroots/qemux86/usr/include/stdio.h:27,
|                  from ../../collectd-5.5.0/src/daemon/collectd.h:34,
|                  from ../../collectd-5.5.0/src/vserver.c:29:
| /buildarea4/myu2/build/prj_test_20160722/bitbake_build/tmp/sysroots/qemux86/usr/include/dirent.h:189:12: note: declared here
|  extern int __REDIRECT (readdir_r,
|             ^

  [1]https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=7584a3f96de88d5eefe5d6c634515278cbfbf052;hp=8d9c92017d85f23ba6a2b3614b2f2bcf1820d6f0

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 9bf3e362e769e5d600fbb621ac0c1edd89529acf)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-08-16 10:29:41 -07:00
Roy Li
61b3dfda7b collectd: fix a floating dependence on openjdk
1. fix a floating dependence on openjdk
2. fix the host contamination, since the default value of java home
is /usr/lib/jvm:
   warning: library search path "/usr/lib/jvm/jre-1.7.0/lib/amd64/server" is unsafe for cross-compilation

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-09-23 15:37:18 +02:00
Roy Li
9b3b58bb3a collectd: fix a floating dependence on openldap
Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-09-23 15:34:26 +02:00
Roy Li
1b4e4f455f collectd: fix a floating dependence on libvirt
Even though the PACKAGECONFIG of libvirt is used to fix the floating
dependence, but enable-libvirt/disable-libvirt become useless after
collectd upgrade, and libvirt is checked unconditionally, and lead to
a floating dependence on libvirt.

check if libvirt is available only when a user wants to use libvirt
to fix this issue

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-09-08 16:22:49 +02:00
Roy Li
ec6ac82b3d collectd: upgrade to 5.5.0
1. remove two patch glibc-2.20-compatiblity.patch and
0001-netlink-ensure-size_t-portability-in-DEBUG-statement.patch, which
have been merged into
2. update collectd-version.patch
3. redefine the collectd dependence
4. update the license, lots of components have been relicensed to the MIT
license, and The majority of plugins is licensed either under the "MIT License"
or the "GNU General Public License"
4. update the checksum

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-08-24 13:58:17 +02:00
Otavio Salvador
bddcc6b45f collectd: Add PACKAGECONFIG for mysql support
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-07-16 21:09:08 +02:00
Armin Kuster
ac1cc7a52a collectd: fix world build issue
ERROR: Nothing PROVIDES 'libmnl' (but /home/akuster/oss/clean/meta-openembedded/meta-oe/recipes-extended/collectd/collectd_5.4.1.bb DEPENDS on or otherwise requires it). Close matches:
  libnl
  libyaml
  libxml2
ERROR: Required build target 'collectd' has no buildable providers.
Missing or unbuildable dependency chain was: ['collectd', 'libmnl']

remove libmnl from depends list to PACKAGECONFIG libmnl is in meta-networking.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2015-05-11 10:28:23 +02:00
Khem Raj
95b064c2bb collectd: Backport fix build with newer gcc
on mips we get the errors of type mismatch

Change-Id: Ib7b3bd243417d1ba77e8167daf761fd4a2fc2e64
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-03-03 08:36:00 +01:00
Wenzong Fan
5fbe2ac4e8 collectd: add PACKAGECONFIG for libvirt, libesmtp
Add PACKAGECONFIG for libvirt, libesmtp to fix below warnings:

WARN: collectd: collectd rdepends on libvirt, but it isn't a build dependency?
WARN: collectd: collectd rdepends on libcrypto, but it isn't a build dependency?
WARN: collectd: collectd rdepends on libesmtp, but it isn't a build dependency?
WARN: collectd: collectd rdepends on libssl, but it isn't a build dependency?

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-12-31 16:35:35 +01:00
Chong.Lu@windriver.com
f25843b7fa collectd: add systemd unit file
Add systemd unit file for collectd.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-09-26 05:41:53 +02:00
Khem Raj
06e7054b9a collectd: Upgrade to 5.4.1 and fix with glibc 2.20
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-09-26 05:41:53 +02:00
Maciej Borzecki
f91fbf1bda collectd: make pinba support a selectable feature
Pinba support requires protobuf-c that is currently only available in
meta-virtualization layer. Make this a selectable feature.

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-08-21 21:35:06 +02:00
Maciej Borzecki
1bb753b67a collectd: make amqp plugin a selectable feature
The version of rabbitmq-c that collectd is compatible with, is older
than currently available 0.5.0. This results in build errors
triggerred by API deprecation at rabbitmq-c side. Make amqp
plugin a selectable feature, disabled by default.

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-08-15 17:07:03 +02:00
Richard Purdie
36d57b9234 recipes: add missing pkgconfig class inherits
* These recipes all use pkg-config in some way but were missing
  dependencies on the tool, this patch adds them.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-06-21 13:06:13 +02:00
Jackie Huang
ec5a19bf88 collectd: add threshold.so, load.so and disk.so in PRIVATE_LIBS
to avoid the folloing warnings:
log.world.20140418_190059.log/bitbake.log:WARNING: gegl-0.2.0 was registered as shlib provider for load.so, changing it to collectd-5.2.2 because it was built later
log.world.20140418_190059.log/bitbake.log:WARNING:
libgphoto2-camlibs-2.4.11 was registered as shlib provider for disk.so, changing it to collectd-5.2.2 because it was built later
log.world.20140418_190059.log/bitbake.log:WARNING: gegl-0.2.0 was registered as shlib provider for threshold.so, changing it to
collectd-5.2.2 because it was built later

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-05-03 20:45:05 +02:00
Ming Liu
09a7d20890 collectd: explicitly enable/disable libsensors support
To avoid an implicit build result.

Signed-off-by: Ming Liu <ming.liu@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-04-20 11:10:13 +02:00
Wenzong Fan
f0cde44d55 collectd: fix init status
Fix init status to get it works with 'service --status-all'.

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-04-20 11:10:13 +02:00
Wenzong Fan
438d363331 collectd: enable/disable libpq explicitly
If '--with-libpq' is not included in configure options, the configure
script will assume 'with-libpq=yes' and try to figure below variables
out with 'pg_config':

    with_libpq_includedir, with_libpq_libdir

This causes configure QA errors on some hosts that have 'pg_config'
installed (which from postgresql-devel):

* ERROR: This autoconf log indicates errors, it looked at host include
  and/or library paths while determining system capabilities.

Anyways the target package should not depend on any host headers/libs,
we should enable/disable the libpq support explicitly according to if
the postgresql feature was enabled.

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-04-20 11:10:13 +02:00
Martin Jansa
9531791aee collectd: Add PACKAGECONFIG for undeterministic dependencies
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-09-17 19:18:21 +02:00
Jonathan Liu
9ea2df5823 collectd: remove empty /var/run directory
The /var/run directory is already created by base-files.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-07-08 10:35:58 +02:00
Paul Eggleton
b1095d11bd collectd: fix build failure with libnotify in sysroot
If libnotify is in the sysroot, collectd will try to use it and then
fail at do_compile because gtk/gtk.h can't be found. Since this is
functionality that's not likely to be needed in the embedded context as
far as collectd goes, just disable it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-05-21 12:45:47 +02:00
Paul Eggleton
2fc71a181e collectd: add recipe for 5.2.2
Based on initial version by Koen Kooi <koen@beagleboard.org>. Initscript
borrowed from Debian with some tweaks.

Note that since collectd uses libltdl, building this successfully
required OE-Core commit db84eaf851b22b262d9dc48eb55bd5224a00fdd2 or else
you get an error about "config/compile" being missing.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-04-26 10:00:32 +02:00