* Problem building image with opkg and gpg support
[not found] <mailman.1581.1418174979.1406.openembedded-core@lists.openembedded.org>
@ 2014-12-10 8:10 ` Lars Michael
2014-12-10 10:00 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Lars Michael @ 2014-12-10 8:10 UTC (permalink / raw)
To: openembedded-core@lists.openembedded.org
[-- Attachment #1: Type: text/plain, Size: 950 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 3814 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem building image with opkg and gpg support
2014-12-10 8:10 ` Problem building image with opkg and gpg support Lars Michael
@ 2014-12-10 10:00 ` Richard Purdie
0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2014-12-10 10:00 UTC (permalink / raw)
To: Lars Michael; +Cc: openembedded-core@lists.openembedded.org
On Wed, 2014-12-10 at 08:10 +0000, Lars Michael wrote:
> 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']
>
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem building image with opkg and gpg support
@ 2014-12-10 14:45 Lars Michael
0 siblings, 0 replies; 3+ messages in thread
From: Lars Michael @ 2014-12-10 14:45 UTC (permalink / raw)
To: openembedded-core@lists.openembedded.org
--- On Wed, 10/12/14, Richard Purdie <richard.purdie@linuxfoundation.org> wrote:
> > 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']
> >
> 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.
Richard,
I tried to use the PACKAGECONFIG_append_class-target but in that case opkg is build
without pgpme and signing enabled. Note: I wish to be able sign packages on the build machine and verify
the signatures on the board. Both using PGP.
Then I also tried to add 'native' to the gpme_1.4.3.bb recipe, but the build failed. Obviously other
changes are required for that to work.
Finally I tried to apply the patches described here:
https://www.mail-archive.com/openembedded-core@lists.openembedded.org/msg55204.html
But the build fails:
ERROR: Nothing RPROVIDES 'gnupg-native' (but virtual:native:/media/datadisk/arm/fsl-
community-bsp-daisy/sources/poky/meta/recipes-devtools/opkg/opkg_0.2.1.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'gnupg-native' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['gnupg-native']
ERROR: Required build target 'my-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['my-image', 'opkg-native', 'gnupg-native']
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
Thanks and regards,
Lars
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-12-10 14:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.1581.1418174979.1406.openembedded-core@lists.openembedded.org>
2014-12-10 8:10 ` Problem building image with opkg and gpg support Lars Michael
2014-12-10 10:00 ` Richard Purdie
2014-12-10 14:45 Lars Michael
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox