Your message dated Sun, 24 Jul 2022 16:34:53 +0000
with message-id <[email protected]>
and subject line Bug#1012370: fixed in llvm-toolchain-snapshot 
1:15~++20220724113059+7feab85df8e8-1~exp1
has caused the Debian Bug report #1012370,
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.)


-- 
1012370: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1012370
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: llvm-15-runtime
Version: 1:15~++20220509105605+460fc79a080b-1~exp1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: systemd-binfmt

Hi,

your package llvm-15-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-snapshot-15~++20220509105605+460fc79a080b/debian/control 
llvm-toolchain-snapshot-15~++20220509105605+460fc79a080b/debian/control
--- llvm-toolchain-snapshot-15~++20220509105605+460fc79a080b/debian/control     
2022-05-09 22:55:17.000000000 +0200
+++ llvm-toolchain-snapshot-15~++20220509105605+460fc79a080b/debian/control     
2022-06-05 20:38:20.000000000 +0200
@@ -332,7 +332,7 @@
 Package: llvm-15-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-snapshot-15~++20220509105605+460fc79a080b/debian/llvm-X.Y-runtime.binfmt.conf.in
 
llvm-toolchain-snapshot-15~++20220509105605+460fc79a080b/debian/llvm-X.Y-runtime.binfmt.conf.in
--- 
llvm-toolchain-snapshot-15~++20220509105605+460fc79a080b/debian/llvm-X.Y-runtime.binfmt.conf.in
     1970-01-01 01:00:00.000000000 +0100
+++ 
llvm-toolchain-snapshot-15~++20220509105605+460fc79a080b/debian/llvm-X.Y-runtime.binfmt.conf.in
     2022-06-05 20:38:20.000000000 +0200
@@ -0,0 +1 @@
+:llvm-@[email protected]:M::BC::/usr/bin/lli-@LLVM_VERSION@:
diff -Nru 
llvm-toolchain-snapshot-15~++20220509105605+460fc79a080b/debian/llvm-X.Y-runtime.install.in
 
llvm-toolchain-snapshot-15~++20220509105605+460fc79a080b/debian/llvm-X.Y-runtime.install.in
--- 
llvm-toolchain-snapshot-15~++20220509105605+460fc79a080b/debian/llvm-X.Y-runtime.install.in
 2022-01-25 22:00:31.000000000 +0100
+++ 
llvm-toolchain-snapshot-15~++20220509105605+460fc79a080b/debian/llvm-X.Y-runtime.install.in
 2022-06-05 20:38:20.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-snapshot-15~++20220509105605+460fc79a080b/debian/qualify-clang.sh
 
llvm-toolchain-snapshot-15~++20220509105605+460fc79a080b/debian/qualify-clang.sh
--- 
llvm-toolchain-snapshot-15~++20220509105605+460fc79a080b/debian/qualify-clang.sh
    2022-01-25 22:00:31.000000000 +0100
+++ 
llvm-toolchain-snapshot-15~++20220509105605+460fc79a080b/debian/qualify-clang.sh
    2022-06-05 20:38:20.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-snapshot-15~++20220509105605+460fc79a080b/debian/tests/control 
llvm-toolchain-snapshot-15~++20220509105605+460fc79a080b/debian/tests/control
--- 
llvm-toolchain-snapshot-15~++20220509105605+460fc79a080b/debian/tests/control   
    2022-02-02 21:37:16.000000000 +0100
+++ 
llvm-toolchain-snapshot-15~++20220509105605+460fc79a080b/debian/tests/control   
    2022-06-05 20:38:20.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-15-dbgsym, libclang1-15-dbgsym

--- End Message ---
--- Begin Message ---
Source: llvm-toolchain-snapshot
Source-Version: 1:15~++20220724113059+7feab85df8e8-1~exp1
Done: Sylvestre Ledru <[email protected]>

We believe that the bug you reported is fixed in the latest version of
llvm-toolchain-snapshot, 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-snapshot 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: Sun, 24 Jul 2022 14:25:19 +0200
Source: llvm-toolchain-snapshot
Architecture: source
Version: 1:15~++20220724113059+7feab85df8e8-1~exp1
Distribution: experimental
Urgency: medium
Maintainer: LLVM Packaging Team <[email protected]>
Changed-By: Sylvestre Ledru <[email protected]>
Closes: 1012370
Changes:
 llvm-toolchain-snapshot (1:15~++20220724113059+7feab85df8e8-1~exp1) 
experimental; urgency=medium
 .
   * New snapshot release
   * Force the SSE2 on amd64 for compiler-rt/builtin:
     https://reviews.llvm.org/D107082#3626632
   * Ship llvm-debuginfod & llvm-dwarfutil in llvm-X.Y
   * Install usr/lib/llvm-15/lib/libomptarget.so.15 in libomp5-15
     And libomptarget.rtl.amdgpu.so.15, libomptarget.rtl.cuda.so.15 and
     libomptarget.rtl.x86_64.so.15
   * Add usr/lib/llvm-15/lib/libomptarget.devicertl.a to libomp-X-dev
     only for [amd64 ppc64el arm64]
   * On Debian Buster, unwind fails to link because pthread & dl aren't found.
     Force the declaration as it is probably the case for every Debian & Ubuntu 
anyway.
     See unwind-force-pthread-dl.diff & 
https://github.com/llvm/llvm-project/issues/55629
   * Install llvm-driver-template.cpp.in in llvm-X.Y-dev
   * Remove debian/patches/x86-fuzzer.patch (done differently upstream)
   * Install UnicodeNameMappingGenerator in llvm-X.Y-tools
   * Disable libclc when spir is below 14
     Explicit load/store type does not match pointee type of pointer operand 
