Hello,

I want to create a recipe for a tool called SmokePing.

My recipe so far looks like this:
SUMMARY = "SmokePing keeps track of your network latency"
HOMEPAGE = "oss.oetiker.ch/smokeping"
SECTION = "console/network"
LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=09d77789fe32be35acde9637a5ee39b1"

SRC_URI = "http://oss.oetiker.ch/smokeping/pub/smokeping-2.6.11.tar.gz \
           file://0001-Hardcoded-version-number.patch \
           "
SRC_URI[md5sum] = "702392f5f3599f7eb1cc47eb2d192cb9"
SRC_URI[sha256sum] = "f2b3c386e95a74af2b1e7aec6410d0a58852339f00e9963f3c770cfd85ba30dd"

S = "${WORKDIR}/smokeping-${PV}"

RDEPENDS_${PN} = "fping"
DEPENDS = "rrdtool perl"

inherit autotools

With the following patch file:
Subject: [PATCH] Hardcoded version number

---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 7b7cd51..3f95e86 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,7 +17,7 @@
 #


-AC_INIT([smokeping],m4_esyscmd([tr -d '\n' < VERSION]),[t...@oetiker.ch])
+AC_INIT([smokeping],[2.6.11],[t...@oetiker.ch])
 AC_PREREQ([2.59])
 AC_CONFIG_AUX_DIR(conftools)

--
1.9.1


Trying to build the recipe like this yields the following error:

checking checking for perl module 'RRDs'... Can't locate RRDs.pm in @INC (you may need to install the RRDs module) (@INC contains: /usr/thirdparty/lib/perl5 /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at -e line 1.
| BEGIN failed--compilation aborted at -e line 1.
| Failed
|
| ** Aborting Configure ******************************

From the error message I guess that the perl library for RRD is missing in sysroot. The library is built as part of the rrdtool recipe, but it is moved to a separate package called "rrdtool-perl". How can I tell bitbake to install this package before building my recipe?

Kind regards,
Christian

--
Christian Fuchs, M.Sc. - Software-Developer
fos4X GmbH - www.fos4x.de - T +49 89 999 542 15 - F +49 89 999 542 01
Thalkirchner Str. 210, Geb. 6 - D-81371 München; AG München HRB 189 218
Managing Directors: Dr. Lars Hoffmann, Dr. Mathias Müller

--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to