* Adding dependency for rrdtool-perl to recipe
@ 2016-07-13 7:37 Christian Fuchs
2016-07-13 9:39 ` Burton, Ross
0 siblings, 1 reply; 3+ messages in thread
From: Christian Fuchs @ 2016-07-13 7:37 UTC (permalink / raw)
To: yocto
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]),[tobi@oetiker.ch])
> +AC_INIT([smokeping],[2.6.11],[tobi@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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Adding dependency for rrdtool-perl to recipe
2016-07-13 7:37 Adding dependency for rrdtool-perl to recipe Christian Fuchs
@ 2016-07-13 9:39 ` Burton, Ross
2016-07-13 12:18 ` Christian Fuchs
0 siblings, 1 reply; 3+ messages in thread
From: Burton, Ross @ 2016-07-13 9:39 UTC (permalink / raw)
To: Christian Fuchs; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 608 bytes --]
On 13 July 2016 at 08:37, Christian Fuchs <christian.fuchs@fos4x.de> wrote:
> 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?
>
If you want to actually use the perl module that rrdtool built, then
DEPENDS=rrdtool is right (you depend on recipes, not packages) but you'll
also need to inherit nativeperl so the sysroot perl is used instead of the
host perl.
Ross
[-- Attachment #2: Type: text/html, Size: 1021 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Adding dependency for rrdtool-perl to recipe
2016-07-13 9:39 ` Burton, Ross
@ 2016-07-13 12:18 ` Christian Fuchs
0 siblings, 0 replies; 3+ messages in thread
From: Christian Fuchs @ 2016-07-13 12:18 UTC (permalink / raw)
To: Burton, Ross; +Cc: yocto
Thank you. After adding inherit perlnative the library is found.
Regards,
Christian
Am 13.07.2016 um 11:39 schrieb Burton, Ross:
>
> On 13 July 2016 at 08:37, Christian Fuchs <christian.fuchs@fos4x.de
> <mailto:christian.fuchs@fos4x.de>> wrote:
>
> 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?
>
>
> If you want to actually use the perl module that rrdtool built, then
> DEPENDS=rrdtool is right (you depend on recipes, not packages) but
> you'll also need to inherit nativeperl so the sysroot perl is used
> instead of the host perl.
>
> Ross
--
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-07-13 12:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-13 7:37 Adding dependency for rrdtool-perl to recipe Christian Fuchs
2016-07-13 9:39 ` Burton, Ross
2016-07-13 12:18 ` Christian Fuchs
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.