Comment 3 for bug 2054369

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

waveform on irc #ubuntu-devel figured it out:

<waveform> ahasenack, just had a bit of a google around and ran across the fcntl module tests in python (https://github.com/python/cpython/blob/main/Lib/test/test_fcntl.py) -- of particular interest is get_lockdata from line 53
<waveform> following that down we can see that on linux it'll use the struct 'hh'+start_len+'hh'; start_len is ll on platforms without os.O_LARGEFILE, but qq on platforms with (which would suggest the struct in use is too short on armhf?)
<waveform> (assuming armhf has os.O_LARGEFILE -- I'll try and check that in a bit)
<waveform> yes, armhf has os.O_LARGEFILE so it'll be using a struct that's too short

Looks like all our arches have os.O_LARGEFILE defined, so the size should be qq everywhere.

I'll prepare a branch with that change, but it also looks like we could just drop this script. When it was added, it was claimed that freedombox caused the issue[1], but that is gone[2] now.

1. https://git.launchpad.net/ubuntu/+source/update-motd/commit/?id=c060dd002473f5700d8db3916bd8da122ec94fc3
2. https://git.launchpad.net/ubuntu/+source/update-motd/commit/?id=1fb924d7cb573df5202a16d93ebcae1e20d62e2a