Public bug reported:

[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.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: Fix Committed

** Affects: linux (Ubuntu Jammy)
     Importance: Undecided
         Status: New

** Affects: linux (Ubuntu Lunar)
     Importance: Undecided
         Status: New

** Affects: linux (Ubuntu Mantic)
     Importance: Undecided
         Status: Fix Committed

** Also affects: linux (Ubuntu Mantic)
   Importance: Undecided
       Status: New

** Also affects: linux (Ubuntu Lunar)
   Importance: Undecided
       Status: New

** Also affects: linux (Ubuntu Jammy)
   Importance: Undecided
       Status: New

** Changed in: linux (Ubuntu Mantic)
       Status: New => Fix Committed

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2020531

Title:
  support python < 3.9 with annotations

Status in linux package in Ubuntu:
  Fix Committed
Status in linux source package in Jammy:
  New
Status in linux source package in Lunar:
  New
Status in linux source package in Mantic:
  Fix Committed

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2020531/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to