How to install rrdtool-per package?


ingemar0720@...
 

My Yocto build failed and it seems to be looking for "rrdtool-perl" package. I've added package "rrdtool" into my "INSTALL_APPEND" variable but it still fail. The logs is in below. Could someone helped me to find the correct recipe to install it?

 

"""

repo: using cache for: oe-repo

not found other for:

not found modules for:

not found deltainfo for:

not found updateinfo for:

oe-repo: using metadata from Wed 01 Jul 2020 09:34:21 AM UTC.

Last metadata expiration check: 0:00:01 ago on Wed 01 Jul 2020 09:34:22 AM UTC.

No module defaults found

--> Starting dependency resolution

--> Finished dependency resolution

Error:

 Problem: conflicting requests

  - nothing provides rrdtool-perl needed by rpimonitor-2.13-r0.arm1176jzfshf_vfp

(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

 

ERROR: Logfile of failure stored in: /home/ingemar/yocto/sdk/build/tmp/work/raspberrypi0_wifi-poky-linux-gnueabi/rpi-image/1.0-r0/temp/log.do_rootfs.27003

ERROR: Task (/home/ingemar/yocto/sdk/build/../build/meta-rpi/recipes-core/images/rpi-image.bb:do_rootfs) failed with exit code '1'

"""


Josef Holzmayr <holzmayr@...>
 

Howdy!

Looks very much like you'll need to set up PACKAGECONFIG of rrdtool, then it should provide rrdtool-perl.

See also: http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-extended/rrdtool/rrdtool_1.7.2.bb?h=master#n104

Greetz

Am 01.07.2020 um 11:50 schrieb ingemar0720@gmail.com:

My Yocto build failed and it seems to be looking for "rrdtool-perl" package. I've added package "rrdtool" into my "INSTALL_APPEND" variable but it still fail. The logs is in below. Could someone helped me to find the correct recipe to install it?
"""
repo: using cache for: oe-repo
not found other for:
not found modules for:
not found deltainfo for:
not found updateinfo for:
oe-repo: using metadata from Wed 01 Jul 2020 09:34:21 AM UTC.
Last metadata expiration check: 0:00:01 ago on Wed 01 Jul 2020 09:34:22 AM UTC.
No module defaults found
--> Starting dependency resolution
--> Finished dependency resolution
Error:
 Problem: conflicting requests
  - nothing provides rrdtool-perl needed by rpimonitor-2.13-r0.arm1176jzfshf_vfp
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
ERROR: Logfile of failure stored in: /home/ingemar/yocto/sdk/build/tmp/work/raspberrypi0_wifi-poky-linux-gnueabi/rpi-image/1.0-r0/temp/log.do_rootfs.27003
ERROR: Task (/home/ingemar/yocto/sdk/build/../build/meta-rpi/recipes-core/images/rpi-image.bb:do_rootfs) failed with exit code '1'
"""
--
_____________________________________________________________
R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
Fon: +49 8444 9204-0
Fax: +49 8444 9204-50
www.rsi-elektrotechnik.de

_____________________________________________________________
Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548


ingemar0720@...
 

Hello Josef

Thanks for you reply!
From your link, it seems rrdtool recipe already give an alias as `rrdtool-perl`, is it correct?

Then shall I add PACKAGECONFIG in .bbappend file for rrdtool? Or i shall add in my own recipe?


Josef Holzmayr <holzmayr@...>
 

Howdy!

Am 01.07.2020 um 13:04 schrieb ingemar0720@gmail.com:
Hello Josef
Thanks for you reply!
From your link, it seems rrdtool recipe already give an alias as `rrdtool-perl`, is it correct?
Exactly. If activated, then the rrdtool recipe already procides the rrdtool-perl package.

Then shall I add PACKAGECONFIG in .bbappend file for rrdtool? Or i shall add in my own recipe?
The correct place to do this is your DISTRO conf file.

Greetz

--
_____________________________________________________________
R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
Fon: +49 8444 9204-0
Fax: +49 8444 9204-50
www.rsi-elektrotechnik.de

_____________________________________________________________
Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548


ingemar0720@...
 

On Wed, Jul 1, 2020 at 04:46 AM, Josef Holzmayr wrote:
The correct place to do this is your DISTRO conf file.

Is this the correct way to set up it?

PACKAGECONFIG_pn-rrdtool="rrdtool rrdtool-perl"

 


Josef Holzmayr <holzmayr@...>
 

Howdy!

