Your message dated Thu, 03 Nov 2022 15:49:58 +0000
with message-id <[email protected]>
and subject line Bug#1012377: fixed in python3.10 3.10.8-2
has caused the Debian Bug report #1012377,
regarding Please add support for systemd-binfmt
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1012377: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1012377
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python3.10-minimal
Version: 3.10.4-4
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: systemd-binfmt

Hi,

your package python3.10-minimal declares a dependency (Suggests) on
binfmt-support and ships binfmt-support configuration files in
/usr/share/binfmts/.

systemd provides a builtin, cross-distro facility named systemd-binfmt to
register binary formats.

You can read more about it at
https://www.freedesktop.org/software/systemd/man/systemd-binfmt.html
https://www.freedesktop.org/software/systemd/man/binfmt.d.html
https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html

The systemd package provides a dpkg file trigger so it is sufficient to
simply install configuration files in /usr/lib/binfmt.d/, no
modifications in the maintainer scripts are necessary.

The attached patch ships a configuration file for systemd-binfmt which
will automatically enable binfmt support for python3.10 without requiring
further dependencies.

Regards,
Michael
diff -Nru python3.10-3.10.4/debian/mkbinfmtconf.py 
python3.10-3.10.4/debian/mkbinfmtconf.py
--- python3.10-3.10.4/debian/mkbinfmtconf.py    1970-01-01 01:00:00.000000000 
+0100
+++ python3.10-3.10.4/debian/mkbinfmtconf.py    2022-06-05 23:43:03.000000000 
+0200
@@ -0,0 +1,9 @@
+# mkbinfmtconf.py
+import importlib.util, sys, string, os.path
+
+magic = "".join(["\\x%.2x" % c for c in importlib.util.MAGIC_NUMBER])
+
+name = sys.argv[1]
+
+sys.stdout.write(f":{name}:M::{magic}::/usr/bin/{name}:")
+sys.stdout.write('\n')
diff -Nru python3.10-3.10.4/debian/rules python3.10-3.10.4/debian/rules
--- python3.10-3.10.4/debian/rules      2022-04-02 11:17:00.000000000 +0200
+++ python3.10-3.10.4/debian/rules      2022-06-05 23:43:03.000000000 +0200
@@ -1236,11 +1236,15 @@
 
        : # generate binfmt file
        mkdir -p $(d_min)/usr/share/binfmts
+       mkdir -p $(d_min)/usr/lib/binfmt.d
 ifeq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
        $(buildd_static)/python debian/mkbinfmt.py $(PVER) \
                > $(d_min)/usr/share/binfmts/$(PVER)
+       $(buildd_static)/python debian/mkbinfmtconf.py $(PVER) \
+               > $(d_min)/usr/lib/binfmt.d/$(PVER).conf
 else
        $(PVER) debian/mkbinfmt.py $(PVER) > $(d_min)/usr/share/binfmts/$(PVER)
+       $(PVER) debian/mkbinfmtconf.py $(PVER) > 
$(d_min)/usr/lib/binfmt.d/$(PVER).conf
 endif
 
        : # desktop entry

--- End Message ---
--- Begin Message ---
Source: python3.10
Source-Version: 3.10.8-2
Done: Matthias Klose <[email protected]>

We believe that the bug you reported is fixed in the latest version of
python3.10, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <[email protected]> (supplier of updated python3.10 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 03 Nov 2022 16:17:13 +0100
Source: python3.10
Architecture: source
Version: 3.10.8-2
Distribution: unstable
Urgency: medium
Maintainer: Matthias Klose <[email protected]>
Changed-By: Matthias Klose <[email protected]>
Closes: 1006315 1012377 1017913 1022951
Changes:
 python3.10 (3.10.8-2) unstable; urgency=medium
 .
   * Fix GDB auto-load files. Closes: #1017913.
   * Add support for systemd-binfmt. Closes: #1012377.
   * Address privilege escalation via multiprocessing forkserver start method:
     - debian/patches/CVE-2022-42919.patch: don't use Linux abstract sockets
       in Lib/multiprocessing/connection.py.
     - CVE-2022-42919
   * libpython3.10-dev: Install Python.asdl and python.gram. Closes: #1022951.
   * Configure the python3-dbg interpreter --with-valgrind. Closes: #1006315.
   * Bump standards version.
   * Update symbols files.
Checksums-Sha1:
 bd5dc30d5ac76f9fc70eb2a6bdbe08360d328e53 3662 python3.10_3.10.8-2.dsc
 d44a9acc9539366b507c45fd4937cdb5c85443d1 219404 
python3.10_3.10.8-2.debian.tar.xz
 7e147e298d57bbdce8c8067e74624dd26d8727a0 10122 
python3.10_3.10.8-2_source.buildinfo
Checksums-Sha256:
 c502ead8545fa7336dc6bd8768ac193b3b2c9a3b776e03ccba93fc84432fdfd7 3662 
python3.10_3.10.8-2.dsc
 a59ba17494d6d273f36887b2131cfc30d11d7bc28ea8a871aec508cea1a1d783 219404 
python3.10_3.10.8-2.debian.tar.xz
 0001009a31add94e37577c98b9b4e8724001ab9102fda34eb326515e87916c8c 10122 
python3.10_3.10.8-2_source.buildinfo
Files:
 7571885e10341d19dca94f46e1591d69 3662 python optional python3.10_3.10.8-2.dsc
 636cddb92207656f2c8ac970b79b9747 219404 python optional 
python3.10_3.10.8-2.debian.tar.xz
 0e2f6ad5224b8b7e90289622f6aa505a 10122 python optional 
python3.10_3.10.8-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCAAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAmNj3bcQHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9TjmD/sE1BogMcL50CVD7oEQEXv0gBGiE0lSoVOk
I3IiE+/l8ef6+fQuogPLdVlaBIEeYA1Y9UNC41tJeNID32QtGJ7F1Ajr62L5tLCi
vV4kniKTQEREyLtYiFuVReYouuhofox/b+mJqWPtRtIzw4CHNjoBnmgv3HkU4g5H
VKZUxbl5EdjeuX4H+buV5dndGAIfQ0DexkDWP7hj5GYX5qG/Yij2UmfoG0nFG1C6
Sik/1LpbuxEBG+Go29HETxrhExndbvKzOIwBjgfB20+NqqxfqxYZf4ZIkPCziHVb
ApKbgjimv/2f7SwmTB2ix3IP2qz3PCvuj4yfBj3QUcc96GdiWezraH/vnalXZZgY
DAWSnq3qLVuEwECWzY6FJndmsIEx88LH6xg1bTg3sare6GxnafWWnQPpW8X5o2ru
K9BJCLjR47Sws/F5pKYffyXvVENEmS5dKXlbCeCvwQM0J87/gHQMvzD9x4itWPH7
9Az0eMPJnEtLAobzjISJvDQmEpL0UO/WX/MnfS9VckdXFmrWnDvvZbSqyZ/05B6p
cv3bKarBQwLngbCkn7tHN3MvYaL/7kV6Im9N+48SiwvgVU8XJZ+IlI2BrG9A1d27
bIzo+TVgVsY3grCuLfMACUnx9GyK9fcSGreaU1lEYrsZB/z9F/QeiTrnSbPmwv54
Mw+aXkbiJg==
=JEm6
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to