Skip to contentSkip to conversation

Fedora 34, shadow-native/icedtea7-native, umask problems ?

oe Jacob Kroon 1 participant 2 messages Jun 2, 2021 – Jun 9, 2021 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 8 lines · Jacob Kroon via lists.openembedded.org

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)

Review

Quoted 2 lines
(quoted diff) +1 -1
-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

Quoted 32 lines

icedtea7-native: (meta-java)

Quoted 10 lines

-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

...

Quoted 10 lines

+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

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 24 lines · Jacob Kroon via lists.openembedded.org
Quoted 8 lines · Jacob Kroon via lists.openembedded.org

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)

Review

Quoted 2 lines
(quoted diff) +1 -1
-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:

Quoted 8 lines

<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.

I see this issue in master and hardknot builds, but not in dunfell builds. /Jacob