diff options
| author | Mingli Yu <mingli.yu@windriver.com> | 2019-04-25 02:33:56 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2019-04-29 10:13:56 -0700 |
| commit | 7392f986b69d80a66322149d024f24347a273076 (patch) | |
| tree | 0c83643952dfaf9a32ec6394c63c84a1c0e33758 /meta-oe/recipes-extended/rrdtool/rrdtool_1.7.0.bb | |
| parent | 6294e0e6bc55d71f2fafab8e90924bd2a34a061c (diff) | |
| download | meta-openembedded-7392f986b69d80a66322149d024f24347a273076.tar.gz | |
rrdtool: Upgrade to 1.7.1
Backport 3 patches to fix below error:
ERROR: rrdtool-1.7.1-r0 do_package: SYSTEMD_SERVICE_rrdcached value rrdcached.socket does not exist
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/rrdtool/rrdtool_1.7.0.bb')
| -rw-r--r-- | meta-oe/recipes-extended/rrdtool/rrdtool_1.7.0.bb | 129 |
1 files changed, 0 insertions, 129 deletions
diff --git a/meta-oe/recipes-extended/rrdtool/rrdtool_1.7.0.bb b/meta-oe/recipes-extended/rrdtool/rrdtool_1.7.0.bb deleted file mode 100644 index 4a6c446690..0000000000 --- a/meta-oe/recipes-extended/rrdtool/rrdtool_1.7.0.bb +++ /dev/null | |||
| @@ -1,129 +0,0 @@ | |||
| 1 | SUMMARY = "High performance data logging and graphing system for time series data" | ||
| 2 | HOMEPAGE = "http://oss.oetiker.ch/rrdtool/" | ||
| 3 | |||
| 4 | LICENSE = "GPLv2" | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=3349111ed0533471494beec99715bc9d" | ||
| 6 | |||
| 7 | DEPENDS = "libpng zlib cairo pango glib-2.0 libxml2 groff-native python-setuptools-native" | ||
| 8 | |||
| 9 | SRCREV = "bfc82d5242855628b826018479df00e0ec4e8360" | ||
| 10 | PV = "1.7.0" | ||
| 11 | |||
| 12 | SRC_URI = "\ | ||
| 13 | git://github.com/oetiker/rrdtool-1.x.git;branch=master;protocol=http; \ | ||
| 14 | " | ||
| 15 | |||
| 16 | S = "${WORKDIR}/git" | ||
| 17 | |||
| 18 | inherit cpan autotools-brokensep gettext pythonnative python-dir systemd | ||
| 19 | |||
| 20 | BBCLASSEXTEND = "native" | ||
| 21 | |||
| 22 | SYSTEMD_PACKAGES = "rrdcached" | ||
| 23 | SYSTEMD_SERVICE_rrdcached = "rrdcached.socket rrdcached.service" | ||
| 24 | |||
| 25 | EXTRA_AUTORECONF = "-I m4 --exclude=autopoint" | ||
| 26 | |||
| 27 | PACKAGECONFIG ??= "python perl ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" | ||
| 28 | |||
| 29 | PACKAGECONFIG[python] = "--enable-python=yes \ | ||
| 30 | am_cv_python_pythondir=${STAGING_LIBDIR}/python${PYTHON_BASEVERSION}/site-packages \ | ||
| 31 | am_cv_python_pyexecdir=${STAGING_LIBDIR}/python${PYTHON_BASEVERSION}/site-packages,\ | ||
| 32 | --disable-python,python," | ||
| 33 | |||
| 34 | PACKAGECONFIG[perl] = \ | ||
| 35 | "--enable-perl=yes --with-perl-options='INSTALLDIRS="vendor"' \ | ||
| 36 | ac_cv_path_PERL_CC='${CC}', \ | ||
| 37 | --disable-perl,perl," | ||
| 38 | |||
| 39 | PACKAGECONFIG[dbi] = "--enable-libdbi,--disable-libdbi,libdbi" | ||
| 40 | |||
| 41 | PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,--without-systemdsystemunitdir,systemd," | ||
| 42 | |||
| 43 | EXTRA_OECONF = " \ | ||
| 44 | --enable-shared \ | ||
| 45 | --disable-libwrap \ | ||
| 46 | --program-prefix='' \ | ||
| 47 | rd_cv_ieee_works=yes \ | ||
| 48 | --disable-ruby \ | ||
| 49 | --disable-lua \ | ||
| 50 | --disable-tcl \ | ||
| 51 | --disable-rpath \ | ||
| 52 | --enable-nls=${USE_NLS} \ | ||
| 53 | --disable-docs \ | ||
| 54 | " | ||
| 55 | |||
| 56 | export STAGING_LIBDIR | ||
| 57 | export STAGING_INCDIR | ||
| 58 | |||
| 59 | # emulate cpan_do_configure | ||
| 60 | EXTRA_OEMAKE = ' PERL5LIB="${PERL_ARCHLIB}" ' | ||
| 61 | # Avoid do_configure error on some hosts | ||
| 62 | |||
| 63 | do_configure() { | ||
| 64 | unset PERLHOSTLIB | ||
| 65 | #fix the pkglib problem with newer automake | ||
| 66 | #perl | ||
| 67 | sed -i -e "s|-Wl,--rpath -Wl,\$rp||g" \ | ||
| 68 | ${S}/bindings/perl-shared/Makefile.PL | ||
| 69 | |||
| 70 | #python | ||
| 71 | sed -i -e '/PYTHON_INCLUDES="-I${/c \ | ||
| 72 | PYTHON_INCLUDES="-I=/usr/include/python${PYTHON_BASEVERSION}"' \ | ||
| 73 | ${S}/m4/acinclude.m4 | ||
| 74 | #remove the useless RPATH from the rrdtool.so | ||
| 75 | sed -i -e 's|LD_RUN_PATH=$(libdir)||g' ${S}/bindings/Makefile.am | ||
| 76 | |||
| 77 | autotools_do_configure | ||
| 78 | |||
| 79 | #modify python sitepkg | ||
| 80 | #remove the dependency of perl-shared:Makefile | ||
| 81 | #or perl-shared/Makefile will be regenerated | ||
| 82 | #if any code touch bindings/Makefile after below perl bindings code | ||
| 83 | sed -i -e "s:python/setup.py install:python/setup.py install \ | ||
| 84 | --install-lib=${PYTHON_SITEPACKAGES_DIR}:" \ | ||
| 85 | -e "s:perl-shared/Makefile.PL Makefile:perl-shared/Makefile.PL:" \ | ||
| 86 | ${B}/bindings/Makefile | ||
| 87 | |||
| 88 | #redo the perl bindings | ||
| 89 | ( | ||
| 90 | cd ${S}/bindings/perl-shared; | ||
| 91 | perl Makefile.PL INSTALLDIRS="vendor" INSTALLPRIVLIB="abc"; | ||
| 92 | |||
| 93 | cd ../../bindings/perl-piped; | ||
| 94 | perl Makefile.PL INSTALLDIRS="vendor"; | ||
| 95 | ) | ||
| 96 | |||
| 97 | #change the interpreter in file | ||
| 98 | sed -i -e "s|^PERL = ${STAGING_BINDIR_NATIVE}/.*|PERL = /usr/bin/perl|g" \ | ||
| 99 | ${B}/examples/Makefile | ||
| 100 | sed -i -e "s|${STAGING_BINDIR_NATIVE}/perl-native/perl|/usr/bin/perl|g" \ | ||
| 101 | ${B}/examples/*.pl | ||
| 102 | } | ||
| 103 | |||
| 104 | PACKAGES =+ "${PN}-perl ${PN}-python" | ||
| 105 | PACKAGES =+ "rrdcached" | ||
| 106 | |||
| 107 | DESCRIPTION_rrdcached = \ | ||
| 108 | "The rrdcached package contains the data caching daemon for RRDtool." | ||
| 109 | |||
| 110 | FILES_rrdcached = "${bindir}/rrdcached \ | ||
| 111 | ${systemd_unitdir}/system/rrdcached.service \ | ||
| 112 | ${systemd_unitdir}/system/rrdcached.socket" | ||
| 113 | |||
| 114 | FILES_${PN}-doc += "${datadir}/rrdtool/examples" | ||
| 115 | |||
| 116 | DESCRIPTION_${PN}-perl = \ | ||
| 117 | "The ${PN}-perl package includes RRDtool bindings for perl." | ||
| 118 | FILES_${PN}-perl = "${libdir}/perl/vendor_perl/*/*.pm \ | ||
| 119 | ${libdir}/perl/vendor_perl/*/auto/RRDs/RRDs.*" | ||
| 120 | RDEPENDS_${PN}-perl = "perl perl-module-lib perl-module-getopt-long perl-module-time-hires \ | ||
| 121 | perl-module-io-file perl-module-ipc-open2 perl-module-io-socket" | ||
| 122 | |||
| 123 | DESCRIPTION_${PN}-python = \ | ||
| 124 | "The ${PN}-python package includes RRDtool bindings for python." | ||
| 125 | FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" | ||
| 126 | RDEPENDS_${PN}-python = "python" | ||
| 127 | |||
| 128 | FILES_${PN}-dbg += "${libdir}/perl/vendor_perl/*/auto/RRDs/.debug \ | ||
| 129 | ${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug" | ||
