From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 53DA6E006F1; Sun, 9 Sep 2018 11:56:41 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,FREEMAIL_REPLY,HTML_MESSAGE, RCVD_IN_DNSWL_NONE autolearn=no version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [209.85.221.46 listed in list.dnswl.org] * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (martin.jansa[at]gmail.com) * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * 1.0 FREEMAIL_REPLY From and body contain different freemails Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id D1C2AE00460 for ; Sun, 9 Sep 2018 11:56:39 -0700 (PDT) Received: by mail-wr1-f46.google.com with SMTP id v16-v6so19598485wro.11 for ; Sun, 09 Sep 2018 11:56:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HbKhcr7kvNuld4KorTWpC9d6C8fzHKr1nyWG3jPWHdU=; b=vEuO/6n5+NGOwqPmv1Y7EN4IIDrilolZBv/rC931RxlSCYnzCF8tPyG5WR8xctX2Bp n6WhQzzVRyrGDTL8F89RQNzAmlJHd4W5qnVSEQtfdT6kpcJ2XIXaNQUw1fOBETgx7Lbv dye8D63PDgSqJ9xrti9CLVcL+QU94vsfTfXTMJUpjBZ7M6AjOicq4cEPlOeXnbhcLAxe l9tOTJTGhwC46YUepK7NcrYb5To1Em7qBUcIIX/hnaZxz4EHo5/tYn/sxY2PfbKbMHM2 GX4Nr6tyW7ZHtQJBqXh7FLR8c7S/IliFM+VvACjfXPp49T2pPkGUjho+VJpMCaijRccT 4mmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HbKhcr7kvNuld4KorTWpC9d6C8fzHKr1nyWG3jPWHdU=; b=oZ81zXHLyZSsq+MAYMbPAinnqh5LLIleKraTuHCyu9Q1KpyXUJP3iVh0zKtBQLy0pG iiNFX/4AvtQwZOXANqYZljDfxCM9+hjmwT0VSaoBJN3heYzhRycZywBIgIGBAsgY6lwy 5fpuAcPXq9oKxOg3oaL2zV/jD2WtQcV1yboLQxN51ksXmN1SghI4nrY6Ps4UBo03HdEL O2cmLKglhQWh+IssJ2J4uSR5qjuUsx6OTsoiMs9nRUh2WqAnc3sB9x/ZxtcRM35CDWg0 omGCNmCDHwi/2rHFL53i4OW4YE3e2ysPej7E4SJ1Or525vsRZ/BFze0s2dN4g8Eu5wlj 04Dw== X-Gm-Message-State: APzg51AXuTd9/NsHiqrJlegz9+AguGjnP3Je1cMtTxNTL6wFMkAhOkna EEa2hIoVRBIPJZP1x/rmDRw1HtnBjAZSFdyfOEo= X-Google-Smtp-Source: ANB0VdbwHmQplwbGJxs/Nehjl913xHcEGXNSXqIO+dpc2yYQZURSv+NYFmm+ch4/+tbVp/UkUub8tL7I6QE5Ui9frNQ= X-Received: by 2002:adf:f28c:: with SMTP id k12-v6mr13070913wro.263.1536519398817; Sun, 09 Sep 2018 11:56:38 -0700 (PDT) MIME-Version: 1.0 References: <0AB7262D-C22A-4543-BB67-15F3A1DB2094@gmail.com> <7F360AF5-A5DC-443C-A847-B7A323AF9D94@gmail.com> <3C4A4AAD-4CD4-408F-A0BF-0DE592E64D0B@gmail.com> In-Reply-To: <3C4A4AAD-4CD4-408F-A0BF-0DE592E64D0B@gmail.com> From: Martin Jansa Date: Sun, 9 Sep 2018 20:56:27 +0200 Message-ID: To: Jens Rehsack Cc: Yocto Project Subject: Re: Postinstall scriptlets of ['coreutils'] have failed X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Sep 2018 18:56:41 -0000 Content-Type: multipart/alternative; boundary="000000000000f5065e057574cc6e" --000000000000f5065e057574cc6e Content-Type: text/plain; charset="UTF-8" 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 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 : > > 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 > 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 wrote: >> >>> >>> >>> Am 09.09.2018 um 13:15 schrieb Alexander Kanavin >> >: >>> >>> 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 : >>> >>> 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 > > --000000000000f5065e057574cc6e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Does core-image-minimal include both busybox and coreutils= ? Maybe only -dev include both.

I'll send fix for at= tr 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.

Th= ey way to fix that seems either to check why busybox uses ${base_bindir} no= wadays in favor of ${bindir} and fix either busybox or coreutils or attr.

What drives me nuts is not only the failure after t= he busybox update - why does core-image-minimal builds successful while cor= e-image-minimal-dev fails?

Cheers,
Jens<= br>

Am 09.09.2018 um 19:27 schrieb M= artin Jansa <martin.jansa@gmail.com>:

busybox is mo= st likely the one providing it in ${base_bindir}

