On 6/2/21 8:32 AM, Jacob Kroon via lists.openembedded.org wrote:
Hi,

I'm using Fedora 34 and OE-Core/Bitbake/layers from git master as of today, with reproducible builds. Sometimes when rebuilding my image I see sudden changes in file permissions (jumping back and forth) in the buildhistory output for two native recipes:

shadow-native: (OE-Core)
-drwxr-xr-x -          -                  40 ./var/spool/mail
+drwxrwxr-x -          -                  40 ./var/spool/mail


I can reproduce it reliably with these commands:

After I do:
# bitbake -c cleansstate shadow-native && bitbake shadow-native
I get:
drwxrwxr-x - - 40 ./var/spool/mail

After I do:
# bitbake -c clean shadow-native && bitbake shadow-native
I get:
drwxr-xr-x - - 40 ./var/spool/mail

shadow.inc does:

<snip>
do_install_append() {
        ...
        install -m 0775 -d ${D}${localstatedir}/spool/mail
</snip>

So it looks to me like those permissions are either not recorded in the sstate cache, or they are not restored when extracting the cache.

/Jacob

icedtea7-native: (meta-java)
-drwxrwxr-x -          -                 120 ./usr/lib/jvm/icedtea7-native -drwxrwxr-x -          -                 800 ./usr/lib/jvm/icedtea7-native/bin --rwxrwxr-x -          -               15016 ./usr/lib/jvm/icedtea7-native/bin/apt --rwxrwxr-x -          -               15016 ./usr/lib/jvm/icedtea7-native/bin/extcheck --rwxrwxr-x -          -               15016 ./usr/lib/jvm/icedtea7-native/bin/idlj
...
+drwxr-xr-x -          -                 120 ./usr/lib/jvm/icedtea7-native +drwxr-xr-x -          -                 800 ./usr/lib/jvm/icedtea7-native/bin +-rwxr-xr-x -          -               15016 ./usr/lib/jvm/icedtea7-native/bin/apt +-rwxr-xr-x -          -               15016 ./usr/lib/jvm/icedtea7-native/bin/extcheck +-rwxr-xr-x -          -               15016 ./usr/lib/jvm/icedtea7-native/bin/idlj
...

Before I start debugging them, does anyone have an obvious fix or hint for any of these ?

Regards,
Jacob




-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152548): 
https://lists.openembedded.org/g/openembedded-core/message/152548
Mute This Topic: https://lists.openembedded.org/mt/83262243/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to