On Sun, 2024-07-07 at 05:55 -0700, Guðni Már Gilbert via
lists.openembedded.org wrote:
> On Sun, Jul 7, 2024 at 10:00 AM, Richard Purdie wrote:
> > Thanks for the patch, unfortunately this ran into issues in our CI.
> > One
> > interesting one is this:
> > 
> > https://valkyrie.yoctoproject.org/#/builders/40/builds/65
> > https://valkyrie.yoctoproject.org/#/builders/36/builds/64/steps/17/logs/stdio
> > 
> > which isn't very clear what is going on until you look at the
> > files:
> > 
> > (buildbot-venv) [pokybuild@rocky9-vk-1 ~]$ ls
> > /home/pokybuild/yocto-worker/qemuarm-oecore/build/build/tmp-
> > glibc/work/qemuarm-oe-linux-gnueabi/core-image-sato/1.0/testimage-
> > sdk/sysroots/cortexa15t2hf-neon-oe-linux-gnueabi/etc/bluetooth/ -la
> > total 32
> > dr-xr-xr-x. 2 pokybuild pokybuild 4096 Jul 7 11:11 .
> > drwxr-xr-x. 3 pokybuild pokybuild 4096 Jul 7 11:26 ..
> > -rw-r--r--. 1 pokybuild pokybuild 928 Jul 7 11:11 input.conf
> > -rw-r--r--. 1 pokybuild pokybuild 12597 Jul 7 11:11 main.conf
> > -rw-r--r--. 1 pokybuild pokybuild 120 Jul 7 11:11 network.conf
> > 
> > The missing write bit on the directory is stopping the files from
> > being
> > deleted.
> I wonder if this resolves the issue, looks exactly like something we
> need: https://docs.python.org/3/library/shutil.html#rmtree-example
> 
> There's a comment in the Bitbake code saying rmtree is too slow, but
> that's from 12 years ago. Perhaps it is fast enough today with Python
> 3.12.

rmtree is still slow, rm is specifically designed for file
deletion. I'd be reluctant to start replacing all the rm calls with
rmtree.

There is also a usability issue here as we're making it hard for the
end user to delete an installed sdk.

> I don't think the solution is to request BlueZ to change how it
> installs it's files/directory.

We can ask but if they say no, the easiest thing to do is fix the
directory permissions in a do_install append in the recipe.

Cheers,

Richard
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#201628): 
https://lists.openembedded.org/g/openembedded-core/message/201628
Mute This Topic: https://lists.openembedded.org/mt/107029827/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to