[pkg-apparmor] Bug#1057787: Bug#1057787: apparmor scripts give SyntaxWarning messages with python3.12

Christian Boltz apparmor at cboltz.de
Sat Dec 23 15:39:17 GMT 2023


Hello,

Am Freitag, 8. Dezember 2023, 15:13:10 CET schrieb richardn:
> python3.12 starts giving SyntaxWarning messages for invalid escape
> sequences in the apparmor python scripts. With python3.11 these were
> only DeprecationWarning messages, not shown by default. According to
> release notes, in a future Python version SyntaxError will eventually
> be raised, instead of SyntaxWarning
>
> These all seem to have been fixed upstream
> 
> https://gitlab.com/apparmor/apparmor/-/commit/d94731ddf42f9a5f5db5ceb5
> 165d18547f010f63

I backported the fixes to the 3.1 branch, see
    https://gitlab.com/apparmor/apparmor/-/merge_requests/1130
AppArmor 3.1.7 (no release date planned yet) will include these fixes.

Unfortunately backporting to the 3.0 branch results in lots of conflicts 
in a dozen of files, and I slightly ;-) doubt that supporting the latest 
Python in an older branch is worth the effort.

Therefore I'd recommend that the Debian package gets upgraded to 3.1.x.


Regards,

Christian Boltz
-- 
> Well I must admit I feel like an idiot,
A typical feeling for each software developer ;)
[> Dave Plater and Adrian Schröter in opensuse-buildservice]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://alioth-lists.debian.net/pipermail/pkg-apparmor-team/attachments/20231223/4a1ca709/attachment-0001.sig>


More information about the pkg-apparmor-team mailing list