<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Am 10.09.2018 um 21:09 schrieb Martin Jansa <<a href="mailto:martin.jansa@gmail.com" class="">martin.jansa@gmail.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class="">pn-buildlist isn't really useful in this case, building both coreutils and busybox doesn't imply that both will be actually included in the image..<div class=""><br class=""></div><div class="">If you compare installed-package-names.txt in buildhistory you'll see that only the core-image-minimal-dev has coreutils installed.</div><div class=""><br class=""></div><div class=""><div class="">docker-shr qemux86-64@ ~/build/oe-core/buildhistory/images/qemux86_64/glibc $ grep busybox core-image-minimal*/installed-package-names.txt</div><div class="">core-image-minimal-dev/installed-package-names.txt:busybox</div><div class="">core-image-minimal-dev/installed-package-names.txt:busybox-dev</div><div class="">core-image-minimal-dev/installed-package-names.txt:busybox-syslog</div><div class="">core-image-minimal-dev/installed-package-names.txt:busybox-udhcpc</div><div class="">core-image-minimal/installed-package-names.txt:busybox</div><div class="">core-image-minimal/installed-package-names.txt:busybox-syslog</div><div class="">core-image-minimal/installed-package-names.txt:busybox-udhcpc</div><div class="">docker-shr qemux86-64@ ~/build/oe-core/buildhistory/images/qemux86_64/glibc $ grep coreutils core-image-minimal*/installed-package-names.txt</div><div class="">core-image-minimal-dev/installed-package-names.txt:coreutils</div><div class="">core-image-minimal-dev/installed-package-names.txt:coreutils-dev</div></div><div class=""><br class=""></div><div class="">That's why the issue is shown only in core-image-minimal-dev.</div></div></div></div></div></div></blockquote><div><br class=""></div><div>The files "installed-package-names.txt" are not available in my setup (IIRC one has to enable that explicitly).</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class="">Do you have custom busybox defconfig which enables nice applet? It's not enabled in default config:</div><div class="">meta/recipes-core/busybox/busybox/defconfig:# CONFIG_NICE is not set</div></div></div></div></div></div></blockquote><div><br class=""></div>You're right. Ages ago - in April 2015 - I added that to my busybox configuration, since I need a</div><div>nice for some scripts on target. And since you figured out, coreutils is (likely with reason) not</div><div>available in general for some images, others might have that, too.</div><div><div><br class=""></div><div>So I created a small patch for corutils ;)</div><div><br class=""></div><div>Thanks for figuring that out.</div><div><br class=""></div><div>Cheers,</div><div>Jens</div><br class=""><blockquote type="cite" class=""><div class=""><div class="gmail_quote"><div dir="ltr" class="">On Mon, Sep 10, 2018 at 8:15 PM Jens Rehsack <<a href="mailto:rehsack@gmail.com" class="">rehsack@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space" class=""><br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">Am 09.09.2018 um 20:56 schrieb Martin Jansa <<a href="mailto:martin.jansa@gmail.com" target="_blank" class="">martin.jansa@gmail.com</a>>:</div><br class="m_7046839808965869988Apple-interchange-newline"><div class=""><div dir="ltr" class="">Does core-image-minimal include both busybox and coreutils? Maybe only -dev include both.</div></div></blockquote><div class=""><br class=""></div><div class="">Unfortunately both include coreutils, see attached pn-buildlist (I can send you the recipe-depends and the task-depends, either if you need them).</div><div class=""></div></div></div><div style="word-wrap:break-word;line-break:after-white-space" class=""><div class="m_7046839808965869988AppleOriginalContents"><div class="m_7046839808965869988AppleOriginalContents"></div></div></div><div style="word-wrap:break-word;line-break:after-white-space" class=""><div class=""><div class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="">I'll send fix for attr soon, waiting for some builds to finish testing it.</div></div></div></blockquote><div class=""><br class=""></div><div class="">Seems similar to my kind of soon :-)</div><br class=""><blockquote type="cite" class=""><div class=""><div class="gmail_quote"><div dir="ltr" class="">On Sun, Sep 9, 2018 at 8:47 PM Jens Rehsack <<a href="mailto:rehsack@gmail.com" target="_blank" class="">rehsack@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space" class="">So far, so good.<div class=""><br class=""></div><div class="">They way to fix that seems either to check why busybox uses ${base_bindir} nowadays in favor of ${bindir} and fix either busybox or coreutils or attr.</div><div class=""><br class=""></div><div class="">What drives me nuts is not only the failure after the busybox update - why does core-image-minimal builds successful while core-image-minimal-dev fails?</div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">Jens<br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">Am 09.09.2018 um 19:27 schrieb Martin Jansa <<a href="mailto:martin.jansa@gmail.com" target="_blank" class="">martin.jansa@gmail.com</a>>:</div><br class="m_7046839808965869988m_697569895326130484Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class="">busybox is most likely the one providing it in ${base_bindir}<div class=""><br class=""></div><div class="">Recent busybox upgrade probably moved this file.</div><div class=""><br class=""></div><div class="">There is also conflict on /usr/bin/setfattr between busybox and attr now.</div></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Sun, Sep 9, 2018 at 7:22 PM Martin Jansa <<a href="mailto:martin.jansa@gmail.com" target="_blank" class="">martin.jansa@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">There are 2 packages using u-a for nice, but one is using {bindir} and 2nd one is using {base_bindir}<div class=""><br class=""></div><div class="">coreutils is using bindir, find what's using ${base_bindir} and change one of them to use the same u-a link as the other one.</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Sun, Sep 9, 2018 at 5:59 PM Jens Rehsack <<a href="mailto:rehsack@gmail.com" target="_blank" class="">rehsack@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space" class=""><br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">Am 09.09.2018 um 13:15 schrieb Alexander Kanavin <<a href="mailto:alex.kanavin@gmail.com" target="_blank" class="">alex.kanavin@gmail.com</a>>:</div><br class="m_7046839808965869988m_697569895326130484m_7760255497084367731m_-7610403655000841370Apple-interchange-newline"><div class=""><div class="">It's right in the message?<br class=""><br class="">ERROR: Logfile of failure stored in:<br class="">/home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/temp/log.do_rootfs.27709<br class=""><br class="">Alex<br class=""></div></div></blockquote><div class=""><br class=""></div><div class=""><br class=""></div><div class="">It's not much what stands there:</div><div class=""><br class=""></div><div class=""><div class="">Downloading file:/home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/oe-rootfs-repo/core2-64/libcap-dev_2.25-r0_core2-64.ipk.</div><div class="">Installing coreutils-dev (8.30) on root</div><div class="">[...]</div><div class=""><div class="">Configuring update-rc.d-deupdate-alternatives: Linking /home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/rootfs/usr/bin/diff to /usr/bin/diff.diffutils</div><div class="">update-alternatives: Linking /home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/rootfs/usr/bin/cmp to /usr/bin/cmp.diffutils</div><div class="">update-alternatives: Linking /home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/rootfs/bin/umount to /bin/umount.util-linux</div><div class="">update-alternatives: Linking /home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/rootfs/usr/bin/[ to /usr/bin/lbracket.coreutils</div><div class="">update-alternatives: Linking /home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/rootfs/usr/bin/arch to /usr/bin/arch.coreutils</div><div class="">update-alternatives: Linking /home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/rootfs/usr/bin/basename to /usr/bin/basename.coreutils</div><div class="">update-alternatives: Linking /home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/rootfs/usr/bin/chcon to /usr/bin/chcon.coreutils</div><div class="">update-alternatives: Linking /home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/rootfs/usr/bin/cksum to /usr/bin/cksum.coreutils</div><div class="">update-alternatives: Linking /home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/rootfs/usr/bin/comm to /usr/bin/comm.coreutils</div><div class="">update-alternatives: Linking /home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/rootfs/usr/bin/csplit to /usr/bin/csplit.coreutils</div><div class="">update-alternatives: Linking /home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/rootfs/usr/bin/cut to /usr/bin/cut.coreutils</div><div class="">[...]</div></div></div><div class=""><div class="">update-alternatives: Linking /home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/rootfs/usr/bin/mkfifo to /usr/bin/mkfifo.coreutils</div><div class="">update-alternatives: renaming nice link from /bin/nice to /usr/bin/nice</div><div class="">mv: cannot stat '/bin/nice': No such file or directory</div><div class="">update-alternatives: Linking /home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/rootfs/bin/bash to /bin/bash.bash</div><div class="">[...]</div></div><div class=""><div class="">Configuring libgmp10.</div><div class="">Configuring coreutils.</div><div class="">coreutils.postinst returned 1, marking as unpacked only, configuration required on target.</div><div class="">Configuring acl.</div><div class="">[...]</div><div class=""><br class=""></div><div class="">The postinst file of coreutils contains only a long list of update-alternatives, as many other packages do either.</div><div class=""><br class=""></div><div class="">core-image-minimal contains coreutils as well, but it doesn't fail the same way.</div><div class=""><br class=""></div><div class="">Any ideas?</div></div><br class=""><blockquote type="cite" class=""><div class=""><div class="">2018-09-09 10:58 GMT+02:00 Jens Rehsack <<a href="mailto:rehsack@gmail.com" target="_blank" class="">rehsack@gmail.com</a>>:<br class=""><blockquote type="cite" class="">Hi,<br class=""><br class="">I got following issue when building an image for live-debugging:<br class=""><br class="">ERROR: updatable-app-dev-image-1.0-r0 do_rootfs: Postinstall scriptlets of ['coreutils'] have failed. If the intention is to defer them to first boot,<br class="">then please place them into pkg_postinst_ontarget_${PN} ().<br class="">Deferring to first boot via 'exit 1' is no longer supported.<br class="">Details of the failure are in /home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/updatable-app-dev-image/1.0-r0/temp/log.do_rootfs.<br class="">ERROR: updatable-app-dev-image-1.0-r0 do_rootfs: Function failed: do_rootfs<br class="">ERROR: Logfile of failure stored in: /home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/updatable-app-dev-image/1.0-r0/temp/log.do_rootfs.14358<br class="">ERROR: Task (/home/sno/gpw-community-bsp/sources/meta-jens/recipes-images/images/updatable-app-dev-image.bb:do_rootfs) failed with exit code '1'<br class=""><br class="">I can reproduce it using core-image-minimal-dev<br class=""><br class="">WARNING: core-image-minimal-dev-1.0-r0 do_rootfs: coreutils.postinst returned 1, marking as unpacked only, configuration required on target.<br class="">ERROR: core-image-minimal-dev-1.0-r0 do_rootfs: Postinstall scriptlets of ['coreutils'] have failed. If the intention is to defer them to first boot,<br class="">then please place them into pkg_postinst_ontarget_${PN} ().<br class="">Deferring to first boot via 'exit 1' is no longer supported.<br class="">Details of the failure are in /home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/temp/log.do_rootfs.<br class="">ERROR: core-image-minimal-dev-1.0-r0 do_rootfs: Function failed: do_rootfs<br class="">ERROR: Logfile of failure stored in: /home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/temp/log.do_rootfs.27709<br class="">ERROR: Task (/home/sno/gpw-community-bsp/sources/poky/meta/recipes-core/images/core-image-minimal-dev.bb:do_rootfs) failed with exit code '1'<br class=""><br class="">Any idea where to start debugging?<br class=""><br class="">Best regards<br class="">--<br class="">Jens Rehsack - <a href="mailto:rehsack@gmail.com" target="_blank" class="">rehsack@gmail.com</a><br class=""><br class=""><br class="">--<br class="">_______________________________________________<br class="">yocto mailing list<br class=""><a href="mailto:yocto@yoctoproject.org" target="_blank" class="">yocto@yoctoproject.org</a><br class=""><a href="https://lists.yoctoproject.org/listinfo/yocto" target="_blank" class="">https://lists.yoctoproject.org/listinfo/yocto</a><br class=""><br class=""></blockquote></div></div></blockquote></div><br class=""><div class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class=""><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class=""><div class="">-- </div><div class="">Jens Rehsack - <a href="mailto:rehsack@gmail.com" target="_blank" class="">rehsack@gmail.com</a></div></div></div>
</div>
<br class=""></div>-- <br class="">
_______________________________________________<br class="">
yocto mailing list<br class="">
<a href="mailto:yocto@yoctoproject.org" target="_blank" class="">yocto@yoctoproject.org</a><br class="">
<a href="https://lists.yoctoproject.org/listinfo/yocto" rel="noreferrer" target="_blank" class="">https://lists.yoctoproject.org/listinfo/yocto</a><br class="">
</blockquote></div>
</blockquote></div>
</div></blockquote></div><br class=""><div class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class=""><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class=""><div class="">-- </div><div class="">Jens Rehsack - <a href="mailto:rehsack@gmail.com" target="_blank" class="">rehsack@gmail.com</a></div></div></div>
</div>
<br class=""></div></div></blockquote></div>
</div></blockquote></div><br class=""><div class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><div class="">-- </div><div class="">Jens Rehsack - <a href="mailto:rehsack@gmail.com" target="_blank" class="">rehsack@gmail.com</a></div></div></div>
</div>
<br class=""></div></blockquote></div>
</div></blockquote></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">-- </div><div class="">Jens Rehsack - <a href="mailto:rehsack@gmail.com" class="">rehsack@gmail.com</a></div></div></div>
</div>
<br class=""></body></html>