<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">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><br></div><div>If you compare installed-package-names.txt in buildhistory you'll see that only the core-image-minimal-dev has coreutils installed.</div><div><br></div><div><div>docker-shr qemux86-64@ ~/build/oe-core/buildhistory/images/qemux86_64/glibc $ grep busybox core-image-minimal*/installed-package-names.txt</div><div>core-image-minimal-dev/installed-package-names.txt:busybox</div><div>core-image-minimal-dev/installed-package-names.txt:busybox-dev</div><div>core-image-minimal-dev/installed-package-names.txt:busybox-syslog</div><div>core-image-minimal-dev/installed-package-names.txt:busybox-udhcpc</div><div>core-image-minimal/installed-package-names.txt:busybox</div><div>core-image-minimal/installed-package-names.txt:busybox-syslog</div><div>core-image-minimal/installed-package-names.txt:busybox-udhcpc</div><div>docker-shr qemux86-64@ ~/build/oe-core/buildhistory/images/qemux86_64/glibc $ grep coreutils core-image-minimal*/installed-package-names.txt</div><div>core-image-minimal-dev/installed-package-names.txt:coreutils</div><div>core-image-minimal-dev/installed-package-names.txt:coreutils-dev</div></div><div><br></div><div>That's why the issue is shown only in core-image-minimal-dev.</div><div><br></div><div>Do you have custom busybox defconfig which enables nice applet? It's not enabled in default config:</div><div>meta/recipes-core/busybox/busybox/defconfig:# CONFIG_NICE is not set<br></div><div><br></div><div><br></div><div><br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Sep 10, 2018 at 8:15 PM Jens Rehsack <<a href="mailto:rehsack@gmail.com">rehsack@gmail.com</a>> wrote:<br></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"><br><div><br><blockquote type="cite"><div>Am 09.09.2018 um 20:56 schrieb Martin Jansa <<a href="mailto:martin.jansa@gmail.com" target="_blank">martin.jansa@gmail.com</a>>:</div><br class="m_7046839808965869988Apple-interchange-newline"><div><div dir="ltr">Does core-image-minimal include both busybox and coreutils? Maybe only -dev include both.</div></div></blockquote><div><br></div><div>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></div></div></div><div style="word-wrap:break-word;line-break:after-white-space"><div class="m_7046839808965869988AppleOriginalContents"><div class="m_7046839808965869988AppleOriginalContents"></div></div></div><div style="word-wrap:break-word;line-break:after-white-space"><div><div></div><br><blockquote type="cite"><div><div dir="ltr"><div>I'll send fix for attr soon, waiting for some builds to finish testing it.</div></div></div></blockquote><div><br></div><div>Seems similar to my kind of soon :-)</div><br><blockquote type="cite"><div><div class="gmail_quote"><div dir="ltr">On Sun, Sep 9, 2018 at 8:47 PM Jens Rehsack <<a href="mailto:rehsack@gmail.com" target="_blank">rehsack@gmail.com</a>> wrote:<br></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">So far, so good.<div><br></div><div>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><br></div><div>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><br></div><div>Cheers,</div><div>Jens<br><div><br><blockquote type="cite"><div>Am 09.09.2018 um 19:27 schrieb Martin Jansa <<a href="mailto:martin.jansa@gmail.com" target="_blank">martin.jansa@gmail.com</a>>:</div><br class="m_7046839808965869988m_697569895326130484Apple-interchange-newline"><div><div dir="ltr"><div dir="ltr">busybox is most likely the one providing it in ${base_bindir}<div><br></div><div>Recent busybox upgrade probably moved this file.</div><div><br></div><div>There is also conflict on /usr/bin/setfattr between busybox and attr now.</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Sep 9, 2018 at 7:22 PM Martin Jansa <<a href="mailto:martin.jansa@gmail.com" target="_blank">martin.jansa@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">There are 2 packages using u-a for nice, but one is using {bindir} and 2nd one is using {base_bindir}<div><br></div><div>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><div class="gmail_quote"><div dir="ltr">On Sun, Sep 9, 2018 at 5:59 PM Jens Rehsack <<a href="mailto:rehsack@gmail.com" target="_blank">rehsack@gmail.com</a>> wrote:<br></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"><br><div><br><blockquote type="cite"><div>Am 09.09.2018 um 13:15 schrieb Alexander Kanavin <<a href="mailto:alex.kanavin@gmail.com" target="_blank">alex.kanavin@gmail.com</a>>:</div><br class="m_7046839808965869988m_697569895326130484m_7760255497084367731m_-7610403655000841370Apple-interchange-newline"><div><div>It's right in the message?<br><br>ERROR: Logfile of failure stored in:<br>/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><br>Alex<br></div></div></blockquote><div><br></div><div><br></div><div>It's not much what stands there:</div><div><br></div><div><div>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>Installing coreutils-dev (8.30) on root</div><div>[...]</div><div><div>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>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>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>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>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>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>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>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>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>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>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>[...]</div></div></div><div><div>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>update-alternatives: renaming nice link from /bin/nice to /usr/bin/nice</div><div>mv: cannot stat '/bin/nice': No such file or directory</div><div>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>[...]</div></div><div><div>Configuring libgmp10.</div><div>Configuring coreutils.</div><div>coreutils.postinst returned 1, marking as unpacked only, configuration required on target.</div><div>Configuring acl.</div><div>[...]</div><div><br></div><div>The postinst file of coreutils contains only a long list of update-alternatives, as many other packages do either.</div><div><br></div><div>core-image-minimal contains coreutils as well, but it doesn't fail the same way.</div><div><br></div><div>Any ideas?</div></div><br><blockquote type="cite"><div><div>2018-09-09 10:58 GMT+02:00 Jens Rehsack <<a href="mailto:rehsack@gmail.com" target="_blank">rehsack@gmail.com</a>>:<br><blockquote type="cite">Hi,<br><br>I got following issue when building an image for live-debugging:<br><br>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>then please place them into pkg_postinst_ontarget_${PN} ().<br>Deferring to first boot via 'exit 1' is no longer supported.<br>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>ERROR: updatable-app-dev-image-1.0-r0 do_rootfs: Function failed: do_rootfs<br>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>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><br>I can reproduce it using core-image-minimal-dev<br><br>WARNING: core-image-minimal-dev-1.0-r0 do_rootfs: coreutils.postinst returned 1, marking as unpacked only, configuration required on target.<br>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>then please place them into pkg_postinst_ontarget_${PN} ().<br>Deferring to first boot via 'exit 1' is no longer supported.<br>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>ERROR: core-image-minimal-dev-1.0-r0 do_rootfs: Function failed: do_rootfs<br>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>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><br>Any idea where to start debugging?<br><br>Best regards<br>--<br>Jens Rehsack - <a href="mailto:rehsack@gmail.com" target="_blank">rehsack@gmail.com</a><br><br><br>--<br>_______________________________________________<br>yocto mailing list<br><a href="mailto:yocto@yoctoproject.org" target="_blank">yocto@yoctoproject.org</a><br><a href="https://lists.yoctoproject.org/listinfo/yocto" target="_blank">https://lists.yoctoproject.org/listinfo/yocto</a><br><br></blockquote></div></div></blockquote></div><br><div>
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div>-- </div><div>Jens Rehsack - <a href="mailto:rehsack@gmail.com" target="_blank">rehsack@gmail.com</a></div></div></div>
</div>
<br></div>-- <br>
_______________________________________________<br>
yocto mailing list<br>
<a href="mailto:yocto@yoctoproject.org" target="_blank">yocto@yoctoproject.org</a><br>
<a href="https://lists.yoctoproject.org/listinfo/yocto" rel="noreferrer" target="_blank">https://lists.yoctoproject.org/listinfo/yocto</a><br>
</blockquote></div>
</blockquote></div>
</div></blockquote></div><br><div>
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div>-- </div><div>Jens Rehsack - <a href="mailto:rehsack@gmail.com" target="_blank">rehsack@gmail.com</a></div></div></div>
</div>
<br></div></div></blockquote></div>
</div></blockquote></div><br><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div>-- </div><div>Jens Rehsack - <a href="mailto:rehsack@gmail.com" target="_blank">rehsack@gmail.com</a></div></div></div>
</div>
<br></div></blockquote></div>