Skip to contentSkip to conversation

Problem building image with opkg and gpg support

DISCUSSION Lars Michael 2 participants 2 messages Dec 10, 2014 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): mailman.1581.1418174979.1406.openembedded-core@lists.openembedded.org

#1 lore raw

Hi all,
I hope this post hits the right list..
On daisy I have switched to opkg, this works fine (target wandboard).
To support signed packages I have added gpg to the PACKAGECONFIG for opkg. I have done this by creating an opkg_0.2.1.bbappend file with the line: PACKAGECONFIG += "gpg"
In my image recipe I added:IMAGE_INSTALL_append = " opkg"IMAGE_INSTALL_append = " gpgme"
'bitbake opkg' seems to run ok and builds libgpgme and opkg ipk's. But when I run 'bitbake myimage' I get:
ERROR: Nothing PROVIDES 'gpgme-native' (but virtual:native:/media/datadisk/arm/fsl-community-bsp-daisy/sources/poky/meta/recipes-devtools/opkg/opkg_0.2.1.bb DEPENDS on or otherwise requires it). Close matches:  gperf-native  rpm-native  gmp-nativeERROR: Required build target 'myimage' has no buildable providers.Missing or unbuildable dependency chain was: ['myimage', 'opkg-native', 'gpgme-native'] Any ideas on what the problem might be?
ThanksLars

#2 lore raw
Quoted 29 lines · Lars Michael

Hi all,

I hope this post hits the right list..

On daisy I have switched to opkg, this works fine (target wandboard).

To support signed packages I have added gpg to the PACKAGECONFIG for opkg. I have done this by creating an opkg_0.2.1.bbappend file with the line:
PACKAGECONFIG += "gpg"

In my image recipe I added:
IMAGE_INSTALL_append = " opkg"
IMAGE_INSTALL_append = " gpgme"

'bitbake opkg' seems to run ok and builds libgpgme and opkg ipk's. But when I run 'bitbake myimage' I get:

ERROR: Nothing PROVIDES 'gpgme-native' (but virtual:native:/media/datadisk/arm/fsl-community-bsp-daisy/sources/poky/meta/recipes-devtools/opkg/opkg_0.2.1.bb DEPENDS on or otherwise requires it). Close matches:
gperf-native
rpm-native
gmp-native
ERROR: Required build target 'myimage' has no buildable providers.
Missing or unbuildable dependency chain was: ['myimage',
'opkg-native', 'gpgme-native']

Quoted 1 line

Any ideas on what the problem might be?

You've enabled gpg for both the target and native opkg recipes and there is no gpg-native for opkg-native to work. If you only the target verison, you could try:

PACKAGECONFIG_append_class-target = " gpg"

otherwise you need to enable a native version of gpgme, probably adding BBCLASSEXTEND = "native" to the recipe for starters, there may then be other tweaks needed.

Cheers,

Richard