Recent = busybox upgrade probably moved this file.

There is= also conflict on=C2=A0/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 n= ice, but one is using {bindir} and 2nd one is using {base_bindir}

<= /div>
coreutils is using bindir, find what's using ${base_bindir} a= nd change one of them to use the same u-a link as the other one.

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

<= br>
Am 09.09.2018 um 13:15 schrieb Alexander = Kanavin <ale= x.kanavin@gmail.com>:

It&= #39;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 w= hat stands there:

Downloading file:/home/sno/= gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-imag= e-minimal-dev/1.0-r0/oe-rootfs-repo/core2-64/libcap-dev_2.25-r0_core2-64.ip= k.
Installing coreutils-dev (8.30) on root
[...]
<= div>
Configuring update-rc.d-deupdate-alternatives: Linking /home/sno/g= pw-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-platf= orm/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/rootfs/usr/bi= n/cmp to /usr/bin/cmp.diffutils
update-alternatives: Linking /hom= e/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/cor= e-image-minimal-dev/1.0-r0/rootfs/bin/umount to /bin/umount.util-linux
update-alternatives: Linking /home/sno/gpw-community-bsp/mops-yocto-p= latform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/rootfs/us= r/bin/[ to /usr/bin/lbracket.coreutils
update-alternatives: Linki= ng /home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-li= nux/core-image-minimal-dev/1.0-r0/rootfs/usr/bin/arch to /usr/bin/arch.core= utils
update-alternatives: Linking /home/sno/gpw-community-bsp/mo= ps-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0= /rootfs/usr/bin/basename to /usr/bin/basename.coreutils
update-al= ternatives: Linking /home/sno/gpw-community-bsp/mops-yocto-platform/tmp/wor= k/fischer-poky-linux/core-image-minimal-dev/1.0-r0/rootfs/usr/bin/chcon to = /usr/bin/chcon.coreutils
update-alternatives: Linking /home/sno/g= pw-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>update-alternatives: Linking /home/sno/gpw-community-bsp/mops-yocto-pla= tform/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.cor= eutils
update-alternatives: Linking /home/sno/gpw-community-bsp/m= ops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r= 0/rootfs/usr/bin/cut to /usr/bin/cut.coreutils
[...]
<= /div>
update-alternatives: Linking /home/sno/gpw-community-bsp/mop= s-yocto-platform/tmp/work/fischer-poky-linux/core-image-minimal-dev/1.0-r0/= rootfs/usr/bin/mkfifo to /usr/bin/mkfifo.coreutils
update-alterna= tives: renaming nice link from /bin/nice to /usr/bin/nice
mv: can= not stat '/bin/nice': No such file or directory
update-al= ternatives: Linking /home/sno/gpw-community-bsp/mops-yocto-platform/tmp/wor= k/fischer-poky-linux/core-image-minimal-dev/1.0-r0/rootfs/bin/bash to /bin/= bash.bash
[...]
Configuring libgmp10.
<= div>Configuring coreutils.
coreutils.postinst returned 1, marking= as unpacked only, configuration required on target.
Configuring = acl.
[...]

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

core-image-minimal contains coreutils a= s 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:

ERRO= R: updatable-app-dev-image-1.0-r0 do_rootfs: Postinstall scriptlets of [= 9;coreutils'] have failed. If the intention is to defer them to first b= oot,
then please place them into pkg_postinst_ontarget_${PN} ().
Defe= rring 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.<= br>ERROR: updatable-app-dev-image-1.0-r0 do_rootfs: Function failed: do_roo= tfs
ERROR: Logfile of failure stored in: /home/sno/gpw-community-bsp/mop= s-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/sourc= es/meta-jens/recipes-images/images/updatable-app-dev-image.bb:do_rootfs) fa= iled with exit code '1'

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

WARNING: core-image-minimal-dev-1.0-r0 do_rootfs: coreut= ils.postinst returned 1, marking as unpacked only, configuration required o= n target.
ERROR: core-image-minimal-dev-1.0-r0 do_rootfs: Postinstall sc= riptlets 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 suppo= rted.
Details of the failure are in /home/sno/gpw-community-bsp/mops-yoc= to-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-com= munity-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/core-image-minim= al-dev/1.0-r0/temp/log.do_rootfs.27709
ERROR: Task (/home/sno/gpw-commun= ity-bsp/sources/poky/meta/recipes-core/images/core-image-minimal-dev.bb:do_= rootfs) failed with exit code '1'

Any idea where to start de= bugging?

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


--
___= ____________________________________________
yocto mailing list
yocto@yoctoproject.o= rg
https://lists.yoctoproject.org/listinfo/yocto


-= -=C2=A0
Jens Rehsack - rehsack@gmail.com

--
_______________________________________________
yocto mailing list
yocto@yoctoproj= ect.org
https://lists.yoctoproject.org/listinfo/yocto

--=C2=A0
Jens Rehsack - rehsack@gmail.com
=

--000000000000f5065e057574cc6e--