autopkgtest fails on s390x with file 1:5.46-5build2
Bug #2143116 reported by
Nadzeya Hutsko
This bug affects 1 person
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| py3status (Ubuntu) |
Fix Released
|
High
|
Nadzeya Hutsko | ||
Bug Description
The `py3status` clock autopkgtest fails on s390x after `file` was rebuilt from 1:5.46-5build1 to 1:5.46-5build2
py3status calls `file --mime-encoding` via subprocess with no timeout at startup. With the new file build, the magic database is slow to load on s390x, causing the call to hang and py3status to produce no output within the test window.
Fix: add timeout=3 to the subprocess call and handle TimeoutExpired, falling back to utf-8. Also, increase the autopkgtest timeout from 1s to 5s.
Related branches
~nadzeya/ubuntu/+source/py3status:fix-clock-failure-s390x
Merged
into
ubuntu/+source/py3status:ubuntu/devel
at
revision dce2239e321afd2dccc52d0792e804115e752567
- Nick Rosbrook (community): Needs Information
- Ubuntu Sponsors: Pending requested
-
Diff: 113 lines (+69/-2)5 files modifieddebian/changelog (+10/-0)
debian/control (+2/-1)
debian/patches/fix-file-encoding-subprocess-timeout.patch (+55/-0)
debian/patches/series (+1/-0)
debian/tests/clock (+1/-1)
| tags: | added: update-excuse |
| Changed in py3status (Ubuntu): | |
| assignee: | nobody → Nadzeya Hutsko (nadzeya) |
| status: | New → In Progress |
| importance: | Undecided → High |
To post a comment you must log in.

This bug was fixed in the package py3status - 3.63-2ubuntu1
---------------
py3status (3.63-2ubuntu1) resolute; urgency=medium
* fix s390x hang where 'file --mime-encoding' blocks indefinitely when file-encoding- subprocess- timeout. patch add timeout
the magic database is slow to load (LP: #2143116)
- d/p/fix-
to 'file' subprocess call in parse_config
- debian/tests/clock: increase timeout from 1s to 5s
-- Nadzeya Hutsko <email address hidden> Fri, 27 Feb 2026 16:43:36 +0100