All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* Task Build Issue
@ 2012-02-04  3:27 Rudolf Streif
  2012-02-04  5:03 ` Khem Raj
  0 siblings, 1 reply; 6+ messages in thread
From: Rudolf Streif @ 2012-02-04  3:27 UTC (permalink / raw
  To: yocto

I created this task for test purposes:

DESCRIPTION = "My Custom Tasks"

LICENSE = "MIT"
LIC_FILES_CHKSUM =
"file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \

file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

PACKAGES = "\
    task-mytask-apps \
    task-mytask-apps-dbg \
    task-mytask-apps-dev \
    task-mytask-tools \
    task-mytask-tools-dbg \
    task-mytask-tools-dev \
    "

RDEPENDS_task-mytask-apps = "\
   sqlite3 \
   python \
   python-sqlite3"

RDEPENDS_task-mytask-tools = "\
   sudo \
   gzip \
   tar"

I added created a bb containing IMAGE_INSTALL = "task-core-boot
task-base-extended task-mytask-apps"

Bitbake builds the task without any error message. However, building
the rootfs fails with

| Processing task-mytask-apps...
| Unable to find package task-mytask-apps (task-mytask-apps)!

log.do_package_write_rpm: contains NOTE: Not creating empty RPM
package for task-mytask-apps.

Indeed deploy-rpms of the package is empty however, the deploy-rpms
dirs of the dependencies contain the necessary packages.

Any help is appreciated.

Thanks,
Rudi


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Task Build Issue
  2012-02-04  3:27 Task Build Issue Rudolf Streif
@ 2012-02-04  5:03 ` Khem Raj
  2012-02-04  5:04   ` Khem Raj
  2012-02-06 16:10   ` Paul Eggleton
  0 siblings, 2 replies; 6+ messages in thread
From: Khem Raj @ 2012-02-04  5:03 UTC (permalink / raw
  To: Rudolf Streif; +Cc: yocto

On Fri, Feb 3, 2012 at 7:27 PM, Rudolf Streif <rudolf.streif@gmail.com> wrote:
> I created this task for test purposes:
>
> DESCRIPTION = "My Custom Tasks"
>
> LICENSE = "MIT"
> LIC_FILES_CHKSUM =
> "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
>
> file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
>
> PACKAGES = "\
>    task-mytask-apps \
>    task-mytask-apps-dbg \
>    task-mytask-apps-dev \
>    task-mytask-tools \
>    task-mytask-tools-dbg \
>    task-mytask-tools-dev \
>    "
>
> RDEPENDS_task-mytask-apps = "\
>   sqlite3 \
>   python \
>   python-sqlite3"
>
> RDEPENDS_task-mytask-tools = "\
>   sudo \
>   gzip \
>   tar"
>
> I added created a bb containing IMAGE_INSTALL = "task-core-boot
> task-base-extended task-mytask-apps"
>
> Bitbake builds the task without any error message. However, building
> the rootfs fails with
>
> | Processing task-mytask-apps...
> | Unable to find package task-mytask-apps (task-mytask-apps)!
>
> log.do_package_write_rpm: contains NOTE: Not creating empty RPM
> package for task-mytask-apps.
>

add ALLOW_EMPTY_ task-mytask-apps = "1" to your recipe

> Indeed deploy-rpms of the package is empty however, the deploy-rpms
> dirs of the dependencies contain the necessary packages.
>
> Any help is appreciated.
>
> Thanks,
> Rudi
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Task Build Issue
  2012-02-04  5:03 ` Khem Raj
@ 2012-02-04  5:04   ` Khem Raj
  2012-02-04  6:42     ` Rudolf Streif
  2012-02-06 16:10   ` Paul Eggleton
  1 sibling, 1 reply; 6+ messages in thread
From: Khem Raj @ 2012-02-04  5:04 UTC (permalink / raw
  To: Rudolf Streif; +Cc: yocto

On Fri, Feb 3, 2012 at 9:03 PM, Khem Raj <raj.khem@gmail.com> wrote:
> add ALLOW_EMPTY_ task-mytask-apps = "1" to your recipe

no space there so it should be

ALLOW_EMPTY_task-mytask-apps = "1"


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Task Build Issue
  2012-02-04  5:04   ` Khem Raj
@ 2012-02-04  6:42     ` Rudolf Streif
  2012-02-04  7:37       ` Khem Raj
  0 siblings, 1 reply; 6+ messages in thread
From: Rudolf Streif @ 2012-02-04  6:42 UTC (permalink / raw
  To: Khem Raj; +Cc: yocto

Thank you, Khem. That does resolve the problem. Using just ALLOW_EMPTY
= "1" would also cover the other packages, I suppose.

:rjs

On Fri, Feb 3, 2012 at 9:04 PM, Khem Raj <raj.khem@gmail.com> wrote:
> On Fri, Feb 3, 2012 at 9:03 PM, Khem Raj <raj.khem@gmail.com> wrote:
>> add ALLOW_EMPTY_ task-mytask-apps = "1" to your recipe
>
> no space there so it should be
>
> ALLOW_EMPTY_task-mytask-apps = "1"


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Task Build Issue
  2012-02-04  6:42     ` Rudolf Streif
@ 2012-02-04  7:37       ` Khem Raj
  0 siblings, 0 replies; 6+ messages in thread
From: Khem Raj @ 2012-02-04  7:37 UTC (permalink / raw
  To: Rudolf Streif; +Cc: yocto

On Fri, Feb 3, 2012 at 10:42 PM, Rudolf Streif <rudolf.streif@gmail.com> wrote:
> Thank you, Khem. That does resolve the problem. Using just ALLOW_EMPTY
> = "1" would also cover the other packages, I suppose.

yes


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Task Build Issue
  2012-02-04  5:03 ` Khem Raj
  2012-02-04  5:04   ` Khem Raj
@ 2012-02-06 16:10   ` Paul Eggleton
  1 sibling, 0 replies; 6+ messages in thread
From: Paul Eggleton @ 2012-02-06 16:10 UTC (permalink / raw
  To: yocto

On Friday 03 February 2012 21:03:22 Khem Raj wrote:
> add ALLOW_EMPTY_ task-mytask-apps = "1" to your recipe

Alternatively you could "inherit task" near the top of the recipe and 
task.bbclass takes care of this and a couple of other things already.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-02-06 16:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-04  3:27 Task Build Issue Rudolf Streif
2012-02-04  5:03 ` Khem Raj
2012-02-04  5:04   ` Khem Raj
2012-02-04  6:42     ` Rudolf Streif
2012-02-04  7:37       ` Khem Raj
2012-02-06 16:10   ` Paul Eggleton

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.