On Thu, 2024-07-11 at 01:12 -0700, Guðni Már Gilbert via lists.openembedded.org
wrote:
> I'm seeing a very weird bug in Bitbake and I'm not sure if it is just
> my environment. Sharing this in case anyone knows what is going on...
> I've isolated the issue to something between when do_install finishes
> and when Bitbake worker teardown process starts.
>
> For whatever reason, after running bitbake -v -DD -c do_install
> bluez5, the permission for the /etc/bluetooth folder is changed to
> 755 when it should be 555. The owner also changes from root to user
> (in my case 'builder'). I've ruled out the BlueZ recipe and the make
> build. The make file correctly installs the directory with 555
> permissions.
>
> I've been trying to debug this by adding:
>
> try:
> logger.debug("HELLO")
> logger.debug("HELLO WORLD")
> logger.debug(subprocess.check_output(['/usr/bin/ls -la
> /home/builder/yocto/build/tmp-musl/work/core2-64-oe-linux-
> musl/bluez5/5.77/image/etc/bluetooth'], stderr=subprocess.STDOUT,
> shell=True).decode('ascii'))
> except Exception as e:
> pass
>
> next to various bitbake logs to track down the issue.
>
> I'm open for any ideas / suggestions to debug this further. I'm
> thinking about adding to my docker container tools to watch the
> directory somehow...
>
> I'm using the latest master branch for everything at the time of
> writing this.
do_install taskes run under our fakeroot emulator, pseudo. Our builds
don't have root privileges so it stores our emulated owners/modes in a
sqlite database (see ${WORKDIR}/pseudo). This is why as a normal user
you'd see something different to what the task sees when the fakeroot
emulation is running. "bitbake bluez -c devshell" will drop you into
that fakeroot context assuming you have a terminal setup that works
with devshell.
Cheers,
Richard
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#201769):
https://lists.openembedded.org/g/openembedded-core/message/201769
Mute This Topic: https://lists.openembedded.org/mt/107139116/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-