All of lore.kernel.org
 help / color / mirror / Atom feed
From: Henric Eriksson <Henric.Eriksson@brv.se>
To: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Problems creating recipe, "no package provides"
Date: Tue, 17 Jun 2014 14:03:41 +0000	[thread overview]
Message-ID: <53A04AB9.10807@brv.se> (raw)
In-Reply-To: <4393962.vBKmSVoclE@koontz>

Søren Holm skrev:
> Hi
>
> I guess the file should be named  libmongoose_5.3.bb and not
> libmongoose-5.3.bb

My bad. Typo in the email, the actual file is called libmongoose_5.3.bb.

>
> Tirsdag den 17. juni 2014 12:30:36 skrev Henric Eriksson:
>> Hello,
>>
>> I've been working on creating a recipe for the library mongoose for use
>> in a custom layer in Yocto. The library provides a .so in /usr/lib and a
>> .h in /usr/include and is depended (DEPENDS="libmongoose") on in another
>> recipe for a my main application. When trying to bitbake my image though
>> it fails on the last stage do_rootfs.
>>
>> The recipe is quite simple:
>>
>> libmongoose-5.3.bb:
>> -------------
>> DESCRIPTION = "Mongoose is the most easy to use web server on the planet"
>> SECTION = "libs"
>> LICENSE = "GPLv2"
>> HOMEPAGE = "http://code.google.com/p/mongoose"
>> LIC_FILES_CHKSUM =
>> "file://${COREBASE}/meta/COPYING.GPLv2;md5=751419260aa954499f7abaabaa882bbe"
>> PR = "r0"
>>
>> SRC_URI = "git://github.com/cesanta/mongoose.git"
>> SRCREV = "30a79651356e28fec240e921f8cd01c9a0a21388"
>>
>> S = "${WORKDIR}/git"
>>
>> CFLAGS += "-W -Wall -I.. -pthread -g -pipe -fpic"
>>
>> do_compile() {
>>       ${CC} ${CFLAGS} -c mongoose.c -o mongoose.o
>>       ${CC} -shared -o libmongoose.so mongoose.o
>> }
>>
>> do_install() {
>>      install -d ${D}${libdir}
>>      install -d ${D}${includedir}
>>      install -m 0755 libmongoose.so ${D}${libdir}
>>      install -m 0755 mongoose.h ${D}${includedir}
>> }
>> -------------
>>
>> Eventually though during do_rootfs, this error pops up:
>>
>> error: Can't install libmongoose-dev-5.3-r0@armv5te: no package provides
>> libmongoose = 5.3-r0
>>
>> I have tried to add both PACKAGES += "libmongoose" and PACKAGES +=
>> "libmongoose-dev" in the recipe but nothing seems to help.
>>
>> Looking through Yocto I can see that it appends -dev and such based on
>> what files are provided by the package. But I guess since all the files
>> from the package is provided by libmongoose-dev it dumps libmongoose.
>>
>> I'm at a loss of where to go from here. What have I missed in my recipe?
>>
>> Regards,
>>
>> Henric Eriksson
>

/Henric

      reply	other threads:[~2014-06-17 14:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-17 12:30 Problems creating recipe, "no package provides" Henric Eriksson
2014-06-17 13:46 ` Søren Holm
2014-06-17 14:03   ` Henric Eriksson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53A04AB9.10807@brv.se \
    --to=henric.eriksson@brv.se \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.