Package: hatari Version: 2.3.1+dfsg-1 Severity: wishlist Tags: patch User: pkg-systemd-maintain...@lists.alioth.debian.org Usertags: systemd-binfmt
Hi, your package hatari declares a dependency (Recommends) on binfmt-support and ships binfmt-support configuration files in /usr/share/binfmt/. 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 adds support for systemd-binfmt and adjusts the dependency on binfmt-support accordingly, so binfmt-support is no longer installed automatically if systemd is already installed. Regards, Michael -- System Information: Debian Release: bookworm/sid APT prefers unstable APT policy: (500, 'unstable'), (200, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.17.0-3-amd64 (SMP w/4 CPU threads; PREEMPT) Kernel taint flags: TAINT_FIRMWARE_WORKAROUND Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages hatari depends on: ii gir1.2-gtk-3.0 3.24.34-1 ii libc6 2.33-7 ii libpng16-16 1.6.37-5 ii libportaudio2 19.6.0-1.2 ii libreadline8 8.1.2-1.2 ii libsdl2-2.0-0 2.0.22+dfsg-4 ii libudev1 251.2-2 ii libx11-6 2:1.7.5-1 ii python3 3.10.4-1+b1 ii python3-gi 3.42.1-1 ii zlib1g 1:1.2.11.dfsg-4 Versions of packages hatari recommends: ii binfmt-support 2.2.2-1 Versions of packages hatari suggests: ii dosfstools 4.2-1 ii mtools 4.0.33-1+really4.0.32-1 ii unzip 6.0-26
diff -Nru hatari-2.3.1+dfsg/debian/changelog hatari-2.3.1+dfsg/debian/changelog --- hatari-2.3.1+dfsg/debian/changelog 2021-01-24 23:15:57.000000000 +0100 +++ hatari-2.3.1+dfsg/debian/changelog 2022-06-05 16:13:41.000000000 +0200 @@ -1,3 +1,9 @@ +hatari (2.3.1+dfsg-1.1) UNRELEASED; urgency=medium + + * Add support for systemd-binfmt + + -- Michael Biebl <bi...@debian.org> Sun, 05 Jun 2022 16:13:41 +0200 + hatari (2.3.1+dfsg-1) unstable; urgency=medium * New upstream version 2.3.1 diff -Nru hatari-2.3.1+dfsg/debian/control hatari-2.3.1+dfsg/debian/control --- hatari-2.3.1+dfsg/debian/control 2021-01-24 23:15:57.000000000 +0100 +++ hatari-2.3.1+dfsg/debian/control 2022-06-05 16:13:41.000000000 +0200 @@ -22,7 +22,7 @@ ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends}, -Recommends: binfmt-support, +Recommends: binfmt-support | systemd, Suggests: dosfstools, mtools, unzip, diff -Nru hatari-2.3.1+dfsg/debian/hatari.conf hatari-2.3.1+dfsg/debian/hatari.conf --- hatari-2.3.1+dfsg/debian/hatari.conf 1970-01-01 01:00:00.000000000 +0100 +++ hatari-2.3.1+dfsg/debian/hatari.conf 2022-06-05 16:13:41.000000000 +0200 @@ -0,0 +1 @@ +:hatari:M::\x60\x1a::/usr/bin/hatari: diff -Nru hatari-2.3.1+dfsg/debian/rules hatari-2.3.1+dfsg/debian/rules --- hatari-2.3.1+dfsg/debian/rules 2021-01-24 23:15:57.000000000 +0100 +++ hatari-2.3.1+dfsg/debian/rules 2022-06-05 16:13:41.000000000 +0200 @@ -31,6 +31,7 @@ # Install binfmt support for atari binaries install -m644 -D debian/binfmt debian/hatari/usr/share/binfmts/hatari + install -m644 -D debian/hatari.conf debian/hatari/usr/lib/binfmt.d/hatari.conf override_dh_python3: dh_python3 --shebang=/usr/bin/python3