attempting to diff static library files raises UnicodeDecodeError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dh-python (Debian) |
Fix Released
|
Unknown
|
|||
dh-python (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
numpy (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In verbose mode, if files differ in share_files(), dhpython will try to show a diff of the files. When these files are static libraries, this raises a UnicodeDecodeError. For example, from a recent numpy build on arm64[1]:
W: dh_python3 fs:146: Paths differ: debian/
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
fix_
File "/usr/share/
share_
File "/usr/share/
share_
File "/usr/share/
share_
File "/usr/share/
share_
File "/usr/share/
fromlines = fp1.readlines()
File "/usr/lib/
(result, consumed) = self._buffer_
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf6 in position 75: invalid start byte
make[1]: *** [debian/rules:46: override_
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:15: binary-arch] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary-arch subprocess returned exit status 2
There is already logic to skip this diff for .so files, so the same should be done for .a files.
Changed in dh-python (Ubuntu): | |
status: | In Progress → Confirmed |
assignee: | Nick Rosbrook (enr0n) → nobody |
Changed in dh-python (Debian): | |
status: | Unknown → New |
Changed in dh-python (Debian): | |
status: | New → Fix Released |
tags: | added: ftbfs |
This bug was fixed in the package dh-python - 5.20220923
---------------
dh-python (5.20220923) unstable; urgency=medium
[ Stefano Rivera ]
* Run Python test suite with nose2. (closes: 1018338)
* Don't attempt to diff static libs (.a), thanks Nick Rosbrook.
(closes: 1020528)
[ Debian Janitor ]
* Bump debhelper from old 12 to 13.
+ Drop check for DEB_BUILD_OPTIONS containing "nocheck", since debhelper now
does this.
* Remove constraints unnecessary since buster (oldstable):
+ dh-python: Drop versioned constraint on python3 in Replaces.
[ Stuart Prescott ]
* pyproject plugin: Make the package's entry points available in the PATH
when running the package's test suite, so that tests using the entry
points can be run.
-- Stefano Rivera <email address hidden> Fri, 23 Sep 2022 09:47:57 +0200