Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39E96D0BB5F for ; Thu, 24 Oct 2024 05:02:35 +0000 (UTC) Subject: Re: [yocto] populate_sysroot not found in x86_64 x86_64_ubuntu-20.04 #yocto To: "umeshyv" , yocto@lists.yoctoproject.org From: "Aleksandar Nikolic" X-Originating-Location: Erlangen, Bavaria, DE (147.161.171.73) X-Originating-Platform: Windows Chrome 130 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Wed, 23 Oct 2024 22:02:28 -0700 References: In-Reply-To: Message-ID: <17835.1729746148931815318@lists.yoctoproject.org> Content-Type: multipart/alternative; boundary="NG6Krd0B9eeUEgx1Jz0v" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 24 Oct 2024 05:02:35 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/64101 --NG6Krd0B9eeUEgx1Jz0v Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Wed, Oct 23, 2024 at 12:39 PM, umeshyv wrote: >=20 > Hi >=20 > I get below error for the recipe which copies .tgz files to a directory >=20 > ERROR: lib32-xxxxxx-image-1.0-r0 do_prepare_recipe_sysroot: Manifest > /home/x/projects/x/build-x/tmp/sstate-control/manifest-x86_64_ubuntu-20.0= 4-sigma-tools-native.populate_sysroot > not found in x86_64 x86_64_ubuntu-20.04 (variant '')? >=20 > Here is my recipe >=20 > SUMMARY =3D "Tools" > LICENSE =3D "CLOSED" > SAVEDDIR :=3D "${THISDIR}/files" >=20 > SRC_URI =3D "file://1xx.tgz \ > file://2xx.tgz \ > file://3xx.tgz \ > file://4xx.tgz" >=20 > do_install() { > install -d ${D}/opt/tools > install -m 0755 =C2=A0${SAVEDDIR}/*.tgz ${D}/opt/tools > } > FILES_${PN} +=3D "/opt/tools/*" >=20 > Looking for suggestions for this error. I did trails writing > do_prepare_recipe_sysroot() {} but I get same error. >=20 >=20 > Please help me on this regard. >=20 >=20 > Thanks > umesh >=20 >=20 You are not supposed to copy those files directly from the files directory,= as Yocto will automatically copy them to your WORKDIR with the do_fetch() = task. Instead try to install them from the WORKDIR directory and remove thi= s SAVEDIR variable, you don't really need that. Aleksandar --NG6Krd0B9eeUEgx1Jz0v Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
On Wed, Oct 23, 2024 at 12:39 PM, umeshyv wrote:
Hi 
 
I get below error for the recipe which copies .tgz files to a director= y
 
ERROR: lib32-xxxxxx-image-1.0-r0 do_prepare_recipe_sysroot: Manifest /= home/x/projects/x/build-x/tmp/sstate-control/manifest-x86_64_ubuntu-20.04-s= igma-tools-native.populate_sysroot not found in x86_64 x86_64_ubuntu-20.04 = (variant '')?
 
Here is my recipe
 
SUMMARY =3D "Tools"
LICENSE =3D "CLOSED"
SAVEDDIR :=3D "${THISDIR}/files"

SRC_URI =3D "file://1xx.tgz \
        &= nbsp;  file://2xx.tgz \
           = file://3xx.tgz \
           file://4xx.t= gz"

do_install() {
        install -d ${D}/opt/tools
  &nbs= p;     install -m 0755  ${SAVEDDIR}/*.tgz ${D}/opt/tools
}
FILES_${PN} +=3D "/opt/tools/*"
 
Looking for suggestions for this error. I did trails writing do_prepar= e_recipe_sysroot() {} but I get same error. 

Please help me on this regard.

Thanks
umesh
 
You are not supposed to copy those files directly from the files directory,= as Yocto will automatically copy them to your WORKDIR with the do_fetch() = task. Instead try to install them from the WORKDIR directory and remove thi= s SAVEDIR variable, you don't really need that.
 
Aleksandar
--NG6Krd0B9eeUEgx1Jz0v--