All of lore.kernel.org
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: Stefano Cappa <stefano.cappa.ks89@gmail.com>,
	yocto@yoctoproject.org, zangrc.fnst@cn.fujitsu.com
Subject: Re: Cannot use "LICENSE_CREATE_PACKAGE = 1" when building the image with mdns
Date: Mon, 30 Sep 2019 13:45:27 -0700	[thread overview]
Message-ID: <35712e36-d517-2665-fd80-50f4b089b16b@gmail.com> (raw)
In-Reply-To: <CAKRytNy3XoG8H1R4uZqGFC3Az5WGsE5+zYKRgUepgjBDYxvgXw@mail.gmail.com>



On 9/30/19 8:17 AM, Stefano Cappa wrote:
> I saw your last patch to upgrade mdns, so I'm sending this email also to
> you to try to get help.
> 
> mdns is working correctly, however, when I try to build my image with
> "LICENSE_CREATE_PACKAGE = "1"" in my local.conf as described
> here https://www.yoctoproject.org/docs/2.8/dev-manual/dev-manual.html#providing-license-text I
> get this error message:
> 
> ERROR: mydevice-image-1.0-r0 do_rootfs: Postinstall scriptlets of
> ['mdns'] have failed. If the intention is to defer them to first boot,
> then please place them into pkg_postinst_ontarget_${PN} ().
> Deferring to first boot via 'exit 1' is no longer supported.
> Details of the failure are in
> /home/user/git/poky/build/tmp/work/mydevice1-image-poky-linux-gnueabi/mydevice-image/1.0-r0/temp/log.do_rootfs.
> ERROR: mydevice-image-1.0-r0 do_rootfs: Function failed: do_rootfs
> ERROR: Logfile of failure stored in:
> /home/user/git/poky/build/tmp/work/mydevice1-poky-linux-gnueabi/mydevice-image/1.0-r0/temp/log.do_rootfs.14586
> ERROR: Task (MY CUSTOM LAYER
> PATH/recipes-core/images/mydevice-image.bb:do_rootfs) failed with exit
> code '1'
> NOTE: Tasks Summary: Attempted 4871 tasks of which 4654 didn't need to
> be rerun and 1 failed.
> 
> Do you have a solution? Why is it happening? 
> 

see mdns recipe especially

pkg_postinst_${PN} (), that function is not able to execute offline
during build. It could be that nsswitch.conf does not exist in your
image rootfs

> thank u.


  reply	other threads:[~2019-09-30 20:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-30 15:17 Cannot use "LICENSE_CREATE_PACKAGE = 1" when building the image with mdns Stefano Cappa
2019-09-30 20:45 ` Khem Raj [this message]
2019-10-01  9:29   ` Stefano Cappa
2019-10-03 12:24     ` Stefano Cappa
2019-10-04 12:26       ` Stefano Cappa
2019-10-04 15:04         ` Stefano Cappa
2019-10-04 15:17           ` Stefano Cappa

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=35712e36-d517-2665-fd80-50f4b089b16b@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=stefano.cappa.ks89@gmail.com \
    --cc=yocto@yoctoproject.org \
    --cc=zangrc.fnst@cn.fujitsu.com \
    /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.