There's a lot of history to follow here. Can someone SRUify the bug
description to properly explain the situation? From what I see many
packages are affected, but I hope no no-change rebuilds will be required
for those as this is python? What is the test case, regression
potential? How was this iss
For oracular: Matthias uploaded 3.12.5-1:
https://tracker.debian.org/news/1553054/accepted-python3-defaults-3125-1-source-into-unstable/
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2075337
Title:
What is the plan for fixing this in Oracular?
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2075337
Title:
py3clean fails when using alternate character set
To manage notifications about this bug g
** Patch added: "cloud-init_24.2-0ubuntu1~24.04.2.debdiff"
https://bugs.launchpad.net/ubuntu/jammy/+source/ubuntu-advantage-tools/+bug/2075337/+attachment/5803640/+files/cloud-init_24.2-0ubuntu1~24.04.2.debdiff
--
You received this bug notification because you are a member of Ubuntu
Bugs, whi
Attached the debdiff for ubuntu-advantage-tools. I did not upload it,
because the test
TestExportGPGKey.test_export_single_key_from_keyring_dir failed during
build.
** Patch added: "ubuntu-advantage-tools_33.2~24.04.1.debdiff"
https://bugs.launchpad.net/ubuntu/jammy/+source/ubuntu-advantage-to
** Also affects: cloud-init (Ubuntu)
Importance: Undecided
Status: New
** Changed in: cloud-init (Ubuntu Jammy)
Status: New => Invalid
** Also affects: ubuntu-advantage-tools (Ubuntu)
Importance: Undecided
Status: New
** Changed in: ubuntu-advantage-tools (Ubuntu Jammy
Sponsored python3-defaults 3.12.3-0ubuntu2 for noble (after adding the
bug reference to the changelog) and uploaded python3-defaults
3.10.6-1~22.04.1 for jammy.
** Patch added: "python3-defaults_3.10.6-1~22.04.1.debdiff"
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/2075337/+
** Patch added: "lp2075337-noble.debdiff"
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/2075337/+attachment/5803632/+files/lp2075337-noble.debdiff
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launc
** Patch added: "lp2075337-jammy.debdiff"
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/2075337/+attachment/5803631/+files/lp2075337-jammy.debdiff
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launc
Attaching debdiffs for sponsorship in noble and jammy.
For the purposes of review, the jammy diff does include one additional
change to avoid using shell=True on the invocation of dpkg -L. This can
be excised if necessary, but I really didn't want to leave something
that ultimately runs as root do
** Also affects: python3-defaults (Ubuntu Jammy)
Importance: Undecided
Status: New
** Also affects: dh-python (Ubuntu Jammy)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https:/
I tested the affected packages on jammy. Result: Only sgt-launcher is
affected on jammy.
I'm running a full test on jammy (starting with main).
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2075337
T
Thanks all for working on this!
Do we know if releases prior to Noble are affected?
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2075337
Title:
py3clean fails when using alternate character set
T
Analysis result
===
Code and resulting database can be found on
https://github.com/bdrung/bdrung-scripts/tree/lp-2075337-find-affected
122 packages failed to analyze:
```
$ sqlite3 affected.sqlite3 "SELECT section, count(*) from package_affected
WHERE install_affected IS NULL or (re
Analysis update: There are 72 affected packages so far.
```
$ sqlite3 affected.sqlite3 "SELECT section, COUNT(*) FROM package_affected
WHERE install_affected = 1 AND (remove_affected = 1 OR remove_affected ISNULL)
GROUP BY section;"
main|10
multiverse|2
universe|60
```
```
$ sqlite3 affected.sq
Dave, I included your additional change from oracular.debdiff in
https://salsa.debian.org/cpython-
team/python3-defaults/-/merge_requests/15
My analysis script is nearing its end. I'll post the results in some
hours.
--
You received this bug notification because you are a member of Ubuntu
Bugs,
** Also affects: python3-defaults (Ubuntu Noble)
Importance: Undecided
Status: New
** Also affects: dh-python (Ubuntu Noble)
Importance: Undecided
Status: New
** Changed in: python3-defaults (Ubuntu)
Assignee: (unassigned) => Matthias Klose (doko)
--
You received this b
ta, I'll merge that for oracular together with the python 3.12.5 updates
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2075337
Title:
py3clean fails when using alternate character set
To manage not
** Tags added: patch
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2075337
Title:
py3clean fails when using alternate character set
To manage notifications about this bug go to:
https://bugs.launch
Attaching debdiff for proposed changes to python3-minimal in noble
** Patch added: "noble.debdiff"
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/2075337/+attachment/5802639/+files/noble.debdiff
--
You received this bug notification because you are a member of Ubuntu
Bugs, w
Having spent some time digging into this (at the request of the SRU
team), I'll summarise my findings:
Firstly, the analysis is correct: py3clean is ultimately the issue;
packages that both use py3clean and have diversions are affected
(diversions are the only circumstances that produce localised
Attaching debdiff for proposed changes to python3-minimal in oracular
** Patch added: "oracular.debdiff"
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/2075337/+attachment/5802638/+files/oracular.debdiff
--
You received this bug notification because you are a member of Ubunt
First I thought that the fallback dpkg -L call needs to be fixed as
well, but then I noticed that the pipe consumers will use the user's
locale as well. So that change will probably not be needed.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed t
the fallback dpkg -L call in dh-python's autoscripts/prerm-py3clean
should also set the env var.
** Also affects: dh-python (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://
Current analysis status:
```
$ sqlite3 affected.sqlite3 "SELECT count(package) FROM package_affected where
affected is not NULL;"
1322
$ sqlite3 affected.sqlite3 "SELECT package FROM package_affected where affected
= 1;"
cinder-api
cinder-backup
cinder-scheduler
cinder-volume
cloud-init
fglrx-px
I wrote a small Python script that tries to install a package in a
prepared chroot and looks for UnicodeDecodeError in the apt output. I
let this script running. Let's see how many affected package can be
found.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which
Nice that such a fundamental package has zero tests.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2075337
Title:
py3clean fails when using alternate character set
To manage notifications about thi
Proposed upstream fix: https://salsa.debian.org/cpython-
team/python3-defaults/-/merge_requests/15
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2075337
Title:
py3clean fails when using alternate ch
Good suggestion from the discussion with Ravi: Require all noble SRUs to
check if the package is affected by this bug. Add an entry to the SRU
template for noble with a test that the submitter has to check.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is su
Run something like `grep -E 'py3clean|dpkg -L' $prerm` on all prerm
files in the existing package.
On my system:
```
$ grep -l -E 'py3clean|dpkg -L' /var/lib/dpkg/info/*.prerm | wc -l
411
```
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ub
I think it's fair to call this Critical since SRU releases generally are
currently blocked by this. Looking at the definition, "Severely affects
applications beyond the package responsible for the root cause" also
applies.
** Changed in: python3-defaults (Ubuntu)
Importance: High => Critical
-
Any suggestions on how to identify SRUs that are affected so that we can
ensure that the necessary Breaks are in there?
(also, do we know that Breaks will work as needed for an issue in the
prerm?)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed
That would probably the safest solution (as long as the Breaks is not
forgotten in the SRU).
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2075337
Title:
py3clean fails when using alternate characte
Setting C.UTF-8 would work internally I agree. But what does this mean
for SRUs? Does every affected SRU now have to declare Breaks:
python3-minimal (<< whatever)?
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.
The dpkg call should set the language to enforce dpkg to output in
UTF-8. I see no reason why the user's locale should be used internally.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2075337
Title:
Here's the buggy code that assumes UTF-8:
https://git.launchpad.net/ubuntu/+source/python3-defaults/tree/debpython/files.py#n54
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2075337
Title:
py3clean
I discussed this with Didier, and there's a concern that any SRUs that
trigger this issue may break WSL users due to them possibly using
ISO-8859-1 by default under certain conditions. He will check and get
back to us.
In the meantime, he has asked that we do not release SRUs that may be
affected.
On the scope of the issue, I think bug affects users upgrading any
package if the package uses dh_python3, ships a file that has been
diverted, the system is using a non-UTF8 character set and the
translation for "file is diverted" uses non-ASCII characters. cloud-init
and ubuntu-advantage-tools ar
Investigating this a bit further, /usr/share/python3/debpython/files.py
is calling "dpkg -L " and when that fails to decode as UTF-8 we
get the error.
I tried that for cloud-init and this in stdout for "dpkg -L cloud-init":
/etc/systemd/system/sshd-keygen@.service.d/disable-sshd-keygen-if-cloud-i
39 matches
Mail list logo