mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 07:57:27 +00:00
f0c767407d
work arounds for: meta-oe/meta-oe/recipes-devtools/nodejs/nodejs_20.12.2.bb:do_compile meta-oe/meta-oe/recipes-support/pidgin/pidgin_2.14.2.bb:do_compile meta-oe/meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb:do_compile meta-oe/meta-oe/recipes-extended/rrdtool/rrdtool_1.8.0.bb:do_compile meta-oe/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.4.bb:do_compile meta-oe/meta-python/recipes-devtools/python/python3-gevent_24.2.1.bb:do_compile meta-oe/meta-oe/recipes-support/avro/avro-c++_1.11.3.bb:do_compile meta-oe/meta-python/recipes-devtools/python/python3-h5py_3.10.0.bb:do_compile meta-oe/meta-oe/recipes-multimedia/cdrkit/cdrkit_1.1.11.bb:do_compile meta-oe/meta-networking/recipes-connectivity/openthread/ot-br-posix_git.bb:do_compile meta-oe/meta-oe/recipes-devtools/heaptrack/heaptrack_1.2.0.bb:do_configure meta-oe/meta-oe/recipes-support/avro/avro-c_1.11.3.bb:do_compile meta-oe/meta-oe/recipes-core/usleep/usleep_1.2.bb:do_compile meta-oe/meta-networking/recipes-protocols/openflow/openflow_git.bb:do_compile meta-oe/meta-oe/recipes-extended/sblim-sfcc/sblim-sfcc_2.2.8.bb:do_compile meta-oe/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb:do_compile meta-oe/meta-oe/recipes-kernel/ipmitool/ipmitool_1.8.19.bb:do_compile meta-oe/meta-networking/recipes-support/ssmping/ssmping_0.9.1.bb:do_compile meta-oe/meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_10.10.1.bb:do_compile meta-oe/meta-oe/recipes-extended/zsync/zsync-curl_git.bb:do_compile meta-oe/meta-python/recipes-devtools/python/python3-kivy_2.3.0.bb:do_compile meta-oe/meta-oe/recipes-support/openct/openct_0.6.20.bb:do_compile meta-oe/meta-oe/recipes-benchmark/dhrystone/dhrystone_2.1.bb:do_compile meta-oe/meta-networking/recipes-daemons/ncftp/ncftp_3.2.7.bb:do_compile meta-oe/meta-oe/recipes-support/daemontools/daemontools_0.76.bb:do_compile meta-oe/meta-oe/recipes-devtools/libgee/libgee_0.20.6.bb:do_compile meta-oe/meta-oe/recipes-devtools/mcpp/mcpp_2.7.2.bb:do_compile meta-oe/meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb:do_compile meta-oe/meta-networking/recipes-connectivity/dibbler/dibbler_git.bb:do_compile meta-oe/meta-oe/recipes-devtools/glade/glade_3.22.2.bb:do_compile http://errors.yoctoproject.org/Errors/Build/183124/ Signed-off-by: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
142 lines
4.7 KiB
BlitzBasic
142 lines
4.7 KiB
BlitzBasic
SUMMARY = "High performance data logging and graphing system for time series data"
|
|
HOMEPAGE = "http://oss.oetiker.ch/rrdtool/"
|
|
|
|
LICENSE = "GPL-2.0-only"
|
|
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=39df84cfd8a5e18bf988f277f7946676"
|
|
|
|
DEPENDS = "libpng zlib glib-2.0 libxml2 groff-native python3-setuptools-native"
|
|
|
|
SRCREV = "3af04acd38bbc61bbdcdd931dcf234c971aa5336"
|
|
PV = "1.8.0"
|
|
|
|
SRC_URI = "\
|
|
git://github.com/oetiker/rrdtool-1.x.git;protocol=https;branch=master \
|
|
file://b76e3c578f1e9f582e9c28f50d82b1f569602075.patch \
|
|
"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
inherit cpan autotools-brokensep gettext pkgconfig python3native python3-dir systemd
|
|
|
|
BBCLASSEXTEND = "native"
|
|
|
|
SYSTEMD_PACKAGES = "rrdcached"
|
|
SYSTEMD_SERVICE:rrdcached = "rrdcached.socket rrdcached.service"
|
|
|
|
EXTRA_AUTORECONF = "-I m4 --exclude=autopoint"
|
|
|
|
PACKAGECONFIG ??= "perl graph ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
|
|
|
|
PACKAGECONFIG[python] = "--enable-python=yes \
|
|
am_cv_python_pythondir=${STAGING_LIBDIR}/python${PYTHON_BASEVERSION}/site-packages \
|
|
am_cv_python_pyexecdir=${STAGING_LIBDIR}/python${PYTHON_BASEVERSION}/site-packages,\
|
|
--disable-python,python,"
|
|
|
|
PACKAGECONFIG[perl] = \
|
|
"--enable-perl=yes --with-perl-options='INSTALLDIRS="vendor" CCFLAGS="${CFLAGS}" NO_PACKLIST=1 NO_PERLLOCAL=1' \
|
|
ac_cv_path_PERL_CC='${CC}', \
|
|
--disable-perl,perl,"
|
|
|
|
PACKAGECONFIG[dbi] = "--enable-libdbi,--disable-libdbi,libdbi"
|
|
|
|
PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,--without-systemdsystemunitdir,systemd,"
|
|
|
|
PACKAGECONFIG[graph] = "--enable-rrd_graph,--disable-rrd_graph,pango cairo"
|
|
|
|
EXTRA_OECONF = " \
|
|
--enable-shared \
|
|
--disable-libwrap \
|
|
--program-prefix='' \
|
|
rd_cv_ieee_works=yes \
|
|
--disable-ruby \
|
|
--disable-lua \
|
|
--disable-tcl \
|
|
--disable-rpath \
|
|
--enable-nls=${USE_NLS} \
|
|
--disable-docs \
|
|
"
|
|
|
|
export STAGING_LIBDIR
|
|
export STAGING_INCDIR
|
|
|
|
# emulate cpan_do_configure
|
|
EXTRA_OEMAKE = ' CC="${CC} -Wno-incompatible-pointer-types" PERL5LIB="${PERL_ARCHLIB}" '
|
|
# Avoid do_configure error on some hosts
|
|
|
|
do_configure() {
|
|
unset PERLHOSTLIB
|
|
#fix the pkglib problem with newer automake
|
|
#perl
|
|
sed -i -e "s|-Wl,--rpath -Wl,\$rp||g" \
|
|
${S}/bindings/perl-shared/Makefile.PL
|
|
|
|
#python
|
|
sed -i -e '/PYTHON_INCLUDES="-I${/c \
|
|
PYTHON_INCLUDES="-I=/usr/include/python${PYTHON_BASEVERSION}"' \
|
|
${S}/m4/acinclude.m4
|
|
#remove the useless RPATH from the rrdtool.so
|
|
sed -i -e 's|LD_RUN_PATH=$(libdir)||g' ${S}/bindings/Makefile.am
|
|
|
|
autotools_do_configure
|
|
|
|
#modify python sitepkg
|
|
#remove the dependency of perl-shared:Makefile
|
|
#or perl-shared/Makefile will be regenerated
|
|
#if any code touch bindings/Makefile after below perl bindings code
|
|
sed -i -e "s:python/setup.py install:python/setup.py install \
|
|
--install-lib=${PYTHON_SITEPACKAGES_DIR}:" \
|
|
-e "s:perl-shared/Makefile.PL Makefile:perl-shared/Makefile.PL:" \
|
|
${B}/bindings/Makefile
|
|
|
|
#redo the perl bindings
|
|
(
|
|
cd ${S}/bindings/perl-shared;
|
|
perl Makefile.PL INSTALLDIRS="vendor" INSTALLPRIVLIB="abc";
|
|
|
|
cd ../../bindings/perl-piped;
|
|
perl Makefile.PL INSTALLDIRS="vendor";
|
|
)
|
|
|
|
#change the interpreter in file
|
|
sed -i -e "s|^PERL = ${STAGING_BINDIR_NATIVE}/.*|PERL = /usr/bin/perl|g" \
|
|
${B}/examples/Makefile
|
|
sed -i -e "s|${STAGING_BINDIR_NATIVE}/perl-native/perl|/usr/bin/perl|g" \
|
|
${B}/examples/*.pl
|
|
}
|
|
|
|
do_install:append:class-native() {
|
|
# Replace the shebang line in cgi-demo.cgi
|
|
sed -i '1s|^.*$|#!/usr/bin/env rrdcgi|' ${D}${datadir}/rrdtool/examples/cgi-demo.cgi
|
|
}
|
|
|
|
PACKAGES =+ "${PN}-perl ${PN}-python"
|
|
PACKAGES =+ "rrdcached"
|
|
|
|
DESCRIPTION:rrdcached = \
|
|
"The rrdcached package contains the data caching daemon for RRDtool."
|
|
|
|
FILES:rrdcached = "${bindir}/rrdcached \
|
|
${systemd_unitdir}/system/rrdcached.service \
|
|
${systemd_unitdir}/system/rrdcached.socket"
|
|
|
|
FILES:${PN}-doc += "${datadir}/rrdtool/examples"
|
|
|
|
DESCRIPTION:${PN}-perl = \
|
|
"The ${PN}-perl package includes RRDtool bindings for perl."
|
|
FILES:${PN}-perl = "${libdir}/perl/vendor_perl/*/*.pm \
|
|
${libdir}/perl/vendor_perl/*/auto/RRDs/RRDs.*"
|
|
RDEPENDS:${PN}-perl = "perl perl-module-lib perl-module-getopt-long perl-module-time-hires \
|
|
perl-module-io-file perl-module-ipc-open2 perl-module-io-socket"
|
|
|
|
DESCRIPTION:${PN}-python = \
|
|
"The ${PN}-python package includes RRDtool bindings for python."
|
|
FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}/*"
|
|
RDEPENDS:${PN}-python = "python3"
|
|
|
|
FILES:${PN}-dbg += "${libdir}/perl/vendor_perl/*/auto/RRDs/.debug \
|
|
${PYTHON_SITEPACKAGES_DIR}/.debug"
|
|
|
|
# http://errors.yoctoproject.org/Errors/Details/766911/
|
|
# rrd_tune.c:239:35: error: passing argument 3 of 'optparse_init' from incompatible pointer type [-Wincompatible-pointer-types]
|
|
CFLAGS += "-Wno-error=incompatible-pointer-types"
|