Your message dated Fri, 22 Jul 2022 23:06:31 +0000
with message-id <[email protected]>
and subject line Bug#1012367: fixed in llvm-toolchain-13 1:13.0.1-7
has caused the Debian Bug report #1012367,
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.)
--
1012367: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1012367
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: llvm-13-runtime
Version: 1:13.0.1-6
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: systemd-binfmt
Hi,
your package llvm-13-runtime declares a dependency (Recommends) 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 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 available.
It also updates the autopkgtest suite to no longer require
binfmt-support.
Regards,
Michael
diff -Nru llvm-toolchain-13-13.0.1/debian/control
llvm-toolchain-13-13.0.1/debian/control
--- llvm-toolchain-13-13.0.1/debian/control 2022-06-04 15:30:01.000000000
+0200
+++ llvm-toolchain-13-13.0.1/debian/control 2022-06-05 20:24:56.000000000
+0200
@@ -340,7 +340,7 @@
Package: llvm-13-runtime
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
-Recommends: binfmt-support
+Recommends: binfmt-support | systemd
Description: Modular compiler and toolchain technologies, IR interpreter
LLVM is a collection of libraries and tools that make it easy to build
compilers, optimizers, just-in-time code generators, and many other
diff -Nru llvm-toolchain-13-13.0.1/debian/llvm-X.Y-runtime.binfmt.conf.in
llvm-toolchain-13-13.0.1/debian/llvm-X.Y-runtime.binfmt.conf.in
--- llvm-toolchain-13-13.0.1/debian/llvm-X.Y-runtime.binfmt.conf.in
1970-01-01 01:00:00.000000000 +0100
+++ llvm-toolchain-13-13.0.1/debian/llvm-X.Y-runtime.binfmt.conf.in
2022-06-05 20:24:56.000000000 +0200
@@ -0,0 +1 @@
+:llvm-@[email protected]:M::BC::/usr/bin/lli-@LLVM_VERSION@:
diff -Nru llvm-toolchain-13-13.0.1/debian/llvm-X.Y-runtime.install.in
llvm-toolchain-13-13.0.1/debian/llvm-X.Y-runtime.install.in
--- llvm-toolchain-13-13.0.1/debian/llvm-X.Y-runtime.install.in 2021-08-27
11:35:35.000000000 +0200
+++ llvm-toolchain-13-13.0.1/debian/llvm-X.Y-runtime.install.in 2022-06-05
20:24:56.000000000 +0200
@@ -5,4 +5,5 @@
usr/bin/lli-child-target-@LLVM_VERSION@
debian/llvm-@[email protected] usr/share/binfmts/
+debian/llvm-@[email protected] usr/lib/binfmt.d/
diff -Nru llvm-toolchain-13-13.0.1/debian/qualify-clang.sh
llvm-toolchain-13-13.0.1/debian/qualify-clang.sh
--- llvm-toolchain-13-13.0.1/debian/qualify-clang.sh 2022-06-04
15:29:01.000000000 +0200
+++ llvm-toolchain-13-13.0.1/debian/qualify-clang.sh 2022-06-05
20:24:56.000000000 +0200
@@ -305,9 +305,7 @@
clang-$VERSION -O3 -emit-llvm foo.c -c -o foo.bc
chmod +x foo.bc
# only run if the binfmt is installed correctly
-/usr/sbin/update-binfmts --display llvm-$VERSION-runtime.binfmt &> foo.log ||
true
-if grep -q "interpreter = /usr/bin/lli-" foo.log; then
- /usr/sbin/update-binfmts --enable llvm-$VERSION-runtime.binfmt || true
+if grep -q "enabled" /proc/sys/fs/binfmt_misc/llvm-${VERSION}-runtime.binfmt;
then
if ! ./foo.bc|grep -q "lli foo"; then
echo "executing ./foo.bc failed"
./foo.bc || true
diff -Nru llvm-toolchain-13-13.0.1/debian/tests/control
llvm-toolchain-13-13.0.1/debian/tests/control
--- llvm-toolchain-13-13.0.1/debian/tests/control 2022-06-04
15:29:01.000000000 +0200
+++ llvm-toolchain-13-13.0.1/debian/tests/control 2022-06-05
20:24:56.000000000 +0200
@@ -1,5 +1,5 @@
Test-Command: bash -v ./debian/qualify-clang.sh
-Depends: @, cmake, make, g++, file, dpkg-dev, binfmt-support
+Depends: @, cmake, make, g++, file, dpkg-dev
# Comment the dbgsym package because of bug #917528
# dbgsym packages not being available in testing
# clang-13-dbgsym, libclang1-13-dbgsym
--- End Message ---
--- Begin Message ---
Source: llvm-toolchain-13
Source-Version: 1:13.0.1-7
Done: Sylvestre Ledru <[email protected]>
We believe that the bug you reported is fixed in the latest version of
llvm-toolchain-13, 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.
Sylvestre Ledru <[email protected]> (supplier of updated llvm-toolchain-13
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: Fri, 22 Jul 2022 15:10:20 +0200
Source: llvm-toolchain-13
Architecture: source
Version: 1:13.0.1-7
Distribution: unstable
Urgency: medium
Maintainer: LLVM Packaging Team <[email protected]>
Changed-By: Sylvestre Ledru <[email protected]>
Closes: 1012367
Changes:
llvm-toolchain-13 (1:13.0.1-7) unstable; urgency=medium
.
[ Michael Biebl ]
* Add support for systemd-binfmt (Closes: #1012367)
.
[ Sam McCall ]
* Add conventional symlink to libc++ headers in /usr/include/c++/v1
See
https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/merge_requests/95
for more information
Checksums-Sha1:
305ae686941f73135c26a93a9478e9f0ef59162a 7191 llvm-toolchain-13_13.0.1-7.dsc
bdc361a57c5d3edbdbd0721a2fab6354f51207c0 157876
llvm-toolchain-13_13.0.1-7.debian.tar.xz
8183fe8d1e82b93b9bb276754a89431f46a033bd 31131
llvm-toolchain-13_13.0.1-7_amd64.buildinfo
Checksums-Sha256:
36aad6b725c448f309e634a3aad94a6937534aab90a1f9eeed4c0cb82cd6a686 7191
llvm-toolchain-13_13.0.1-7.dsc
36380c95ca54d73402b5b9d222dc36119959bc5a74f05f77ace5dc73af5998b0 157876
llvm-toolchain-13_13.0.1-7.debian.tar.xz
1df955870a6f7e399a04f0df0def8be5c34aa44695d1b1ce6cef4c9d904b8fbb 31131
llvm-toolchain-13_13.0.1-7_amd64.buildinfo
Files:
62dba7b865ad9f5ea0b9bef930743cf9 7191 devel optional
llvm-toolchain-13_13.0.1-7.dsc
54ec46563f9d15e3fc86142e2f32b870 157876 devel optional
llvm-toolchain-13_13.0.1-7.debian.tar.xz
f02c020805c49bddbae0f8452f0d58d1 31131 devel optional
llvm-toolchain-13_13.0.1-7_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEtg21mU05vsTRqVzPfmUo2nUvG+EFAmLbJrUACgkQfmUo2nUv
G+H/8RAAl5/7iEyoHDSzx7cKYVi599hW4+2rl0/qER1E3WcTSufeU30qnC8BWdRN
+HE5N0IKzUFyZL1XRGfGepMcylaFgPIqc+atZl5hQvCL/KscYJAscGTurVlAFxS3
HJ9xKtAWOK5N0mIL9OIcnitRtFnvFp2n6miGonnpIICi/0soz/NzDCyfgnNXaOvJ
Qach+yW1oan7nCs0J4w5Ot9eeTpvR4nJ9rB1T5cRK4wd2N1yU8ak1gmpQm5bPJ4a
6Ziim1WIwfZ0s3gbyafIrtE/RgmwD8YYvzwo0faHAhr231qzdUSGBvEJjDWlstni
i9fIUvSVWudS4gk2/Lmbl2wSzOw44VMw2LhDpsBy2vjcMhfqhN6yxE+hZCh/1kks
P3SvrYhROirQAc9pmdxEHY6HEf9weh2YxPCcGOR4w1biZeviUn8LapfKm6uhogYE
lTkI/Z0xZ1fX2zqm5G24KalxDlAWOAmdPpjQGiAUk/zBjeNxoLqBAipD9QeFi13F
nC1DrNhuSKYBfvwXIrwvlXFHPEVdfVnKgazXJJtmlflmQIUJQaprQUG3I/lCwaDn
3FNJfTwx3Vr1tVvXI3L+v9W5aSZXe/JM+sXepMbOPJcm8cLEx4MdGWL+kgRUy4O+
+iTnEp3GadSOsj6f0jH+FIuNdCd2ZmSd0sqq9cCRMlWeCUo+jNU=
=/+Vo
-----END PGP SIGNATURE-----
--- End Message ---