All of lore.kernel.org
 help / color / mirror / Atom feed
* Postinstall scriptlets of ['coreutils'] have failed
@ 2018-09-09  8:58 Jens Rehsack
  2018-09-09 11:15 ` Alexander Kanavin
  0 siblings, 1 reply; 10+ messages in thread
From: Jens Rehsack @ 2018-09-09  8:58 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 2009 bytes --]

Hi,

I got following issue when building an image for live-debugging:

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,
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/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/updatable-app-dev-image/1.0-r0/temp/log.do_rootfs.
ERROR: updatable-app-dev-image-1.0-r0 do_rootfs: Function failed: do_rootfs
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
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'

I can reproduce it using core-image-minimal-dev

WARNING: core-image-minimal-dev-1.0-r0 do_rootfs: coreutils.postinst returned 1, marking as unpacked only, configuration required on target.
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,
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/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/temp/log.do_rootfs.
ERROR: core-image-minimal-dev-1.0-r0 do_rootfs: Function failed: do_rootfs
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
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'

Any idea where to start debugging?

Best regards
--
Jens Rehsack - rehsack@gmail.com


[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 849 bytes --]

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

* Re: Postinstall scriptlets of ['coreutils'] have failed
  2018-09-09  8:58 Postinstall scriptlets of ['coreutils'] have failed Jens Rehsack
@ 2018-09-09 11:15 ` Alexander Kanavin
  2018-09-09 15:59   ` Jens Rehsack
  0 siblings, 1 reply; 10+ messages in thread
From: Alexander Kanavin @ 2018-09-09 11:15 UTC (permalink / raw)
  To: Jens Rehsack; +Cc: Yocto discussion list

It's right in the message?

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

Alex

2018-09-09 10:58 GMT+02:00 Jens Rehsack <rehsack@gmail.com>:
> Hi,
>
> I got following issue when building an image for live-debugging:
>
> 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,
> 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/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/updatable-app-dev-image/1.0-r0/temp/log.do_rootfs.
> ERROR: updatable-app-dev-image-1.0-r0 do_rootfs: Function failed: do_rootfs
> 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
> 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'
>
> I can reproduce it using core-image-minimal-dev
>
> WARNING: core-image-minimal-dev-1.0-r0 do_rootfs: coreutils.postinst returned 1, marking as unpacked only, configuration required on target.
> 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,
> 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/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/temp/log.do_rootfs.
> ERROR: core-image-minimal-dev-1.0-r0 do_rootfs: Function failed: do_rootfs
> 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
> 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'
>
> Any idea where to start debugging?
>
> Best regards
> --
> Jens Rehsack - rehsack@gmail.com
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>


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

* Re: Postinstall scriptlets of ['coreutils'] have failed
  2018-09-09 11:15 ` Alexander Kanavin
@ 2018-09-09 15:59   ` Jens Rehsack
  2018-09-09 17:22     ` Martin Jansa
  0 siblings, 1 reply; 10+ messages in thread
From: Jens Rehsack @ 2018-09-09 15:59 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: Yocto discussion list


