[Bug 2054369] Re: update-motd fails autopkg test on armhf in noble, blocking python3-defaults

Andreas Hasenack 2054369 at bugs.launchpad.net
Wed Feb 21 23:49:23 UTC 2024


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

** Changed in: update-motd (Ubuntu)
     Assignee: (unassigned) => Andreas Hasenack (ahasenack)

** Changed in: update-motd (Ubuntu)
       Status: Confirmed => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-motd in Ubuntu.
https://bugs.launchpad.net/bugs/2054369

Title:
  update-motd fails autopkg test on armhf in noble, blocking
  python3-defaults

Status in update-motd package in Ubuntu:
  In Progress

Bug description:
  on armhf, update-motd fails autopkg test in noble, blocking
  python3-defaults:

  309s autopkgtest [23:36:25]: test update-motd: [-----------------------
  312s Attempting to lock /var/lib/apt/lists/lock to wait for any currently running apt updates to finish... Traceback (most recent call last):
  312s   File "/tmp/autopkgtest.WSDKm0/build.ply/src/debian/tests/wait-for-apt-update-to-finish", line 31, in <module>
  312s     rv = fcntl.fcntl(f, fcntl.F_SETLKW, lockdata)
  312s          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  312s OSError: [Errno 22] Invalid argument
  312s autopkgtest [23:36:28]: test update-motd: -----------------------]
  315s update-motd          FAIL non-zero exit status 1
  315s autopkgtest [23:36:31]: test update-motd:  - - - - - - - - - - results - - - - - - - - - -
  316s autopkgtest [23:36:32]: test update-motd:  - - - - - - - - - - stderr - - - - - - - - - -
  316s Traceback (most recent call last):
  316s   File "/tmp/autopkgtest.WSDKm0/build.ply/src/debian/tests/wait-for-apt-update-to-finish", line 31, in <module>
  316s     rv = fcntl.fcntl(f, fcntl.F_SETLKW, lockdata)
  316s          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  316s OSError: [Errno 22] Invalid argument
  319s autopkgtest [23:36:35]: @@@@@@@@@@@@@@@@@@@@ summary
  319s show-motd            PASS
  319s update-motd          FAIL non-zero exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-motd/+bug/2054369/+subscriptions




More information about the foundations-bugs mailing list