Am 01.07.2020 um 14:05 schrieb ingemar0720@gmail.com:
On Wed, Jul 1, 2020 at 04:46 AM, Josef Holzmayr wrote:
The correct place to do this is your DISTRO conf file.
Is this the correct way to set up it?
PACKAGECONFIG_pn-rrdtool="rrdtool rrdtool-perl"
Please see

https://www.yoctoproject.org/docs/3.1/ref-manual/ref-manual.html#var-PACKAGECONFIG

Section "configuration file"

Greetz

--
_____________________________________________________________
R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
Fon: +49 8444 9204-0
Fax: +49 8444 9204-50
www.rsi-elektrotechnik.de

_____________________________________________________________
Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548


ingemar0720@...
 

On Wed, Jul 1, 2020 at 05:27 AM, "Josef Holzmayr" <holzmayr@...> wrote:
Howdy!

Am 01.07.2020 um 14:05 schrieb ingemar0720@...:
On Wed, Jul 1, 2020 at 04:46 AM, Josef Holzmayr wrote:

The correct place to do this is your DISTRO conf file.

Is this the correct way to set up it?

PACKAGECONFIG_pn-rrdtool="rrdtool rrdtool-perl"
Please see

https://www.yoctoproject.org/docs/3.1/ref-manual/ref-manual.html#var-PACKAGECONFIG

Section "configuration file"

I've added "PACKAGECONFIG_pn-rrdtool" into my distro conf file but still get same result.

I also tried adding .bbappend but it doesn't help.

My distro conf file is in below, could you see any issue in it?


include conf/distro/poky.conf
DISTRO = "rpi"
DISTRO_NAME = "rpi"
DISTRO_VERSION = "1.0"
 
PACKAGECONFIG_pn-rrdtool = "perl systemd"
 
# Use systemd as init manager
DISTRO_FEATURES_append = " virtualization systemd bluez5 bluetooth wifi ssh-server-openssl"
DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"


Greetz

--
_____________________________________________________________
R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
Fon: +49 8444 9204-0
Fax: +49 8444 9204-50
www.rsi-elektrotechnik.de

_____________________________________________________________
Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548


Quentin Schulz
 

On Wed, Jul 01, 2020 at 07:26:00AM -0700, ingemar0720@gmail.com wrote:
On Wed, Jul 1, 2020 at 05:27 AM, "Josef Holzmayr" <holzmayr@rsi-elektrotechnik.de> wrote:


Howdy!

Am 01.07.2020 um 14:05 schrieb ingemar0720@gmail.com:

On Wed, Jul 1, 2020 at 04:46 AM, Josef Holzmayr wrote:

The correct place to do this is your DISTRO conf file.

Is this the correct way to set up it?

PACKAGECONFIG_pn-rrdtool="rrdtool rrdtool-perl"
Please see

https://www.yoctoproject.org/docs/3.1/ref-manual/ref-manual.html#var-PACKAGECONFIG


Section "configuration file"

I've added "PACKAGECONFIG_pn-rrdtool" into my distro conf file but still get same result.

I also tried adding .bbappend but it doesn't help.

My distro conf file is in below, could you see any issue in it?

*include conf/distro/poky.conf*
*DISTRO = "rpi"*
*DISTRO_NAME = "rpi"*
*DISTRO_VERSION = "1.0"*

*PACKAGECONFIG_pn-rrdtool = "perl systemd"*

*# Use systemd as init manager*
*DISTRO_FEATURES_append = " virtualization systemd bluez5 bluetooth wifi ssh-server-openssl"*
*DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"*
*VIRTUAL-RUNTIME_init_manager = "systemd"*
*VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"*
bitbake rrdtool -e and look for the line starting with PACKAGECONFIG.
CHeck it's set to what you want, if not, look the lines above to
understand why it's not set "correctly".

Quentin


ingemar0720@...
 

Hi Quentin
I've execute command "bitbake rrdtool -e" to checked the result and find it's been set as I expected.

This rrdtool-perl is actually required by "rpimonitor", if I execute command "bitbake rpimonitor" and it would success.
But when I execute command "bitbake mydistro", it always say "nothing provides rrdtool-perl" at "do_rootfs" stage. 

Is there any other suggestion?

 


ingemar0720@...
 

ok. I've found the cause. 

rrdtool-perl is empty so yocto doesn't generate rpm package for it. 

I create another .bbappend file and add `ALLOW_EMPTY_${PN}-perl = "1"` and it works.
Thanks for all the helps.