rrdtool: fix useless-rpath QA issue
PATCH v2 1/4 rrdtool: fix useless-rpath QA issue
When building rrdtool, we would meet the following error.
ERROR: QA Issue: rrdtool-python: work/core2-64-poky-linux/rrdtool /1.5.4-r0/packages-split/rrdtool-python/usr/lib/python2.7/site-packages /rrdtool.so contains probably-redundant RPATH /usr/lib [useless-rpaths]
Fix this issue by removing 'LD_RUN_PATH=$(libdir)' when compiling rrdtool.so.
As we use '--disable-rpath' in EXTRA_OECONF, we don't need to the to remove '--rpath=$(libdir)' in Makefile.am.
--- meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb +2 -2
@@ -70,8 +70,8 @@ do_configure() { sed -i -e '/PYTHON_INCLUDES="-I${/c \ PYTHON_INCLUDES="-I=/usr/include/python${PYTHON_BASEVERSION}"' \ ${S}/m4/acinclude.m4 - #remove the hardcoded $(libdir) rpath - sed -i -e 's|--rpath=$(libdir)||g' ${S}/bindings/Makefile.am + #remove the useless RPATH from the rrdtool.so + sed -i -e 's|LD_RUN_PATH=$(libdir)||g' ${S}/bindings/Makefile.am autotools_do_configure
Signature · 1 line
1.9.1
PATCH v2 2/4 rrdtool: fix file locations
When we build rrdtool, we would meet the following QA issue.
QA Issue: /usr/share/rrdtool/examples/stripes.py_rrdtool-perl contained in package rrdtool-perl requires /usr/bin/python, but no providers found in its RDEPENDS [file-rdeps]
The problem is that /usr/share/rrdtool/examples not only contain perl examples, but also contains python examples.
Besides, ${datadir}/examples don't exist, fix it to be ${datadir}/rrdtool/examples.
--- meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb +2 -2
@@ -102,11 +102,11 @@ do_configure() { PACKAGES =+ "${PN}-perl ${PN}-python" -FILES_${PN}-doc += "${datadir}/examples" +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 ${datadir}/rrdtool/examples \ +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"
Signature · 1 line
1.9.1
PATCH v2 3/4 rrdtool: add systemd support and fix QA issue
In reply to Chen QiWhen building rrdtool in a building directory where systemd is configured to be the init system, we would meet the following error.
ERROR: QA Issue: rrdtool: Files/directories were installed but not shipped in any package:
/lib
/lib/systemd
/lib/systemd/system
/lib/systemd/system/rrdcached.socket /lib/systemd/system/rrdcached.service
Fix this problem by adding systemd support to the rrdtool recipe.
--- meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb +6 -2
@@ -15,11 +15,13 @@ SRC_URI = "\ S = "${WORKDIR}/git" -inherit autotools-brokensep gettext pythonnative perlnative python-dir cpan-base +inherit autotools-brokensep gettext pythonnative perlnative python-dir cpan-base systemd + +SYSTEMD_SERVICE_${PN} = "rrdcached.socket rrdcached.service" EXTRA_AUTORECONF = "-I m4" -PACKAGECONFIG ??= "python perl" +PACKAGECONFIG ??= "python perl ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" PACKAGECONFIG[python] = "--enable-python=yes \ am_cv_python_pythondir=${STAGING_LIBDIR}/python${PYTHON_BASEVERSION}/site-packages \
@@ -33,6 +35,8 @@ ac_cv_path_PERL_CC='${CC}', \ PACKAGECONFIG[dbi] = "--enable-libdbi,--disable-libdbi,libdbi" +PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,--without-systemdsystemunitdir,systemd," + EXTRA_OECONF = " \ --enable-shared \ --disable-libwrap \
Signature · 1 line
1.9.1
PATCH v2 4/4 rrdtool: fix multilib problem
In reply to Chen QiWhen building rrdtool with multilib enabled, we would meet the following error.
ERROR: QA Issue: rrdtool: Files/directories were installed but not shipped in any package:
/usr/lib
/usr/lib/python2.7
/usr/lib/python2.7/site-packages /usr/lib/python2.7/site-packages/rrdtool.so
....
Fix this problem by using nonarch_libdir instead of libdir.
--- meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb +2 -2
@@ -117,8 +117,8 @@ RDEPENDS_${PN}-perl = "perl perl-module-lib perl-module-getopt-long perl-module- DESCRIPTION_${PN}-python = \ "The ${PN}-python package includes RRDtool bindings for python." -FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" +FILES_${PN}-python = "${nonarch_libdir}/python${PYTHON_BASEVERSION}/site-packages/*" RDEPENDS_${PN}-python = "python" FILES_${PN}-dbg += "${libdir}/perl/vendor_perl/*/auto/RRDs/.debug \ - ${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug" + ${nonarch_libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug"
Signature · 1 line
1.9.1