(Producer: 'LLVM15.0.0' Reader: 'LLVM 13.0.1')
   * Add the option -DLLVM_ENABLE_CURL=ON
     See https://github.com/llvm/llvm-project/issues/55289
   * Install new binary clang-offload-packager in
     clang-tools-15
 .
   [ John Paul Adrian Glaubitz ]
   * Enable GRPC build dependency only on supported targets
   * Disable compiler-rt built-ins on x32
   * Limit parallel link jobs for all stages on sparc and sparc64
   * Built compiler-rt for default target only on sparc and sparc64
   * Drop sparc64-specific patch D98574.patch
   * Drop sparc64-specific patch D98575.patch
 .
   [ Roman Lebedev ]
   * Install new binary tblgen-lsp-server into mlir-15-tools
 .
   [ Michael Biebl ]
   * Add support for systemd-binfmt (Closes: #1012370)
Checksums-Sha1:
 a50ccdbf1bdda3a61f863614f467d2973a6d1428 7478 
llvm-toolchain-snapshot_15~++20220724113059+7feab85df8e8-1~exp1.dsc
 7deaab043975ac569a94ef28acccd2a19351110e 136991896 
llvm-toolchain-snapshot_15~++20220724113059+7feab85df8e8.orig.tar.xz
 5819bed7b902c56a8a725ec628f7d9fb79eb69e9 151276 
llvm-toolchain-snapshot_15~++20220724113059+7feab85df8e8-1~exp1.debian.tar.xz
 c9b3ced3a560acd7d4bd57b2d192929c9ed7227c 13799 
llvm-toolchain-snapshot_15~++20220724113059+7feab85df8e8-1~exp1_source.buildinfo
Checksums-Sha256:
 e01c589077d23d16be9dddd797121b5fa432a292a77603e7897910cb635a0c11 7478 
llvm-toolchain-snapshot_15~++20220724113059+7feab85df8e8-1~exp1.dsc
 7c5c9b12cc7c99352e37deba8fb904e1cf602bbde18e73f5d0f329b495d61c22 136991896 
llvm-toolchain-snapshot_15~++20220724113059+7feab85df8e8.orig.tar.xz
 e2376a161d8d86595e9ed9578a77e0c50faeee6e628baf33220fdecd53a7f6b2 151276 
llvm-toolchain-snapshot_15~++20220724113059+7feab85df8e8-1~exp1.debian.tar.xz
 9941e9cb81809a9aa4089243f4b1789000bcf8ac9a6c15892c98fe60588fa2ba 13799 
llvm-toolchain-snapshot_15~++20220724113059+7feab85df8e8-1~exp1_source.buildinfo
Files:
 b7d92a0c1e0501b4255fa423c6874572 7478 devel optional 
llvm-toolchain-snapshot_15~++20220724113059+7feab85df8e8-1~exp1.dsc
 bad0896610db2aeca6e4af2932e53bfd 136991896 devel optional 
llvm-toolchain-snapshot_15~++20220724113059+7feab85df8e8.orig.tar.xz
 a7c19caec239e28f6a9e28183ff262ec 151276 devel optional 
llvm-toolchain-snapshot_15~++20220724113059+7feab85df8e8-1~exp1.debian.tar.xz
 cbca2890071a112992186b22a942b8d8 13799 devel optional 
llvm-toolchain-snapshot_15~++20220724113059+7feab85df8e8-1~exp1_source.buildinfo

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

iQJJBAEBCAAzFiEEtg21mU05vsTRqVzPfmUo2nUvG+EFAmLdbxIVHHN5bHZlc3Ry
ZUBkZWJpYW4ub3JnAAoJEH5lKNp1Lxvh9lkP/Ax7DcTJDfukleu3uT+iYDVIvSqI
XiNBvwcToSu5UUB01BNNd2v96LPNpL1BW647hFRtGCBcOU8fRgpgbzxl4+RK2Mjq
p9/t5F9yGTV+qmuZxG6CQ9tzRzTGqS9VDLk5GV2j55Qzwzo5iGn+131W/TwRasgj
nUAqteYbiYq4XmOlsGKNZ3QQNBSXQCQVCnfHObLGwgGsFaptdIn4/A40nO8ijl1p
MaV3Bgaxw2HA0a4vOEeyGdJRJzefJPhzdUuE99aHHzEEAaEiNbwURmR6rVe/4LZd
2gla3UecsdJm5JdErmwUyCKu9HRG9oYGXZbweEXBTbhhhUU0BBWT5y2DFkOf5UjX
fMkCAFVTEUf1vocHbwx11p5NRt691ZbGaJbWH6Ut9dthDyL5m+Rgx78tSAm1x5jg
MeXUcwBZdd3+3TBGHcCmrvzDlF/ayDbQUCkbtoxMG7Y/qWY0Rh5VEpUfp7Hw4tqF
y0Yb4PEW2kERRRaaD4UEcpKu7v7rj1HSaBvs4HU6voXh30vVjQNuD/J0LyAkZSc4
mOF1nCAGYRGWysDJWS1y2TLmKqcv9o5L2Sg9NKCf9zJYkCl9Hb060B+neh8FvFfo
rXAeb5TOoiOfb0ev9p+bfo9fiEveWx5z+hXcedIEXnyStTc1CAmkE3cwU+rgcB/C
ITDk2LGf3VX/Tw6x
=ufjQ
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to