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 20CABC433FE for ; Tue, 15 Nov 2022 12:09:25 +0000 (UTC) Subject: sstate mirror file name length issue #dunfell To: yocto@lists.yoctoproject.org From: "Markus Held" X-Originating-Location: Villingen-Schwenningen, Baden-Württemberg, DE (46.5.229.127) X-Originating-Platform: Windows Firefox 106 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Tue, 15 Nov 2022 04:09:20 -0800 Message-ID: Content-Type: multipart/alternative; boundary="MihRid7k4AbKTxb7vqVN" 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 ; Tue, 15 Nov 2022 12:09:25 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/58568 --MihRid7k4AbKTxb7vqVN Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, I try to use yocto SSTATE_MIRROR with a custom distribution (RDK: https://d= eveloper.rdkcentral.com/) and enabled yocto multilib support. The sstate directory is created by my build server and published with nginx= to the developer machines. Environment: Bitbake 1.46.0 / Yocto Dunfell 3.1 TUNE_PKGARCH =3D =E2=80=9Ccortexa53t2hf-neon-fp-armv8=E2=80=9D MULTILIBS =3D "multilib:lib32" TARGET_VENDOR=3D"-rdk" TARGET_OS=3D"linux" When a developer configures the sstate mirror in his local.conf: SSTATE_MIRRORS ?=3D " file://.* http:///sstate-cache/PATH;dow= nloadfilename=3DPATH " the build gets stuck on various _setscene tasks and does not continue. I di= d some debugging and the issue is related the with file name length of the = sstate files. When the developer machine tries to download a file from the = mirror, bitbake fetch wants to create a local lock file with name " .lock". Example of a sstate lock file that fails for me: sstate:lib32-dibbler:cortexa53t2hf-neon-fp-armv8-rdkmllib32-linux-gnueabi:1= .0.1+1.0.2RC1+gitc4b0ed52e751da7823dd9a36e91f93a6310e5525:r0:cortexa53t2hf-= neon-fp-armv8:3:169be56e277b6922d1cca3f23f6d56033812941a438f09a477cd96999d7= d0801_package_qa.tgz.siginfo.lock This lock file cannot be created on a ext file system due the file name len= gth > 255. This causes the _setscene task to get stuck indefinitely. It see= ms like most Linux file systems only support file names up to 255 bytes. Is there a way to configure or limit the file name length of the sstate cac= he files? Or a way to avoid the issue with the .lock file? Thanks Markus --MihRid7k4AbKTxb7vqVN Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Hello,

I try to use yocto SSTATE_MIRROR with a = custom distribution (RDK: https://developer.rdkcentral.com/) and enabled yo= cto multilib support.
The sstate directory is created by my build serv= er and published with nginx to the developer machines.

=C2=A0

Environment:
Bitbake 1.46.0 / Yocto Dunfell 3.1=

TUNE_PKGARCH =3D =E2=80=9Ccortexa53t2hf-= neon-fp-armv8=E2=80=9D

MULTILIBS =3D "multilib:lib32"

TARGET_VENDOR=3D"-rdk"

TARGET_OS=3D"linux"

=C2=A0

When a developer configures the sstate m= irror in his local.conf:

=C2=A0=C2=A0 SSTATE_MIRRORS ?=3D = 4; file://.* http://<build server>/sstate-cache/PATH;downloadfilename= =3DPATH "

the build gets stuck on various _set= scene tasks and does not continue. I did some debugging and the issue = is related the with file name length of the sstate files. When the develope= r machine tries to download a file from the mirror, bitbake fetch wants to = create a local lock file with name "<file name>.lock". Example of a sstate lock file that fails for me:

=C2=A0=C2=A0 sstate:lib32-dibbler:co= rtexa53t2hf-neon-fp-armv8-rdkmllib32-linux-gnueabi:1.0.1+1.0.2RC1+gitc4b0ed= 52e751da7823dd9a36e91f93a6310e5525:r0:cortexa53t2hf-neon-fp-armv8:3:169be56= e277b6922d1cca3f23f6d56033812941a438f09a477cd96999d7d0801_package_qa.tgz.si= ginfo.lock

This lock file cannot be created on a ex= t file system due the file name length > 255. This causes the _setsc= ene task to get stuck indefinitely. It seems like most Linux file syst= ems only support file names up to 255 bytes.

Is there a way to configure or limit the= file name length of the sstate cache files? Or a way to avoid the issue wi= th the .lock file?

=C2=A0

Thanks

Markus

=C2=A0

--MihRid7k4AbKTxb7vqVN--