support python < 3.9 with annotations
Bug #2020531 reported by
Andrea Righi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Medium
|
Roxana Nicolescu | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
Lunar |
Fix Released
|
Undecided
|
Unassigned | ||
Mantic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
At the moment we can't use the annotations scripts in focal, because we are using the'|=' update operator for merging dicts, that has been introduced with python 3.9.
Rewrite the code that is using this operator in a more portable way and apply this change everywhere, so that annotations will work on any backport/derivative kernels.
[Test case]
Run `fakeroot debian/rules updateconfigs` in focal (using the new annotations model).
[Fix]
Try to use the '|=' operator in a try/except block, if it fails fallback to a more portable way.
[Regression potential]
With this change applied we may experience regressions during the updateconfigs phase.
Changed in linux (Ubuntu Mantic): | |
status: | New → Fix Committed |
Changed in linux (Ubuntu Lunar): | |
status: | New → Fix Committed |
Changed in linux (Ubuntu Jammy): | |
status: | New → Fix Committed |
Changed in linux (Ubuntu Focal): | |
status: | New → Fix Committed |
assignee: | nobody → Roxana Nicolescu (roxanan) |
importance: | Undecided → Medium |
tags: |
added: verification-done-focal-linux removed: verification-needed-focal-linux |
To post a comment you must log in.
This bug is awaiting verification that the linux-hwe- 5.15/5. 15.0-74. 81~20.04. 2 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification- needed- focal' to 'verification- done-focal' . If the problem still exists, change the tag 'verification- needed- focal' to 'verification- failed- focal'.
If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.
See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation how to enable and use -proposed. Thank you!