[-- Attachment #1.1: Type: text/plain, Size: 5877 bytes --]



> Am 09.09.2018 um 13:15 schrieb Alexander Kanavin <alex.kanavin@gmail.com>:
> 
> It's right in the message?
> 
> 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
> 
> Alex


It's not much what stands there:

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.
Installing coreutils-dev (8.30) on root
[...]
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
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
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
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
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
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
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
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
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
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
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
[...]
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
update-alternatives: renaming nice link from /bin/nice to /usr/bin/nice
mv: cannot stat '/bin/nice': No such file or directory
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
[...]
Configuring libgmp10.
Configuring coreutils.
coreutils.postinst returned 1, marking as unpacked only, configuration required on target.
Configuring acl.
[...]

The postinst file of coreutils contains only a long list of update-alternatives, as many other packages do either.

core-image-minimal contains coreutils as well, but it doesn't fail the same way.

Any ideas?

> 2018-09-09 10:58 GMT+02:00 Jens Rehsack <rehsack@gmail.com>:
>> Hi,
>> 
>> I got following issue when building an image for live-debugging:
>> 
>> 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,
>> 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/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/updatable-app-dev-image/1.0-r0/temp/log.do_rootfs.
>> ERROR: updatable-app-dev-image-1.0-r0 do_rootfs: Function failed: do_rootfs
>> 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
>> 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'
>> 
>> I can reproduce it using core-image-minimal-dev
>> 
>> WARNING: core-image-minimal-dev-1.0-r0 do_rootfs: coreutils.postinst returned 1, marking as unpacked only, configuration required on target.
>> 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,
>> 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/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/temp/log.do_rootfs.
>> ERROR: core-image-minimal-dev-1.0-r0 do_rootfs: Function failed: do_rootfs
>> 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
>> 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'
>> 
>> Any idea where to start debugging?
>> 
>> Best regards
>> --
>> Jens Rehsack - rehsack@gmail.com
>> 
>> 
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>> 

--
Jens Rehsack - rehsack@gmail.com


[-- Attachment #1.2: Type: text/html, Size: 8177 bytes --]

[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 849 bytes --]

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

* Re: Postinstall scriptlets of ['coreutils'] have failed
  2018-09-09 15:59   ` Jens Rehsack
@ 2018-09-09 17:22     ` Martin Jansa
  2018-09-09 17:27       ` Martin Jansa
  0 siblings, 1 reply; 10+ messages in thread
From: Martin Jansa @ 2018-09-09 17:22 UTC (permalink / raw)
  To: Jens Rehsack; +Cc: Yocto Project

[-- Attachment #1: Type: text/plain, Size: 6501 bytes --]

There are 2 packages using u-a for nice, but one is using {bindir} and 2nd
one is using {base_bindir}

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.

On Sun, Sep 9, 2018 at 5:59 PM Jens Rehsack <rehsack@gmail.com> wrote:

>
>
> Am 09.09.2018 um 13:15 schrieb Alexander Kanavin <alex.kanavin@gmail.com>:
>
> It's right in the message?
>
> 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
>
> Alex
>
>
>
> It's not much what stands there:
>
> 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.
> Installing coreutils-dev (8.30) on root
> [...]
> 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
> 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
> 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
> 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
> 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
> 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
> 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
> 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
> 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
> 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
> 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
> [...]
> 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
> update-alternatives: renaming nice link from /bin/nice to /usr/bin/nice
> mv: cannot stat '/bin/nice': No such file or directory
> 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
> [...]
> Configuring libgmp10.
> Configuring coreutils.
> coreutils.postinst returned 1, marking as unpacked only, configuration
> required on target.
> Configuring acl.
> [...]
>
> The postinst file of coreutils contains only a long list of
> update-alternatives, as many other packages do either.
>
> core-image-minimal contains coreutils as well, but it doesn't fail the
> same way.
>
> Any ideas?
>
> 2018-09-09 10:58 GMT+02:00 Jens Rehsack <rehsack@gmail.com>:
>
> Hi,
>
> I got following issue when building an image for live-debugging:
>
> 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,
> 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/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/updatable-app-dev-image/1.0-r0/temp/log.do_rootfs.
> ERROR: updatable-app-dev-image-1.0-r0 do_rootfs: Function failed: do_rootfs
> 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
> 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'
>
> I can reproduce it using core-image-minimal-dev
>
> WARNING: core-image-minimal-dev-1.0-r0 do_rootfs: coreutils.postinst
> returned 1, marking as unpacked only, configuration required on target.
> 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,
> 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/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/temp/log.do_rootfs.
> ERROR: core-image-minimal-dev-1.0-r0 do_rootfs: Function failed: do_rootfs
> 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
> 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'
>
> Any idea where to start debugging?
>
> Best regards
> --
> Jens Rehsack - rehsack@gmail.com
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
> --
> Jens Rehsack - rehsack@gmail.com
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>

[-- Attachment #2: Type: text/html, Size: 8233 bytes --]

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

* Re: Postinstall scriptlets of ['coreutils'] have failed
  2018-09-09 17:22     ` Martin Jansa
@ 2018-09-09 17:27       ` Martin Jansa
  2018-09-09 18:47         ` Jens Rehsack
  0 siblings, 1 reply; 10+ messages in thread
From: Martin Jansa @ 2018-09-09 17:27 UTC (permalink / raw)
  To: Jens Rehsack; +Cc: Yocto Project

[-- Attachment #1: Type: text/plain, Size: 6940 bytes --]

busybox is most likely the one providing it in ${base_bindir}

Recent busybox upgrade probably moved this file.

There is also conflict on /usr/bin/setfattr between busybox and attr now.

On Sun, Sep 9, 2018 at 7:22 PM Martin Jansa <martin.jansa@gmail.com> wrote:

> There are 2 packages using u-a for nice, but one is using {bindir} and 2nd
> one is using {base_bindir}
>
> 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.
>
> On Sun, Sep 9, 2018 at 5:59 PM Jens Rehsack <rehsack@gmail.com> wrote:
>
>>
>>
>> Am 09.09.2018 um 13:15 schrieb Alexander Kanavin <alex.kanavin@gmail.com
>> >:
>>
>> It's right in the message?
>>
>> 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
>>
>> Alex
>>
>>
>>
>> It's not much what stands there:
>>
>> 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.
>> Installing coreutils-dev (8.30) on root
>> [...]
>> 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
>> 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
>> 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
>> 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
>> 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
>> 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
>> 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
>> 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
>> 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
>> 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
>> 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
>> [...]
>> 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
>> update-alternatives: renaming nice link from /bin/nice to /usr/bin/nice
>> mv: cannot stat '/bin/nice': No such file or directory
>> 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
>> [...]
>> Configuring libgmp10.
>> Configuring coreutils.
>> coreutils.postinst returned 1, marking as unpacked only, configuration
>> required on target.
>> Configuring acl.
>> [...]
>>
>> The postinst file of coreutils contains only a long list of
>> update-alternatives, as many other packages do either.
>>
>> core-image-minimal contains coreutils as well, but it doesn't fail the
>> same way.
>>
>> Any ideas?
>>
>> 2018-09-09 10:58 GMT+02:00 Jens Rehsack <rehsack@gmail.com>:
>>
>> Hi,
>>
>> I got following issue when building an image for live-debugging:
>>
>> 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,
>> 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/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/updatable-app-dev-image/1.0-r0/temp/log.do_rootfs.
>> ERROR: updatable-app-dev-image-1.0-r0 do_rootfs: Function failed:
>> do_rootfs
>> 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
>> 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'
>>
>> I can reproduce it using core-image-minimal-dev
>>
>> WARNING: core-image-minimal-dev-1.0-r0 do_rootfs: coreutils.postinst
>> returned 1, marking as unpacked only, configuration required on target.
>> 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,
>> 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/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/temp/log.do_rootfs.
>> ERROR: core-image-minimal-dev-1.0-r0 do_rootfs: Function failed: do_rootfs
>> 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
>> 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'
>>
>> Any idea where to start debugging?
>>
>> Best regards
>> --
>> Jens Rehsack - rehsack@gmail.com
>>
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>
>> --
>> Jens Rehsack - rehsack@gmail.com
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>

[-- Attachment #2: Type: text/html, Size: 8849 bytes --]

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

* Re: Postinstall scriptlets of ['coreutils'] have failed
  2018-09-09 17:27       ` Martin Jansa
@ 2018-09-09 18:47         ` Jens Rehsack
  2018-09-09 18:56           ` Martin Jansa
  0 siblings, 1 reply; 10+ messages in thread
From: Jens Rehsack @ 2018-09-09 18:47 UTC (permalink / raw)
  To: Martin Jansa; +Cc: Yocto Project


[-- Attachment #1.1: Type: text/plain, Size: 7555 bytes --]

So far, so good.

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.

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?

Cheers,
Jens

> Am 09.09.2018 um 19:27 schrieb Martin Jansa <martin.jansa@gmail.com>:
> 
> busybox is most likely the one providing it in ${base_bindir}
> 
> Recent busybox upgrade probably moved this file.
> 
> There is also conflict on /usr/bin/setfattr between busybox and attr now.
> 
> On Sun, Sep 9, 2018 at 7:22 PM Martin Jansa <martin.jansa@gmail.com <mailto:martin.jansa@gmail.com>> wrote:
> There are 2 packages using u-a for nice, but one is using {bindir} and 2nd one is using {base_bindir}
> 
> 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.
> 
> On Sun, Sep 9, 2018 at 5:59 PM Jens Rehsack <rehsack@gmail.com <mailto:rehsack@gmail.com>> wrote:
> 
> 
>> Am 09.09.2018 um 13:15 schrieb Alexander Kanavin <alex.kanavin@gmail.com <mailto:alex.kanavin@gmail.com>>:
>> 
>> It's right in the message?
>> 
>> 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
>> 
>> Alex
> 
> 
> It's not much what stands there:
> 
> 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.
> Installing coreutils-dev (8.30) on root
> [...]
> 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
> 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
> 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
> 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
> 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
> 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
> 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
> 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
> 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
> 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
> 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
> [...]
> 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
> update-alternatives: renaming nice link from /bin/nice to /usr/bin/nice
> mv: cannot stat '/bin/nice': No such file or directory
> 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
> [...]
> Configuring libgmp10.
> Configuring coreutils.
> coreutils.postinst returned 1, marking as unpacked only, configuration required on target.
> Configuring acl.
> [...]
> 
> The postinst file of coreutils contains only a long list of update-alternatives, as many other packages do either.
> 
> core-image-minimal contains coreutils as well, but it doesn't fail the same way.
> 
> Any ideas?
> 
>> 2018-09-09 10:58 GMT+02:00 Jens Rehsack <rehsack@gmail.com <mailto:rehsack@gmail.com>>:
>>> Hi,
>>> 
>>> I got following issue when building an image for live-debugging:
>>> 
>>> 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,
>>> 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/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/updatable-app-dev-image/1.0-r0/temp/log.do_rootfs.
>>> ERROR: updatable-app-dev-image-1.0-r0 do_rootfs: Function failed: do_rootfs
>>> 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
>>> 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'
>>> 
>>> I can reproduce it using core-image-minimal-dev
>>> 
>>> WARNING: core-image-minimal-dev-1.0-r0 do_rootfs: coreutils.postinst returned 1, marking as unpacked only, configuration required on target.
>>> 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,
>>> 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/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/temp/log.do_rootfs.
>>> ERROR: core-image-minimal-dev-1.0-r0 do_rootfs: Function failed: do_rootfs
>>> 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
>>> 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'
>>> 
>>> Any idea where to start debugging?
>>> 
>>> Best regards
>>> --
>>> Jens Rehsack - rehsack@gmail.com <mailto:rehsack@gmail.com>
>>> 
>>> 
>>> --
>>> _______________________________________________
>>> yocto mailing list
>>> yocto@yoctoproject.org <mailto:yocto@yoctoproject.org>
>>> https://lists.yoctoproject.org/listinfo/yocto <https://lists.yoctoproject.org/listinfo/yocto>
>>> 
> 
> --
> Jens Rehsack - rehsack@gmail.com <mailto:rehsack@gmail.com>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org <mailto:yocto@yoctoproject.org>
> https://lists.yoctoproject.org/listinfo/yocto <https://lists.yoctoproject.org/listinfo/yocto>

--
Jens Rehsack - rehsack@gmail.com


[-- Attachment #1.2: Type: text/html, Size: 11873 bytes --]

[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 849 bytes --]

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

* Re: Postinstall scriptlets of ['coreutils'] have failed
  2018-09-09 18:47         ` Jens Rehsack
@ 2018-09-09 18:56           ` Martin Jansa
  2018-09-10 18:15             ` Jens Rehsack
  0 siblings, 1 reply; 10+ messages in thread
From: Martin Jansa @ 2018-09-09 18:56 UTC (permalink / raw)
  To: Jens Rehsack; +Cc: Yocto Project

[-- Attachment #1: Type: text/plain, Size: 7854 bytes --]

Does core-image-minimal include both busybox and coreutils? Maybe only -dev
include both.

I'll send fix for attr soon, waiting for some builds to finish testing it.

On Sun, Sep 9, 2018 at 8:47 PM Jens Rehsack <rehsack@gmail.com> wrote:

> So far, so good.
>
> 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.
>
> 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?
>
> Cheers,
> Jens
>
> Am 09.09.2018 um 19:27 schrieb Martin Jansa <martin.jansa@gmail.com>:
>
> busybox is most likely the one providing it in ${base_bindir}
>
> Recent busybox upgrade probably moved this file.
>
> There is also conflict on /usr/bin/setfattr between busybox and attr now.
>
> On Sun, Sep 9, 2018 at 7:22 PM Martin Jansa <martin.jansa@gmail.com>
> wrote:
>
>> There are 2 packages using u-a for nice, but one is using {bindir} and
>> 2nd one is using {base_bindir}
>>
>> 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.
>>
>> On Sun, Sep 9, 2018 at 5:59 PM Jens Rehsack <rehsack@gmail.com> wrote:
>>
>>>
>>>
>>> Am 09.09.2018 um 13:15 schrieb Alexander Kanavin <alex.kanavin@gmail.com
>>> >:
>>>
>>> It's right in the message?
>>>
>>> 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
>>>
>>> Alex
>>>
>>>
>>>
>>> It's not much what stands there:
>>>
>>> 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.
>>> Installing coreutils-dev (8.30) on root
>>> [...]
>>> 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
>>> 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
>>> 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
>>> 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
>>> 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
>>> 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
>>> 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
>>> 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
>>> 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
>>> 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
>>> 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
>>> [...]
>>> 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
>>> update-alternatives: renaming nice link from /bin/nice to /usr/bin/nice
>>> mv: cannot stat '/bin/nice': No such file or directory
>>> 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
>>> [...]
>>> Configuring libgmp10.
>>> Configuring coreutils.
>>> coreutils.postinst returned 1, marking as unpacked only, configuration
>>> required on target.
>>> Configuring acl.
>>> [...]
>>>
>>> The postinst file of coreutils contains only a long list of
>>> update-alternatives, as many other packages do either.
>>>
>>> core-image-minimal contains coreutils as well, but it doesn't fail the
>>> same way.
>>>
>>> Any ideas?
>>>
>>> 2018-09-09 10:58 GMT+02:00 Jens Rehsack <rehsack@gmail.com>:
>>>
>>> Hi,
>>>
>>> I got following issue when building an image for live-debugging:
>>>
>>> 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,
>>> 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/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/updatable-app-dev-image/1.0-r0/temp/log.do_rootfs.
>>> ERROR: updatable-app-dev-image-1.0-r0 do_rootfs: Function failed:
>>> do_rootfs
>>> 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
>>> 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'
>>>
>>> I can reproduce it using core-image-minimal-dev
>>>
>>> WARNING: core-image-minimal-dev-1.0-r0 do_rootfs: coreutils.postinst
>>> returned 1, marking as unpacked only, configuration required on target.
>>> 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,
>>> 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/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/temp/log.do_rootfs.
>>> ERROR: core-image-minimal-dev-1.0-r0 do_rootfs: Function failed:
>>> do_rootfs
>>> 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
>>> 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'
>>>
>>> Any idea where to start debugging?
>>>
>>> Best regards
>>> --
>>> Jens Rehsack - rehsack@gmail.com
>>>
>>>
>>> --
>>> _______________________________________________
>>> yocto mailing list
>>> yocto@yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/yocto
>>>
>>>
>>> --
>>> Jens Rehsack - rehsack@gmail.com
>>>
>>> --
>>> _______________________________________________
>>> yocto mailing list
>>> yocto@yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/yocto
>>>
>>
> --
> Jens Rehsack - rehsack@gmail.com
>
>

[-- Attachment #2: Type: text/html, Size: 10589 bytes --]

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

* Re: Postinstall scriptlets of ['coreutils'] have failed
  2018-09-09 18:56           ` Martin Jansa
@ 2018-09-10 18:15             ` Jens Rehsack
  2018-09-10 19:09               ` Martin Jansa
  0 siblings, 1 reply; 10+ messages in thread
From: Jens Rehsack @ 2018-09-10 18:15 UTC (permalink / raw)
  To: Martin Jansa; +Cc: Yocto Project


[-- Attachment #1.1: Type: text/plain, Size: 8330 bytes --]



> Am 09.09.2018 um 20:56 schrieb Martin Jansa <martin.jansa@gmail.com>:
> 
> Does core-image-minimal include both busybox and coreutils? Maybe only -dev include both.

Unfortunately both include coreutils, see attached pn-buildlist (I can send you the recipe-depends and the task-depends, either if you need them).

> I'll send fix for attr soon, waiting for some builds to finish testing it.

Seems similar to my kind of soon :-)

> On Sun, Sep 9, 2018 at 8:47 PM Jens Rehsack <rehsack@gmail.com <mailto:rehsack@gmail.com>> wrote:
> So far, so good.
> 
> 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.
> 
> 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?
> 
> Cheers,
> Jens
> 
>> Am 09.09.2018 um 19:27 schrieb Martin Jansa <martin.jansa@gmail.com <mailto:martin.jansa@gmail.com>>:
>> 
>> busybox is most likely the one providing it in ${base_bindir}
>> 
>> Recent busybox upgrade probably moved this file.
>> 
>> There is also conflict on /usr/bin/setfattr between busybox and attr now.
>> 
>> On Sun, Sep 9, 2018 at 7:22 PM Martin Jansa <martin.jansa@gmail.com <mailto:martin.jansa@gmail.com>> wrote:
>> There are 2 packages using u-a for nice, but one is using {bindir} and 2nd one is using {base_bindir}
>> 
>> 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.
>> 
>> On Sun, Sep 9, 2018 at 5:59 PM Jens Rehsack <rehsack@gmail.com <mailto:rehsack@gmail.com>> wrote:
>> 
>> 
>>> Am 09.09.2018 um 13:15 schrieb Alexander Kanavin <alex.kanavin@gmail.com <mailto:alex.kanavin@gmail.com>>:
>>> 
>>> It's right in the message?
>>> 
>>> 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
>>> 
>>> Alex
>> 
>> 
>> It's not much what stands there:
>> 
>> 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.
>> Installing coreutils-dev (8.30) on root
>> [...]
>> 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
>> 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
>> 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
>> 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
>> 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
>> 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
>> 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
>> 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
>> 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
>> 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
>> 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
>> [...]
>> 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
>> update-alternatives: renaming nice link from /bin/nice to /usr/bin/nice
>> mv: cannot stat '/bin/nice': No such file or directory
>> 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
>> [...]
>> Configuring libgmp10.
>> Configuring coreutils.
>> coreutils.postinst returned 1, marking as unpacked only, configuration required on target.
>> Configuring acl.
>> [...]
>> 
>> The postinst file of coreutils contains only a long list of update-alternatives, as many other packages do either.
>> 
>> core-image-minimal contains coreutils as well, but it doesn't fail the same way.
>> 
>> Any ideas?
>> 
>>> 2018-09-09 10:58 GMT+02:00 Jens Rehsack <rehsack@gmail.com <mailto:rehsack@gmail.com>>:
>>>> Hi,
>>>> 
>>>> I got following issue when building an image for live-debugging:
>>>> 
>>>> 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,
>>>> 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/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/updatable-app-dev-image/1.0-r0/temp/log.do_rootfs.
>>>> ERROR: updatable-app-dev-image-1.0-r0 do_rootfs: Function failed: do_rootfs
>>>> 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
>>>> 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'
>>>> 
>>>> I can reproduce it using core-image-minimal-dev
>>>> 
>>>> WARNING: core-image-minimal-dev-1.0-r0 do_rootfs: coreutils.postinst returned 1, marking as unpacked only, configuration required on target.
>>>> 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,
>>>> 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/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/temp/log.do_rootfs.
>>>> ERROR: core-image-minimal-dev-1.0-r0 do_rootfs: Function failed: do_rootfs
>>>> 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
>>>> 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'
>>>> 
>>>> Any idea where to start debugging?
>>>> 
>>>> Best regards
>>>> --
>>>> Jens Rehsack - rehsack@gmail.com <mailto:rehsack@gmail.com>
>>>> 
>>>> 
>>>> --
>>>> _______________________________________________
>>>> yocto mailing list
>>>> yocto@yoctoproject.org <mailto:yocto@yoctoproject.org>
>>>> https://lists.yoctoproject.org/listinfo/yocto <https://lists.yoctoproject.org/listinfo/yocto>
>>>> 
>> 
>> --
>> Jens Rehsack - rehsack@gmail.com <mailto:rehsack@gmail.com>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org <mailto:yocto@yoctoproject.org>
>> https://lists.yoctoproject.org/listinfo/yocto <https://lists.yoctoproject.org/listinfo/yocto>
> 
> --
> Jens Rehsack - rehsack@gmail.com <mailto:rehsack@gmail.com>

--
Jens Rehsack - rehsack@gmail.com


[-- Attachment #1.2.1: Type: text/html, Size: 14325 bytes --]

[-- Attachment #1.2.2: core-image-minimal-dev-pn-buildlist --]
[-- Type: application/octet-stream, Size: 2992 bytes --]

core-image-minimal-dev
quilt-native
pseudo-native
linux-intel
opkg-native
opkg-utils-native
xz-native
cross-localedef-native
qemuwrapper-cross
mklibs-native
prelink-native
makedevs-native
ldconfig-native
update-rc.d-native
bmap-tools-native
pbzip2-native
pigz-native
qemu-native
qemu-helper-native
ovmf
parted-native
gptfdisk-native
dosfstools-native
mtools-native
squashfs-tools-native
syslinux-native
btrfs-tools-native
depmodwrapper-cross
syslinux
e2fsprogs-native
grub-efi
intel-microcode
cdrtools-native
systemd-boot
packagegroup-core-boot
run-postinsts
util-linux-native
python3-native
python3-setuptools-native
mtools
e2fsprogs
perl
grub-bootconf
diffutils
grub
freetype
systemd-bootconf
attr-native
sqlite3-native
binutils-cross-x86_64
rpm-native
dwarfsrcfiles-native
kmod-native
ncurses-native
kern-tools-native
gcc-cross-x86_64
bc-native
bison-native
openssl-native
elfutils-native
lzop-native
pkgconfig-native
autoconf-native
libarchive-native
libsolv-native
automake-native
libtool-native
gnu-config-native
gettext-minimal-native
binutils-native
bzip2-native
zlib-native
glib-2.0-native
dtc-native
pixman-native
alsa-lib-native
glibc
nasm-native
ovmf-native
gcc-runtime
texinfo-dummy-native
readline-native
popt-native
lzo-native
lz4-native
acl-native
util-linux
grub-efi-native
libtool-cross
gettext-native
flex-native
iucode-tool-native
ninja-native
intltool-native
gperf-native
gnu-efi
libcap
meson-native
update-rc.d
initscripts
ncurses
zlib
make-native
gdbm-native
libffi-native
unzip-native
python3
perl-native
attr
opkg-utils
db
libxcrypt
gdbm
libgcc
glibc-locale
thermald
modutils-initscripts
init-ifupdown
netbase
keymaps
sysvinit
busybox
eudev
base-passwd
base-files
bash
procps
coreutils
ptest-runner
sed
make
m4-native
shared-mime-info-native
grep
bash-completion
libpam
btrfs-tools
which
libxml-parser-perl-native
openssl
file-native
nss-native
dbus-native
db-native
gtk-doc-native
gcc-source-8.2.0
linux-libc-headers
libmpc-native
mpfr-native
gmp-native
cmake-native
expat-native
libpcre-native
util-macros-native
libpng-native
glibc-initial
gcc-cross-initial-x86_64
libgcc-initial
groff-native
acpica-native
re2c-native
unifdef-native
libffi
libtirpc
sqlite3
bzip2
readline
libnsl2
xz
dbus-glib-native
libxml2
dbus-glib
dbus
glib-2.0
kmod
libxslt-native
virtual-fstab-usb
shadow-native
gmp
acl
libxml2-native
libpcre
flex
cracklib
lzo
cwautomacros-native
kbd
sysvinit-inittab
daemontools-encore
python
dbus-test
gnome-desktop-testing
shared-mime-info
tzdata
shadow
gawk
m4
nspr-native
autoconf-archive-native
curl-native
expat
shadow-sysroot
autoconf-archive
libsm
libx11
cracklib-native
libcheck
python-native
tzcode-native
shadow-securetty
xtrans
libice
xorgproto
util-macros
xorgproto-native
libxcb
libxdmcp
libpthread-stubs
libxau
xcb-proto

[-- Attachment #1.2.3: core-image-minimal-pn-buildlist --]
[-- Type: application/octet-stream, Size: 2988 bytes --]

core-image-minimal
quilt-native
pseudo-native
linux-intel
opkg-native
opkg-utils-native
xz-native
cross-localedef-native
qemuwrapper-cross
mklibs-native
prelink-native
makedevs-native
ldconfig-native
update-rc.d-native
bmap-tools-native
pbzip2-native
pigz-native
qemu-native
qemu-helper-native
ovmf
parted-native
gptfdisk-native
dosfstools-native
mtools-native
squashfs-tools-native
systemd-boot
btrfs-tools-native
grub-efi
depmodwrapper-cross
syslinux-native
cdrtools-native
syslinux
intel-microcode
e2fsprogs-native
packagegroup-core-boot
run-postinsts
util-linux-native
python3-native
python3-setuptools-native
systemd-bootconf
grub-bootconf
diffutils
grub
freetype
mtools
perl
e2fsprogs
attr-native
sqlite3-native
binutils-cross-x86_64
rpm-native
dwarfsrcfiles-native
kmod-native
ncurses-native
kern-tools-native
gcc-cross-x86_64
bc-native
bison-native
openssl-native
elfutils-native
lzop-native
pkgconfig-native
libarchive-native
automake-native
gnu-config-native
libsolv-native
autoconf-native
libtool-native
gettext-minimal-native
binutils-native
bzip2-native
zlib-native
pixman-native
glib-2.0-native
alsa-lib-native
dtc-native
nasm-native
ovmf-native
gcc-runtime
glibc
texinfo-dummy-native
readline-native
popt-native
lzo-native
lz4-native
util-linux
gettext-native
meson-native
gnu-efi
gperf-native
intltool-native
ninja-native
libcap
acl-native
flex-native
grub-efi-native
libtool-cross
iucode-tool-native
update-rc.d
initscripts
ncurses
zlib
make-native
libffi-native
gdbm-native
unzip-native
python3
perl-native
opkg-utils
db
gdbm
libxcrypt
attr
glibc-locale
libgcc
netbase
init-ifupdown
busybox
sysvinit
eudev
base-files
keymaps
base-passwd
modutils-initscripts
thermald
ptest-runner
make
sed
bash
procps
coreutils
m4-native
shared-mime-info-native
grep
btrfs-tools
which
libpam
bash-completion
libxml-parser-perl-native
openssl
nss-native
dbus-native
file-native
db-native
gtk-doc-native
gcc-source-8.2.0
gmp-native
libmpc-native
mpfr-native
linux-libc-headers
expat-native
cmake-native
util-macros-native
libpng-native
libpcre-native
groff-native
acpica-native
gcc-cross-initial-x86_64
glibc-initial
libgcc-initial
re2c-native
unifdef-native
readline
bzip2
libtirpc
libnsl2
sqlite3
libffi
xz
glib-2.0
kmod
libxslt-native
virtual-fstab-usb
libxml2
dbus-glib
dbus
dbus-glib-native
shadow-native
acl
gmp
libxml2-native
libpcre
lzo
cwautomacros-native
cracklib
flex
daemontools-encore
sysvinit-inittab
kbd
python
shared-mime-info
tzdata
gnome-desktop-testing
dbus-test
shadow
gawk
m4
nspr-native
autoconf-archive-native
curl-native
expat
shadow-sysroot
autoconf-archive
libsm
libx11
cracklib-native
libcheck
python-native
tzcode-native
shadow-securetty
util-macros
libice
xtrans
xorgproto
libxcb
xorgproto-native
xcb-proto
libpthread-stubs
libxdmcp
libxau

[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 849 bytes --]

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

* Re: Postinstall scriptlets of ['coreutils'] have failed
  2018-09-10 18:15             ` Jens Rehsack
@ 2018-09-10 19:09               ` Martin Jansa
  2018-09-11 16:36                 ` Jens Rehsack
  0 siblings, 1 reply; 10+ messages in thread
From: Martin Jansa @ 2018-09-10 19:09 UTC (permalink / raw)
  To: Jens Rehsack; +Cc: Yocto Project

[-- Attachment #1: Type: text/plain, Size: 9844 bytes --]

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..

If you compare installed-package-names.txt in buildhistory you'll see that
only the core-image-minimal-dev has coreutils installed.

docker-shr qemux86-64@ ~/build/oe-core/buildhistory/images/qemux86_64/glibc
$ grep busybox core-image-minimal*/installed-package-names.txt
core-image-minimal-dev/installed-package-names.txt:busybox
core-image-minimal-dev/installed-package-names.txt:busybox-dev
core-image-minimal-dev/installed-package-names.txt:busybox-syslog
core-image-minimal-dev/installed-package-names.txt:busybox-udhcpc
core-image-minimal/installed-package-names.txt:busybox
core-image-minimal/installed-package-names.txt:busybox-syslog
core-image-minimal/installed-package-names.txt:busybox-udhcpc
docker-shr qemux86-64@ ~/build/oe-core/buildhistory/images/qemux86_64/glibc
$ grep coreutils core-image-minimal*/installed-package-names.txt
core-image-minimal-dev/installed-package-names.txt:coreutils
core-image-minimal-dev/installed-package-names.txt:coreutils-dev

That's why the issue is shown only in core-image-minimal-dev.

Do you have custom busybox defconfig which enables nice applet? It's not
enabled in default config:
meta/recipes-core/busybox/busybox/defconfig:# CONFIG_NICE is not set




On Mon, Sep 10, 2018 at 8:15 PM Jens Rehsack <rehsack@gmail.com> wrote:

>
>
> Am 09.09.2018 um 20:56 schrieb Martin Jansa <martin.jansa@gmail.com>:
>
> Does core-image-minimal include both busybox and coreutils? Maybe only
> -dev include both.
>
>
> Unfortunately both include coreutils, see attached pn-buildlist (I can
> send you the recipe-depends and the task-depends, either if you need them).
>
> I'll send fix for attr soon, waiting for some builds to finish testing it.
>
>
> Seems similar to my kind of soon :-)
>
> On Sun, Sep 9, 2018 at 8:47 PM Jens Rehsack <rehsack@gmail.com> wrote:
>
>> So far, so good.
>>
>> 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.
>>
>> 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?
>>
>> Cheers,
>> Jens
>>
>> Am 09.09.2018 um 19:27 schrieb Martin Jansa <martin.jansa@gmail.com>:
>>
>> busybox is most likely the one providing it in ${base_bindir}
>>
>> Recent busybox upgrade probably moved this file.
>>
>> There is also conflict on /usr/bin/setfattr between busybox and attr now.
>>
>> On Sun, Sep 9, 2018 at 7:22 PM Martin Jansa <martin.jansa@gmail.com>
>> wrote:
>>
>>> There are 2 packages using u-a for nice, but one is using {bindir} and
>>> 2nd one is using {base_bindir}
>>>
>>> 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.
>>>
>>> On Sun, Sep 9, 2018 at 5:59 PM Jens Rehsack <rehsack@gmail.com> wrote:
>>>
>>>>
>>>>
>>>> Am 09.09.2018 um 13:15 schrieb Alexander Kanavin <
>>>> alex.kanavin@gmail.com>:
>>>>
>>>> It's right in the message?
>>>>
>>>> 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
>>>>
>>>> Alex
>>>>
>>>>
>>>>
>>>> It's not much what stands there:
>>>>
>>>> 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.
>>>> Installing coreutils-dev (8.30) on root
>>>> [...]
>>>> 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
>>>> 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
>>>> 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
>>>> 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
>>>> 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
>>>> 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
>>>> 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
>>>> 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
>>>> 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
>>>> 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
>>>> 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
>>>> [...]
>>>> 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
>>>> update-alternatives: renaming nice link from /bin/nice to /usr/bin/nice
>>>> mv: cannot stat '/bin/nice': No such file or directory
>>>> 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
>>>> [...]
>>>> Configuring libgmp10.
>>>> Configuring coreutils.
>>>> coreutils.postinst returned 1, marking as unpacked only, configuration
>>>> required on target.
>>>> Configuring acl.
>>>> [...]
>>>>
>>>> The postinst file of coreutils contains only a long list of
>>>> update-alternatives, as many other packages do either.
>>>>
>>>> core-image-minimal contains coreutils as well, but it doesn't fail the
>>>> same way.
>>>>
>>>> Any ideas?
>>>>
>>>> 2018-09-09 10:58 GMT+02:00 Jens Rehsack <rehsack@gmail.com>:
>>>>
>>>> Hi,
>>>>
>>>> I got following issue when building an image for live-debugging:
>>>>
>>>> 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,
>>>> 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/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/updatable-app-dev-image/1.0-r0/temp/log.do_rootfs.
>>>> ERROR: updatable-app-dev-image-1.0-r0 do_rootfs: Function failed:
>>>> do_rootfs
>>>> 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
>>>> 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'
>>>>
>>>> I can reproduce it using core-image-minimal-dev
>>>>
>>>> WARNING: core-image-minimal-dev-1.0-r0 do_rootfs: coreutils.postinst
>>>> returned 1, marking as unpacked only, configuration required on target.
>>>> 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,
>>>> 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/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/temp/log.do_rootfs.
>>>> ERROR: core-image-minimal-dev-1.0-r0 do_rootfs: Function failed:
>>>> do_rootfs
>>>> 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
>>>> 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'
>>>>
>>>> Any idea where to start debugging?
>>>>
>>>> Best regards
>>>> --
>>>> Jens Rehsack - rehsack@gmail.com
>>>>
>>>>
>>>> --
>>>> _______________________________________________
>>>> yocto mailing list
>>>> yocto@yoctoproject.org
>>>> https://lists.yoctoproject.org/listinfo/yocto
>>>>
>>>>
>>>> --
>>>> Jens Rehsack - rehsack@gmail.com
>>>>
>>>> --
>>>> _______________________________________________
>>>> yocto mailing list
>>>> yocto@yoctoproject.org
>>>> https://lists.yoctoproject.org/listinfo/yocto
>>>>
>>>
>> --
>> Jens Rehsack - rehsack@gmail.com
>>
>>
> --
> Jens Rehsack - rehsack@gmail.com
>
>

[-- Attachment #2: Type: text/html, Size: 14080 bytes --]

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

* Re: Postinstall scriptlets of ['coreutils'] have failed
  2018-09-10 19:09               ` Martin Jansa
@ 2018-09-11 16:36                 ` Jens Rehsack
  0 siblings, 0 replies; 10+ messages in thread
From: Jens Rehsack @ 2018-09-11 16:36 UTC (permalink / raw)
  To: Martin Jansa; +Cc: Yocto Project


[-- Attachment #1.1: Type: text/plain, Size: 10649 bytes --]



> Am 10.09.2018 um 21:09 schrieb Martin Jansa <martin.jansa@gmail.com>:
> 
> 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..
> 
> If you compare installed-package-names.txt in buildhistory you'll see that only the core-image-minimal-dev has coreutils installed.
> 
> docker-shr qemux86-64@ ~/build/oe-core/buildhistory/images/qemux86_64/glibc $ grep busybox core-image-minimal*/installed-package-names.txt
> core-image-minimal-dev/installed-package-names.txt:busybox
> core-image-minimal-dev/installed-package-names.txt:busybox-dev
> core-image-minimal-dev/installed-package-names.txt:busybox-syslog
> core-image-minimal-dev/installed-package-names.txt:busybox-udhcpc
> core-image-minimal/installed-package-names.txt:busybox
> core-image-minimal/installed-package-names.txt:busybox-syslog
> core-image-minimal/installed-package-names.txt:busybox-udhcpc
> docker-shr qemux86-64@ ~/build/oe-core/buildhistory/images/qemux86_64/glibc $ grep coreutils core-image-minimal*/installed-package-names.txt
> core-image-minimal-dev/installed-package-names.txt:coreutils
> core-image-minimal-dev/installed-package-names.txt:coreutils-dev
> 
> That's why the issue is shown only in core-image-minimal-dev.

The files "installed-package-names.txt" are not available in my setup (IIRC one has to enable that explicitly).

> Do you have custom busybox defconfig which enables nice applet? It's not enabled in default config:
> meta/recipes-core/busybox/busybox/defconfig:# CONFIG_NICE is not set

You're right. Ages ago - in April 2015 - I added that to my busybox configuration, since I need a
nice for some scripts on target. And since you figured out, coreutils is (likely with reason) not
available in general for some images, others might have that, too.

So I created a small patch for corutils ;)

Thanks for figuring that out.

Cheers,
Jens

> On Mon, Sep 10, 2018 at 8:15 PM Jens Rehsack <rehsack@gmail.com <mailto:rehsack@gmail.com>> wrote:
> 
> 
>> Am 09.09.2018 um 20:56 schrieb Martin Jansa <martin.jansa@gmail.com <mailto:martin.jansa@gmail.com>>:
>> 
>> Does core-image-minimal include both busybox and coreutils? Maybe only -dev include both.
> 
> Unfortunately both include coreutils, see attached pn-buildlist (I can send you the recipe-depends and the task-depends, either if you need them).
> 
>> I'll send fix for attr soon, waiting for some builds to finish testing it.
> 
> Seems similar to my kind of soon :-)
> 
>> On Sun, Sep 9, 2018 at 8:47 PM Jens Rehsack <rehsack@gmail.com <mailto:rehsack@gmail.com>> wrote:
>> So far, so good.
>> 
>> 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.
>> 
>> 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?
>> 
>> Cheers,
>> Jens
>> 
>>> Am 09.09.2018 um 19:27 schrieb Martin Jansa <martin.jansa@gmail.com <mailto:martin.jansa@gmail.com>>:
>>> 
>>> busybox is most likely the one providing it in ${base_bindir}
>>> 
>>> Recent busybox upgrade probably moved this file.
>>> 
>>> There is also conflict on /usr/bin/setfattr between busybox and attr now.
>>> 
>>> On Sun, Sep 9, 2018 at 7:22 PM Martin Jansa <martin.jansa@gmail.com <mailto:martin.jansa@gmail.com>> wrote:
>>> There are 2 packages using u-a for nice, but one is using {bindir} and 2nd one is using {base_bindir}
>>> 
>>> 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.
>>> 
>>> On Sun, Sep 9, 2018 at 5:59 PM Jens Rehsack <rehsack@gmail.com <mailto:rehsack@gmail.com>> wrote:
>>> 
>>> 
>>>> Am 09.09.2018 um 13:15 schrieb Alexander Kanavin <alex.kanavin@gmail.com <mailto:alex.kanavin@gmail.com>>:
>>>> 
>>>> It's right in the message?
>>>> 
>>>> 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
>>>> 
>>>> Alex
>>> 
>>> 
>>> It's not much what stands there:
>>> 
>>> 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.
>>> Installing coreutils-dev (8.30) on root
>>> [...]
>>> 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
>>> 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
>>> 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
>>> 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
>>> 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
>>> 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
>>> 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
>>> 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
>>> 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
>>> 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
>>> 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
>>> [...]
>>> 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
>>> update-alternatives: renaming nice link from /bin/nice to /usr/bin/nice
>>> mv: cannot stat '/bin/nice': No such file or directory
>>> 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
>>> [...]
>>> Configuring libgmp10.
>>> Configuring coreutils.
>>> coreutils.postinst returned 1, marking as unpacked only, configuration required on target.
>>> Configuring acl.
>>> [...]
>>> 
>>> The postinst file of coreutils contains only a long list of update-alternatives, as many other packages do either.
>>> 
>>> core-image-minimal contains coreutils as well, but it doesn't fail the same way.
>>> 
>>> Any ideas?
>>> 
>>>> 2018-09-09 10:58 GMT+02:00 Jens Rehsack <rehsack@gmail.com <mailto:rehsack@gmail.com>>:
>>>>> Hi,
>>>>> 
>>>>> I got following issue when building an image for live-debugging:
>>>>> 
>>>>> 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,
>>>>> 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/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/updatable-app-dev-image/1.0-r0/temp/log.do_rootfs.
>>>>> ERROR: updatable-app-dev-image-1.0-r0 do_rootfs: Function failed: do_rootfs
>>>>> 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
>>>>> 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'
>>>>> 
>>>>> I can reproduce it using core-image-minimal-dev
>>>>> 
>>>>> WARNING: core-image-minimal-dev-1.0-r0 do_rootfs: coreutils.postinst returned 1, marking as unpacked only, configuration required on target.
>>>>> 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,
>>>>> 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/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/temp/log.do_rootfs.
>>>>> ERROR: core-image-minimal-dev-1.0-r0 do_rootfs: Function failed: do_rootfs
>>>>> 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
>>>>> 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'
>>>>> 
>>>>> Any idea where to start debugging?
>>>>> 
>>>>> Best regards
>>>>> --
>>>>> Jens Rehsack - rehsack@gmail.com <mailto:rehsack@gmail.com>
>>>>> 
>>>>> 
>>>>> --
>>>>> _______________________________________________
>>>>> yocto mailing list
>>>>> yocto@yoctoproject.org <mailto:yocto@yoctoproject.org>
>>>>> https://lists.yoctoproject.org/listinfo/yocto <https://lists.yoctoproject.org/listinfo/yocto>
>>>>> 
>>> 
>>> --
>>> Jens Rehsack - rehsack@gmail.com <mailto:rehsack@gmail.com>
>>> --
>>> _______________________________________________
>>> yocto mailing list
>>> yocto@yoctoproject.org <mailto:yocto@yoctoproject.org>
>>> https://lists.yoctoproject.org/listinfo/yocto <https://lists.yoctoproject.org/listinfo/yocto>
>> 
>> --
>> Jens Rehsack - rehsack@gmail.com <mailto:rehsack@gmail.com>
> 
> --
> Jens Rehsack - rehsack@gmail.com <mailto:rehsack@gmail.com>

--
Jens Rehsack - rehsack@gmail.com


[-- Attachment #1.2: Type: text/html, Size: 18301 bytes --]

[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 849 bytes --]

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

end of thread, other threads:[~2018-09-11 16:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-09  8:58 Postinstall scriptlets of ['coreutils'] have failed Jens Rehsack
2018-09-09 11:15 ` Alexander Kanavin
2018-09-09 15:59   ` Jens Rehsack
2018-09-09 17:22     ` Martin Jansa
2018-09-09 17:27       ` Martin Jansa
2018-09-09 18:47         ` Jens Rehsack
2018-09-09 18:56           ` Martin Jansa
2018-09-10 18:15             ` Jens Rehsack
2018-09-10 19:09               ` Martin Jansa
2018-09-11 16:36                 ` Jens Rehsack

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.